Class RDBMSTypesInfo

java.lang.Object
org.datanucleus.store.rdbms.schema.RDBMSTypesInfo
All Implemented Interfaces:
org.datanucleus.store.schema.MapStoreSchemaData, org.datanucleus.store.schema.StoreSchemaData

public class RDBMSTypesInfo extends Object implements org.datanucleus.store.schema.MapStoreSchemaData
Representation of types information in the datastore. Contains a map of child JDBCTypeInfo objects, which turn contain child SQLTypeInfo objects.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) Map<String,org.datanucleus.store.schema.StoreSchemaData>
    JDBC Types information, keyed by type number (java.sql.Types).
    (package private) Map<String,Object>
    Properties of the types.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addChild(org.datanucleus.store.schema.StoreSchemaData type)
    Method to add another type to the schema.
    void
    addProperty(String name, Object value)
    Method to add a property for the types.
    void
    Method to remove all children.
    final boolean
    Indicates whether some object is "equal to" this one.
    org.datanucleus.store.schema.StoreSchemaData
    Accessor for the JDBC type for this type.
    Map<String,org.datanucleus.store.schema.StoreSchemaData>
    Accessor for the JDBC types.
    int
    Accessor for the number of JDBC types in the schema for this schema.
    org.datanucleus.store.schema.StoreSchemaData
     
    Accessor for a property of the types.
    final int
    Returns a hash code value for this object.
    void
    setParent(org.datanucleus.store.schema.StoreSchemaData parent)
     
    Returns the string representation of this object.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • properties

      Map<String,Object> properties
      Properties of the types.
    • jdbcTypes

      Map<String,org.datanucleus.store.schema.StoreSchemaData> jdbcTypes
      JDBC Types information, keyed by type number (java.sql.Types).
  • Constructor Details

    • RDBMSTypesInfo

      public RDBMSTypesInfo()
  • Method Details

    • addChild

      public void addChild(org.datanucleus.store.schema.StoreSchemaData type)
      Method to add another type to the schema.
      Specified by:
      addChild in interface org.datanucleus.store.schema.MapStoreSchemaData
      Parameters:
      type - Type
    • clearChildren

      public void clearChildren()
      Method to remove all children.
      Specified by:
      clearChildren in interface org.datanucleus.store.schema.MapStoreSchemaData
    • getChild

      public org.datanucleus.store.schema.StoreSchemaData getChild(String key)
      Accessor for the JDBC type for this type.
      Specified by:
      getChild in interface org.datanucleus.store.schema.MapStoreSchemaData
      Parameters:
      key - JDBC type to retrieve
      Returns:
      Type with this key
    • getChildren

      public Map<String,org.datanucleus.store.schema.StoreSchemaData> getChildren()
      Accessor for the JDBC types.
      Specified by:
      getChildren in interface org.datanucleus.store.schema.MapStoreSchemaData
      Returns:
      Types
    • getNumberOfChildren

      public int getNumberOfChildren()
      Accessor for the number of JDBC types in the schema for this schema.
      Specified by:
      getNumberOfChildren in interface org.datanucleus.store.schema.MapStoreSchemaData
      Returns:
      Number of JDBC types
    • addProperty

      public void addProperty(String name, Object value)
      Method to add a property for the types.
      Specified by:
      addProperty in interface org.datanucleus.store.schema.StoreSchemaData
      Parameters:
      name - Name of property
      value - Its value
    • getProperty

      public Object getProperty(String name)
      Accessor for a property of the types.
      Specified by:
      getProperty in interface org.datanucleus.store.schema.StoreSchemaData
      Parameters:
      name - Name of the property
      Returns:
      Its value, or null if not defined
    • getParent

      public org.datanucleus.store.schema.StoreSchemaData getParent()
      Specified by:
      getParent in interface org.datanucleus.store.schema.MapStoreSchemaData
    • setParent

      public void setParent(org.datanucleus.store.schema.StoreSchemaData parent)
      Specified by:
      setParent in interface org.datanucleus.store.schema.MapStoreSchemaData
    • equals

      public final boolean equals(Object obj)
      Indicates whether some object is "equal to" this one.
      Overrides:
      equals in class Object
      Parameters:
      obj - the reference object with which to compare
      Returns:
      true if this object is equal to the obj argument; false otherwise.
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object.
      Overrides:
      hashCode in class Object
      Returns:
      hash code
    • toString

      public String toString()
      Returns the string representation of this object.
      Overrides:
      toString in class Object
      Returns:
      string representation of this object.