public class JDBCTypeInfo extends Object implements org.datanucleus.store.schema.MapStoreSchemaData
Constructor and Description |
---|
JDBCTypeInfo(short type) |
Modifier and Type | Method and Description |
---|---|
void |
addChild(org.datanucleus.store.schema.StoreSchemaData child)
Add a SQL type for this JDBC type.
|
void |
addProperty(String name,
Object value)
Method to add a property for the type.
|
void |
clearChildren()
Method to remove all children.
|
boolean |
equals(Object obj)
Indicates whether some object is "equal to" this one.
|
org.datanucleus.store.schema.StoreSchemaData |
getChild(String key)
Accessor for the SQL type with this type name (if supported for this JDBC type).
|
Map |
getChildren()
Accessor for the SQL types map for this JDBC type, keyed by the type name.
|
int |
getNumberOfChildren() |
org.datanucleus.store.schema.StoreSchemaData |
getParent()
Accessor for the parent component.
|
Object |
getProperty(String name)
Accessor for a property.
|
int |
hashCode()
Returns a hash code value for this object.
|
void |
setDefaultChild(String sqlTypeName)
Set the default child to be used.
|
void |
setParent(org.datanucleus.store.schema.StoreSchemaData parent)
Mutator for the parent component.
|
String |
toString()
Returns the string representation of this object.
|
public void setParent(org.datanucleus.store.schema.StoreSchemaData parent)
setParent
in interface org.datanucleus.store.schema.MapStoreSchemaData
parent
- Parent componentpublic org.datanucleus.store.schema.StoreSchemaData getParent()
getParent
in interface org.datanucleus.store.schema.MapStoreSchemaData
public void addProperty(String name, Object value)
addProperty
in interface org.datanucleus.store.schema.StoreSchemaData
name
- Name of propertyvalue
- Its valuepublic Object getProperty(String name)
getProperty
in interface org.datanucleus.store.schema.StoreSchemaData
name
- Name of the propertypublic void addChild(org.datanucleus.store.schema.StoreSchemaData child)
addChild
in interface org.datanucleus.store.schema.MapStoreSchemaData
child
- The SQL typepublic void setDefaultChild(String sqlTypeName)
sqlTypeName
- SQL Type to use as the default for this JDBC typepublic void clearChildren()
clearChildren
in interface org.datanucleus.store.schema.MapStoreSchemaData
public org.datanucleus.store.schema.StoreSchemaData getChild(String key)
getChild
in interface org.datanucleus.store.schema.MapStoreSchemaData
key
- type namepublic Map getChildren()
getChildren
in interface org.datanucleus.store.schema.MapStoreSchemaData
public int getNumberOfChildren()
getNumberOfChildren
in interface org.datanucleus.store.schema.MapStoreSchemaData
public final boolean equals(Object obj)
public final int hashCode()
Copyright © 2020. All rights reserved.