Java Doc for StoredCollections.java in  » JMX » je » com » sleepycat » collections » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » JMX » je » com.sleepycat.collections 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sleepycat.collections.StoredCollections

StoredCollections
public class StoredCollections (Code)
Static methods operating on collections and maps.

This class consists exclusively of static methods that operate on or return stored collections and maps, jointly called containers. It contains methods for changing certain properties of a container. Because container properties are immutable, these methods always return a new container instance. This allows stored container instances to be used safely by multiple threads. Creating the new container instance is not expensive and creates only two new objects.

When a container is created with a particular property, all containers and iterators derived from that container will inherit the property. For example, if a read-uncommitted Map is created then calls to its subMap(), values(), entrySet(), and keySet() methods will create read-uncommitted containers also.

Method names beginning with "configured" create a new container with a specified CursorConfig from a given stored container. This allows configuring a container for read-committed isolation, read-uncommitted isolation, or any other property supported by CursorConfig. All operations performed with the resulting container will be performed with the specified cursor configuration.





Method Summary
public static  CollectionconfiguredCollection(Collection storedCollection, CursorConfig config)
     Creates a configured collection from a given stored collection.
Parameters:
  storedCollection - the base collection.
Parameters:
  config - is the cursor configuration to be used for all operationsperformed via the new collection instance; null may be specified to usethe default configuration.
public static  ListconfiguredList(List storedList, CursorConfig config)
     Creates a configured list from a given stored list.

Note that this method may not be called in the JE product, since the StoredList class is not supported.


Parameters:
  storedList - the base list.
Parameters:
  config - is the cursor configuration to be used for all operationsperformed via the new list instance; null may be specified to use thedefault configuration.
public static  MapconfiguredMap(Map storedMap, CursorConfig config)
     Creates a configured map from a given stored map.
Parameters:
  storedMap - the base map.
Parameters:
  config - is the cursor configuration to be used for all operationsperformed via the new map instance; null may be specified to use thedefault configuration.
public static  SetconfiguredSet(Set storedSet, CursorConfig config)
     Creates a configured set from a given stored set.
Parameters:
  storedSet - the base set.
Parameters:
  config - is the cursor configuration to be used for all operationsperformed via the new set instance; null may be specified to use thedefault configuration.
public static  SortedMapconfiguredSortedMap(SortedMap storedSortedMap, CursorConfig config)
     Creates a configured sorted map from a given stored sorted map.
Parameters:
  storedSortedMap - the base map.
Parameters:
  config - is the cursor configuration to be used for all operationsperformed via the new map instance; null may be specified to use thedefault configuration.
public static  SortedSetconfiguredSortedSet(SortedSet storedSortedSet, CursorConfig config)
     Creates a configured sorted set from a given stored sorted set.
Parameters:
  storedSortedSet - the base set.
Parameters:
  config - is the cursor configuration to be used for all operationsperformed via the new set instance; null may be specified to use thedefault configuration.
public static  CollectiondirtyReadCollection(Collection storedCollection)
    
public static  ListdirtyReadList(List storedList)
    
public static  MapdirtyReadMap(Map storedMap)
    
public static  SetdirtyReadSet(Set storedSet)
    
public static  SortedMapdirtyReadSortedMap(SortedMap storedSortedMap)
    
public static  SortedSetdirtyReadSortedSet(SortedSet storedSortedSet)
    
public static  Iteratoriterator(Iterator iter)
     Clones an iterator preserving its current position.
Parameters:
  iter - an iterator to clone.



Method Detail
configuredCollection
public static Collection configuredCollection(Collection storedCollection, CursorConfig config)(Code)
Creates a configured collection from a given stored collection.
Parameters:
  storedCollection - the base collection.
Parameters:
  config - is the cursor configuration to be used for all operationsperformed via the new collection instance; null may be specified to usethe default configuration. the configured collection.
throws:
  ClassCastException - if the given container is not aStoredContainer.



configuredList
public static List configuredList(List storedList, CursorConfig config)(Code)
Creates a configured list from a given stored list.

Note that this method may not be called in the JE product, since the StoredList class is not supported.


Parameters:
  storedList - the base list.
Parameters:
  config - is the cursor configuration to be used for all operationsperformed via the new list instance; null may be specified to use thedefault configuration. the configured list.
throws:
  ClassCastException - if the given container is not aStoredContainer.



configuredMap
public static Map configuredMap(Map storedMap, CursorConfig config)(Code)
Creates a configured map from a given stored map.
Parameters:
  storedMap - the base map.
Parameters:
  config - is the cursor configuration to be used for all operationsperformed via the new map instance; null may be specified to use thedefault configuration. the configured map.
throws:
  ClassCastException - if the given container is not aStoredContainer.



configuredSet
public static Set configuredSet(Set storedSet, CursorConfig config)(Code)
Creates a configured set from a given stored set.
Parameters:
  storedSet - the base set.
Parameters:
  config - is the cursor configuration to be used for all operationsperformed via the new set instance; null may be specified to use thedefault configuration. the configured set.
throws:
  ClassCastException - if the given container is not aStoredContainer.



configuredSortedMap
public static SortedMap configuredSortedMap(SortedMap storedSortedMap, CursorConfig config)(Code)
Creates a configured sorted map from a given stored sorted map.
Parameters:
  storedSortedMap - the base map.
Parameters:
  config - is the cursor configuration to be used for all operationsperformed via the new map instance; null may be specified to use thedefault configuration. the configured map.
throws:
  ClassCastException - if the given container is not aStoredContainer.



configuredSortedSet
public static SortedSet configuredSortedSet(SortedSet storedSortedSet, CursorConfig config)(Code)
Creates a configured sorted set from a given stored sorted set.
Parameters:
  storedSortedSet - the base set.
Parameters:
  config - is the cursor configuration to be used for all operationsperformed via the new set instance; null may be specified to use thedefault configuration. the configured set.
throws:
  ClassCastException - if the given container is not aStoredContainer.



dirtyReadCollection
public static Collection dirtyReadCollection(Collection storedCollection)(Code)
StoredCollections.configuredCollection



dirtyReadList
public static List dirtyReadList(List storedList)(Code)
StoredCollections.configuredList



dirtyReadMap
public static Map dirtyReadMap(Map storedMap)(Code)
StoredCollections.configuredMap



dirtyReadSet
public static Set dirtyReadSet(Set storedSet)(Code)
StoredCollections.configuredSet



dirtyReadSortedMap
public static SortedMap dirtyReadSortedMap(SortedMap storedSortedMap)(Code)
StoredCollections.configuredSortedMap



dirtyReadSortedSet
public static SortedSet dirtyReadSortedSet(SortedSet storedSortedSet)(Code)
StoredCollections.configuredSortedSet



iterator
public static Iterator iterator(Iterator iter)(Code)
Clones an iterator preserving its current position.
Parameters:
  iter - an iterator to clone. a new Iterator having the same position as the giveniterator.
throws:
  ClassCastException - if the given iterator was not obtained via aStoredCollection method.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.