Class PointbaseAdapter

java.lang.Object
org.datanucleus.store.rdbms.adapter.BaseDatastoreAdapter
org.datanucleus.store.rdbms.adapter.PointbaseAdapter
All Implemented Interfaces:
DatastoreAdapter

public class PointbaseAdapter extends BaseDatastoreAdapter
Provides methods for adapting SQL language elements to the Pointbase database.
  • Constructor Details

    • PointbaseAdapter

      public PointbaseAdapter(DatabaseMetaData metadata)
      Constructor.
      Parameters:
      metadata - MetaData for the Database
  • Method Details

    • initialiseTypes

      public void initialiseTypes(org.datanucleus.store.schema.StoreSchemaHandler handler, org.datanucleus.store.connection.ManagedConnection mconn)
      Initialise the types for this datastore.
      Specified by:
      initialiseTypes in interface DatastoreAdapter
      Overrides:
      initialiseTypes in class BaseDatastoreAdapter
      Parameters:
      handler - SchemaHandler that we initialise the types for
      mconn - Managed connection to use
    • getVendorID

      public String getVendorID()
      Accessor for the vendor id.
      Specified by:
      getVendorID in interface DatastoreAdapter
      Overrides:
      getVendorID in class BaseDatastoreAdapter
      Returns:
      The vendor id.
    • getUnlimitedLengthPrecisionValue

      public int getUnlimitedLengthPrecisionValue(SQLTypeInfo typeInfo)
      Returns the precision value to be used when creating string columns of "unlimited" length. Usually, if this value is needed it is provided in the database metadata. However, for some types in some databases the value must be computed specially.
      Specified by:
      getUnlimitedLengthPrecisionValue in interface DatastoreAdapter
      Overrides:
      getUnlimitedLengthPrecisionValue in class BaseDatastoreAdapter
      Parameters:
      typeInfo - the typeInfo object for which the precision value is needed.
      Returns:
      the precision value to be used when creating the column, or -1 if no value should be used.
    • loadColumnMappings

      protected void loadColumnMappings(org.datanucleus.plugin.PluginManager mgr, org.datanucleus.ClassLoaderResolver clr)
      Load all datastore mappings for this RDBMS database.
      Overrides:
      loadColumnMappings in class BaseDatastoreAdapter
      Parameters:
      mgr - the PluginManager
      clr - the ClassLoaderResolver