|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bm.introspectors.relations.GlobalPrimaryKeyStore
public class GlobalPrimaryKeyStore
Global store for storing the primary key properties of entity classes. Such a global store is necessary to avoid cyclic dependencies while processing relations.
Method Summary | |
---|---|
java.util.Set<Property> |
getPrimaryKeyInfo(java.lang.Class entityClass)
Retrieves primary key info. |
static GlobalPrimaryKeyStore |
getStore()
Returns the singleton instance. |
void |
put(java.lang.Class entityClass,
java.util.Map<Property,PrimaryKeyInfo> pkFieldInfo)
Stores primary key info of a given entity class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static GlobalPrimaryKeyStore getStore()
public void put(java.lang.Class entityClass, java.util.Map<Property,PrimaryKeyInfo> pkFieldInfo)
entityClass
- the entity classpkFieldInfo
- the primary key property and field info; usually the map will contain
just one entry, but it might contain more entries in case of a composite primary key.public java.util.Set<Property> getPrimaryKeyInfo(java.lang.Class entityClass)
entityClass
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |