Class RDBMSStoreHelper


  • public class RDBMSStoreHelper
    extends java.lang.Object
    Provides a series of utilities assisting in the datastore management process for RDBMS datastores.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private RDBMSStoreHelper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getClassNameForIdUsingDiscriminator​(RDBMSStoreManager storeMgr, org.datanucleus.ExecutionContext ec, java.lang.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 java.lang.String getClassNameForIdUsingUnion​(RDBMSStoreManager storeMgr, org.datanucleus.ExecutionContext ec, java.lang.Object id, java.util.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).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RDBMSStoreHelper

        private RDBMSStoreHelper()
    • Method Detail

      • getClassNameForIdUsingDiscriminator

        public static java.lang.String getClassNameForIdUsingDiscriminator​(RDBMSStoreManager storeMgr,
                                                                           org.datanucleus.ExecutionContext ec,
                                                                           java.lang.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 StoreManager
        ec - execution context
        id - The id
        cmd - Metadata for the root candidate class
        Returns:
        Name of the class with this identity (or null if none found)
      • getClassNameForIdUsingUnion

        public static java.lang.String getClassNameForIdUsingUnion​(RDBMSStoreManager storeMgr,
                                                                   org.datanucleus.ExecutionContext ec,
                                                                   java.lang.Object id,
                                                                   java.util.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 StoreManager
        ec - execution context
        id - The id
        rootCmds - Metadata for the classes at the root
        Returns:
        Name of the class with this identity (or null if none found)