|
Berkeley DB XML version 2.5.16 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sleepycat.persist.model.EntityModel
com.sleepycat.persist.model.AnnotationModel
public class AnnotationModel
The default annotation-based entity model. An AnnotationModel
is based on annotations that are specified for entity classes and their key
fields.
AnnotationModel objects are thread-safe. Multiple threads may
safely call the methods of a shared AnnotationModel object.
The set of persistent classes in the annotation model is the set of all
classes with the Persistent or Entity annotation.
The annotations used to define persistent classes are: Entity,
Persistent, PrimaryKey, SecondaryKey and KeyField. A good starting point is Entity.
| Constructor Summary | |
|---|---|
AnnotationModel()
Constructs a model for annotated entity classes. |
|
| 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 |
|---|
classForName, convertRawObject, getAllRawTypes, getAllRawTypeVersions, getRawType, getRawTypeVersion, isOpen, registerClass |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotationModel()
| Method Detail |
|---|
public Set<String> getKnownClasses()
EntityModel
getKnownClasses in class EntityModelpublic EntityMetadata getEntityMetadata(String className)
EntityModel
getEntityMetadata in class EntityModelpublic ClassMetadata getClassMetadata(String className)
EntityModel
getClassMetadata in class EntityModel
|
Berkeley DB XML version 2.5.16 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||