Java Doc for StoreConfig.java in  » JMX » je » com » sleepycat » persist » 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.persist 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sleepycat.persist.StoreConfig

StoreConfig
public class StoreConfig implements Cloneable(Code)


Field Summary
final public static  StoreConfigDEFAULT
     The default store configuration containing properties as if the configuration were constructed and not modified.

Constructor Summary
public  StoreConfig()
     Creates an entity store configuration object with default properties.

Method Summary
public  StoreConfigcloneConfig()
     Returns a shallow copy of the configuration.
public  booleangetAllowCreate()
     Returns whether creation of a new store is allowed.
public  booleangetDeferredWrite()
     Returns the deferred-write configuration property.
public  booleangetExclusiveCreate()
     Returns whether opening an existing store is prohibited.
public  EntityModelgetModel()
     Returns the entity model that defines entity classes and index keys.
public  MutationsgetMutations()
     Returns the configured mutations for performing lazy evolution of stored instances.
public  booleangetReadOnly()
     Returns the read-only configuration property.
public  booleangetSecondaryBulkLoad()
     Returns the bulk-load-secondaries configuration property.
public  booleangetTransactional()
     Returns the transactional configuration property.
public  voidsetAllowCreate(boolean allowCreate)
     Specifies whether creation of a new store is allowed.
public  voidsetDeferredWrite(boolean deferredWrite)
     Sets the deferred-write configuration property.
public  voidsetExclusiveCreate(boolean exclusiveCreate)
     Specifies whether opening an existing store is prohibited.
public  voidsetModel(EntityModel model)
     Sets the entity model that defines entity classes and index keys.
public  voidsetMutations(Mutations mutations)
     Configures mutations for performing lazy evolution of stored instances. Existing mutations for this store are not cleared, so the mutations required are only those changes that have been made since the store was last opened.
public  voidsetReadOnly(boolean readOnly)
     Sets the read-only configuration property.
public  voidsetSecondaryBulkLoad(boolean secondaryBulkLoad)
     Sets the bulk-load-secondaries configuration property.
public  voidsetTransactional(boolean transactional)
     Sets the transactional configuration property.

Field Detail
DEFAULT
final public static StoreConfig DEFAULT(Code)
The default store configuration containing properties as if the configuration were constructed and not modified.




Constructor Detail
StoreConfig
public StoreConfig()(Code)
Creates an entity store configuration object with default properties.




Method Detail
cloneConfig
public StoreConfig cloneConfig()(Code)
Returns a shallow copy of the configuration.



getAllowCreate
public boolean getAllowCreate()(Code)
Returns whether creation of a new store is allowed.



getDeferredWrite
public boolean getDeferredWrite()(Code)
Returns the deferred-write configuration property.



getExclusiveCreate
public boolean getExclusiveCreate()(Code)
Returns whether opening an existing store is prohibited.



getModel
public EntityModel getModel()(Code)
Returns the entity model that defines entity classes and index keys.



getMutations
public Mutations getMutations()(Code)
Returns the configured mutations for performing lazy evolution of stored instances.



getReadOnly
public boolean getReadOnly()(Code)
Returns the read-only configuration property.



getSecondaryBulkLoad
public boolean getSecondaryBulkLoad()(Code)
Returns the bulk-load-secondaries configuration property.



getTransactional
public boolean getTransactional()(Code)
Returns the transactional configuration property.



setAllowCreate
public void setAllowCreate(boolean allowCreate)(Code)
Specifies whether creation of a new store is allowed. By default this property is false.

If this property is false and the internal store metadata database does not exist, DatabaseNotFoundException will be thrown when the store is opened.




setDeferredWrite
public void setDeferredWrite(boolean deferredWrite)(Code)
Sets the deferred-write configuration property. By default this property is false.

This property is true to open all store index databases for deferred-write access. True may not be specified if the store is transactional.

Deferred write stores avoid disk I/O and are not guaranteed to be persistent until EntityStore.sync or Environment.sync is called. This mode is particularly geared toward temporary stores, or stores that frequently modify and delete data records. See the Getting Started Guide, Database chapter for a full description of the mode.


See Also:   StoreConfig.setTransactional



setExclusiveCreate
public void setExclusiveCreate(boolean exclusiveCreate)(Code)
Specifies whether opening an existing store is prohibited. By default this property is false.

If this property is true and the internal store metadata database already exists, DatabaseException will be thrown when the store is opened.




setModel
public void setModel(EntityModel model)(Code)
Sets the entity model that defines entity classes and index keys.

If null is specified or this method is not called, an AnnotationModel instance is used by default.




setMutations
public void setMutations(Mutations mutations)(Code)
Configures mutations for performing lazy evolution of stored instances. Existing mutations for this store are not cleared, so the mutations required are only those changes that have been made since the store was last opened. Some new mutations may override existing specifications, and some may be supplemental.

If null is specified and the store already exists, the previously specified mutations are used. The mutations are stored persistently in serialized form.

Mutations must be available to handle all changes to classes that are incompatible with the class definitions known to this store. See Mutations and com.sleepycat.persist.evolve Class Evolution for more information.

If an incompatible class change has been made and mutations are not available for handling the change, IncompatibleClassException will be thrown when creating an EntityStore .




setReadOnly
public void setReadOnly(boolean readOnly)(Code)
Sets the read-only configuration property. By default this property is false.

This property is true to open all store indices for read-only access, or false to open them for read-write access. False may not be specified if the environment is read-only.




setSecondaryBulkLoad
public void setSecondaryBulkLoad(boolean secondaryBulkLoad)(Code)
Sets the bulk-load-secondaries configuration property. By default this property is false.

This property is true to cause the initial creation of secondary indices to be performed as a bulk load. If this property is true and EntityStore.getSecondaryIndex EntityStore.getSecondaryIndex has never been called for a secondary index, that secondary index will not be created or written as records are written to the primary index. In addition, if that secondary index defines a foreign key constraint, the constraint will not be enforced.

The secondary index will be populated later when the {code getSecondaryIndex} method is called for the first time for that index, or when the store is closed and re-opened with this property set to false and the primary index is obtained. In either case, the secondary index is populated by reading through the entire primary index and adding records to the secondary index as needed. While populating the secondary, foreign key constraints will be enforced and an exception is thrown if a constraint is violated.

When loading a primary index along with secondary indexes from a large input data set, configuring a bulk load of the secondary indexes is sometimes more performant than updating the secondary indexes each time the primary index is updated. The absence of foreign key constraints during the load also provides more flexibility.




setTransactional
public void setTransactional(boolean transactional)(Code)
Sets the transactional configuration property. By default this property is false.

This property is true to open all store indices for transactional access. True may not be specified if the environment is not also transactional.




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.