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 java.lang.Object implements org.datanucleus.store.schema.MapStoreSchemaDataRepresentation 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) java.util.Map<java.lang.String,org.datanucleus.store.schema.StoreSchemaData>jdbcTypesJDBC Types information, keyed by type number (java.sql.Types).(package private) java.util.Map<java.lang.String,java.lang.Object>propertiesProperties of the types.
-
Constructor Summary
Constructors Constructor Description RDBMSTypesInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChild(org.datanucleus.store.schema.StoreSchemaData type)Method to add another type to the schema.voidaddProperty(java.lang.String name, java.lang.Object value)Method to add a property for the types.voidclearChildren()Method to remove all children.booleanequals(java.lang.Object obj)Indicates whether some object is "equal to" this one.org.datanucleus.store.schema.StoreSchemaDatagetChild(java.lang.String key)Accessor for the JDBC type for this type.java.util.Map<java.lang.String,org.datanucleus.store.schema.StoreSchemaData>getChildren()Accessor for the JDBC types.intgetNumberOfChildren()Accessor for the number of JDBC types in the schema for this schema.org.datanucleus.store.schema.StoreSchemaDatagetParent()java.lang.ObjectgetProperty(java.lang.String name)Accessor for a property of the types.inthashCode()Returns a hash code value for this object.voidsetParent(org.datanucleus.store.schema.StoreSchemaData parent)java.lang.StringtoString()Returns the string representation of this object.
-
-
-
Method Detail
-
addChild
public void addChild(org.datanucleus.store.schema.StoreSchemaData type)
Method to add another type to the schema.- Specified by:
addChildin interfaceorg.datanucleus.store.schema.MapStoreSchemaData- Parameters:
type- Type
-
clearChildren
public void clearChildren()
Method to remove all children.- Specified by:
clearChildrenin interfaceorg.datanucleus.store.schema.MapStoreSchemaData
-
getChild
public org.datanucleus.store.schema.StoreSchemaData getChild(java.lang.String key)
Accessor for the JDBC type for this type.- Specified by:
getChildin interfaceorg.datanucleus.store.schema.MapStoreSchemaData- Parameters:
key- JDBC type to retrieve- Returns:
- Type with this key
-
getChildren
public java.util.Map<java.lang.String,org.datanucleus.store.schema.StoreSchemaData> getChildren()
Accessor for the JDBC types.- Specified by:
getChildrenin interfaceorg.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:
getNumberOfChildrenin interfaceorg.datanucleus.store.schema.MapStoreSchemaData- Returns:
- Number of JDBC types
-
addProperty
public void addProperty(java.lang.String name, java.lang.Object value)Method to add a property for the types.- Specified by:
addPropertyin interfaceorg.datanucleus.store.schema.StoreSchemaData- Parameters:
name- Name of propertyvalue- Its value
-
getProperty
public java.lang.Object getProperty(java.lang.String name)
Accessor for a property of the types.- Specified by:
getPropertyin interfaceorg.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:
getParentin interfaceorg.datanucleus.store.schema.MapStoreSchemaData
-
setParent
public void setParent(org.datanucleus.store.schema.StoreSchemaData parent)
- Specified by:
setParentin interfaceorg.datanucleus.store.schema.MapStoreSchemaData
-
equals
public final boolean equals(java.lang.Object obj)
Indicates whether some object is "equal to" this one.- Overrides:
equalsin classjava.lang.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:
hashCodein classjava.lang.Object- Returns:
- hash code
-
toString
public java.lang.String toString()
Returns the string representation of this object.- Overrides:
toStringin classjava.lang.Object- Returns:
- string representation of this object.
-
-