Package org.datanucleus.store.rdbms
Class RDBMSStoreHelper
java.lang.Object
org.datanucleus.store.rdbms.RDBMSStoreHelper
Provides a series of utilities assisting in the datastore management process for RDBMS datastores.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getClassNameForIdUsingDiscriminator
(RDBMSStoreManager storeMgr, org.datanucleus.ExecutionContext ec, Object id, org.datanucleus.metadata.AbstractClassMetaData cmd) Utility that does a discriminator candidate query for the specified candidate and subclasses and returns the class name of the instance that has the specified identity (if any).static String
getClassNameForIdUsingUnion
(RDBMSStoreManager storeMgr, org.datanucleus.ExecutionContext ec, Object id, List<org.datanucleus.metadata.AbstractClassMetaData> rootCmds) Utility that does a union candidate query for the specified candidate(s) and subclasses and returns the class name of the instance that has the specified identity (if any).
-
Constructor Details
-
RDBMSStoreHelper
private RDBMSStoreHelper()
-
-
Method Details
-
getClassNameForIdUsingDiscriminator
public static String getClassNameForIdUsingDiscriminator(RDBMSStoreManager storeMgr, org.datanucleus.ExecutionContext ec, Object id, org.datanucleus.metadata.AbstractClassMetaData cmd) Utility that does a discriminator candidate query for the specified candidate and subclasses and returns the class name of the instance that has the specified identity (if any).- Parameters:
storeMgr
- RDBMS StoreManagerec
- execution contextid
- The idcmd
- Metadata for the root candidate class- Returns:
- Name of the class with this identity (or null if none found)
-
getClassNameForIdUsingUnion
public static String getClassNameForIdUsingUnion(RDBMSStoreManager storeMgr, org.datanucleus.ExecutionContext ec, Object id, List<org.datanucleus.metadata.AbstractClassMetaData> rootCmds) Utility that does a union candidate query for the specified candidate(s) and subclasses and returns the class name of the instance that has the specified identity (if any).- Parameters:
storeMgr
- RDBMS StoreManagerec
- execution contextid
- The idrootCmds
- Metadata for the classes at the root- Returns:
- Name of the class with this identity (or null if none found)
-