com.sleepycat.persist.impl
Class StoredModel

java.lang.Object
  extended by com.sleepycat.persist.model.EntityModel
      extended by com.sleepycat.persist.impl.StoredModel

 class StoredModel
extends EntityModel

The EntityModel used when a RawStore is opened. The metadata and raw type information comes from the catalog directly, without using the current class definitions.

Author:
Mark Hayes

Constructor Summary
StoredModel(PersistCatalog catalog)
           
 
Method Summary
 ClassMetadata getClassMetadata(String className)
          Returns the metadata for a given persistent class name, including proxy classes and entity classes.
 EntityMetadata getEntityMetadata(String className)
          Returns the metadata for a given entity class name.
 Set<String> getKnownClasses()
          Returns the names of all known persistent classes.
 
Methods inherited from class com.sleepycat.persist.model.EntityModel
getAllRawTypes, getRawType, registerClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StoredModel

StoredModel(PersistCatalog catalog)
Method Detail

getClassMetadata

public ClassMetadata getClassMetadata(String className)
Description copied from class: EntityModel
Returns the metadata for a given persistent class name, including proxy classes and entity classes.

Specified by:
getClassMetadata in class EntityModel
Returns:
the metadata or null if the class is not persistent or does not exist.

getEntityMetadata

public EntityMetadata getEntityMetadata(String className)
Description copied from class: EntityModel
Returns the metadata for a given entity class name.

Specified by:
getEntityMetadata in class EntityModel
Returns:
the metadata or null if the class is not an entity class or does not exist.

getKnownClasses

public Set<String> getKnownClasses()
Description copied from class: EntityModel
Returns the names of all known persistent classes. A type becomes known when an instance of the type is stored for the first time or metadata or type information is queried for a specific class name.

Specified by:
getKnownClasses in class EntityModel
Returns:
an unmodifiable set of class names.


Copyright 2004-2006 Sleepycat, Inc. All Rights Reserved.