|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sleepycat.persist.impl.PersistCatalog
public class PersistCatalog
The catalog of class formats for a store, along with its associated model and mutations.
| Constructor Summary | |
|---|---|
PersistCatalog(Transaction txn,
Environment env,
String dbName,
DatabaseConfig dbConfig,
EntityModel modelParam,
Mutations mutationsParam,
boolean useCurrentModel)
Creates a new catalog, opening the database and reading it from a given catalog database if it already exists. |
|
| Method Summary | |
|---|---|
boolean |
close()
Decrements the reference count and closes the catalog DB when it reaches zero. |
Format |
createFormat(Class type,
Map<String,Format> newFormats)
If the given class format is not already present in the given map, creates an uninitialized format, adds it to the map, and also collects related formats in the map. |
Format |
getFormat(Class cls)
Returns a format for a given class, or throws an exception. |
Format |
getFormat(int formatId)
Returns a format for a given ID, or throws an exception. |
Format |
getFormat(String className)
Returns a format by class name. |
(package private) Set<String> |
getModelClasses()
Returns a set of all persistent (non-simple type) class names. |
Mutations |
getMutations()
Returns the current merged mutations. |
EntityModel |
getResolvedModel()
Gets the model parameter, default model or stored model. |
void |
openExisting()
Increments the reference count for a catalog that is already open. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PersistCatalog(Transaction txn,
Environment env,
String dbName,
DatabaseConfig dbConfig,
EntityModel modelParam,
Mutations mutationsParam,
boolean useCurrentModel)
throws DatabaseException
DatabaseException| Method Detail |
|---|
public EntityModel getResolvedModel()
public void openExisting()
public boolean close()
throws DatabaseException
DatabaseExceptionpublic Mutations getMutations()
public Format createFormat(Class type,
Map<String,Format> newFormats)
createFormat in interface CatalogcreateFormat(java.lang.Class, java.util.Map) Set<String> getModelClasses()
public Format getFormat(int formatId)
Catalog
getFormat in interface Catalogpublic Format getFormat(Class cls)
Catalog
getFormat in interface Catalogpublic Format getFormat(String className)
CatalogCatalog.getFormat(int), the
format will not be created if it is not already known.
getFormat in interface Catalog
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||