Class JDBCTypeInfo
java.lang.Object
org.datanucleus.store.rdbms.schema.JDBCTypeInfo
- All Implemented Interfaces:
org.datanucleus.store.schema.MapStoreSchemaData, org.datanucleus.store.schema.StoreSchemaData
Representation of JDBC type information in the datastore.
Each JDBC type info has a map of SQL type info for this JDBC type.
Has the property "jdbc_type" as a Short of the java.sql.Types value.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(org.datanucleus.store.schema.StoreSchemaData child) Add a SQL type for this JDBC type.voidaddProperty(String name, Object value) Method to add a property for the type.voidMethod to remove all children.final booleanIndicates whether some object is "equal to" this one.org.datanucleus.store.schema.StoreSchemaDataAccessor for the SQL type with this type name (if supported for this JDBC type).Accessor for the SQL types map for this JDBC type, keyed by the type name.intorg.datanucleus.store.schema.StoreSchemaDataAccessor for the parent component.getProperty(String name) Accessor for a property.final inthashCode()Returns a hash code value for this object.voidsetDefaultChild(String sqlTypeName) Set the default child to be used.voidsetParent(org.datanucleus.store.schema.StoreSchemaData parent) Mutator for the parent component.toString()Returns the string representation of this object.
-
Field Details
-
hash
private int hashHashcode. Set on first use. -
properties
-
sqlTypes
-
-
Constructor Details
-
JDBCTypeInfo
public JDBCTypeInfo(short type)
-
-
Method Details
-
setParent
public void setParent(org.datanucleus.store.schema.StoreSchemaData parent) Mutator for the parent component.- Specified by:
setParentin interfaceorg.datanucleus.store.schema.MapStoreSchemaData- Parameters:
parent- Parent component
-
getParent
public org.datanucleus.store.schema.StoreSchemaData getParent()Accessor for the parent component.- Specified by:
getParentin interfaceorg.datanucleus.store.schema.MapStoreSchemaData- Returns:
- null
-
addProperty
-
getProperty
-
addChild
public void addChild(org.datanucleus.store.schema.StoreSchemaData child) Add a SQL type for this JDBC type.- Specified by:
addChildin interfaceorg.datanucleus.store.schema.MapStoreSchemaData- Parameters:
child- The SQL type
-
setDefaultChild
Set the default child to be used. If this child is not a current value then it will be ignored.- Parameters:
sqlTypeName- SQL Type to use as the default for this JDBC type
-
clearChildren
public void clearChildren()Method to remove all children.- Specified by:
clearChildrenin interfaceorg.datanucleus.store.schema.MapStoreSchemaData
-
getChild
Accessor for the SQL type with this type name (if supported for this JDBC type).- Specified by:
getChildin interfaceorg.datanucleus.store.schema.MapStoreSchemaData- Parameters:
key- type name- Returns:
- the SQL type
-
getChildren
Accessor for the SQL types map for this JDBC type, keyed by the type name.- Specified by:
getChildrenin interfaceorg.datanucleus.store.schema.MapStoreSchemaData- Returns:
- Map of SQL types
-
getNumberOfChildren
public int getNumberOfChildren()- Specified by:
getNumberOfChildrenin interfaceorg.datanucleus.store.schema.MapStoreSchemaData
-
equals
Indicates whether some object is "equal to" this one. Two JDBCTypeInfo are considered equal if their jdbc type is the same. -
hashCode
-
toString
-