Class ProbeTable

  • All Implemented Interfaces:
    Table, org.datanucleus.store.schema.table.Table

    public class ProbeTable
    extends TableImpl
    Utility class used for detecting database schema existence and provides means of determining the schema name.
    • Constructor Detail

      • ProbeTable

        public ProbeTable​(RDBMSStoreManager storeMgr)
        Constructor
        Parameters:
        storeMgr - The RDBMSManager for this datastore
    • Method Detail

      • initialize

        public void initialize​(org.datanucleus.ClassLoaderResolver clr)
        Method to initialise the table.
        Parameters:
        clr - The ClassLoaderResolver
      • getIdMapping

        public JavaTypeMapping getIdMapping()
        Accessor for a mapping for the ID (persistable) for this table.
        Returns:
        The (persistable) ID mapping.
      • findSchemaDetails

        public String[] findSchemaDetails​(Connection conn)
                                   throws SQLException
        Accessor for the Schema details. This will return a String array with 2 elements. The first is the Catalog name, and the second the Schema name.
        Parameters:
        conn - Connection for this datastore.
        Returns:
        The Schema details
        Throws:
        SQLException - Thrown when an error occurs in the process.
      • allowDDLOutput

        protected boolean allowDDLOutput()
        Override to always really create ProbeTables in the DB. Needed to determine schema name.
        Overrides:
        allowDDLOutput in class AbstractTable
        Returns:
        Whether it allows DDL outputting
      • getMemberMapping

        public JavaTypeMapping getMemberMapping​(org.datanucleus.metadata.AbstractMemberMetaData mmd)
        Accessor the for the mapping for a field/property stored in this table.
        Parameters:
        mmd - MetaData for the field whose mapping we want
        Returns:
        The mapping