|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.text.Format
com.davisor.data.Type
com.davisor.data.MetaType
MetaType describes a multi-dimensional data array that contains data streams. Depending on the dimension of the data array, the data streams within may contain yet other data streams. The MetaType dimension attribute tells how deep this recursion is expected to be. An optional index attribute tells the data array index within it's parent array, if any.
| Nested Class Summary |
| Nested classes inherited from class java.text.Format |
java.text.Format.Field |
| Field Summary | |
static java.lang.String |
TYPENAME
Type name ("META"). |
| Fields inherited from class com.davisor.data.Type |
METADATA_GROUP, METADATA_NAME, METADATA_PARENT, METADATA_SUBCHANNELS |
| Constructor Summary | |
|
MetaType()
Default constructor. |
|
MetaType(MetaType mt)
Copy constructor. |
|
MetaType(java.lang.String dataName,
java.lang.String id,
java.util.Map metaData,
int dimension,
java.lang.Integer index)
Creates a new meta type. |
protected |
MetaType(java.lang.String typeName,
java.lang.String dataName,
java.lang.String id,
java.util.Map metaData,
int dimension,
java.lang.Integer index)
Creates a new meta type. |
| Method Summary | |
com.davisor.core.Dupable |
dup()
Makes a deep copy of this object. |
java.lang.String |
getFormat()
Gets the meta type specification string. |
int |
getSQLCode()
Gets the SQL type code, as defined by java.sql.Types. |
java.lang.String |
getSQLName()
Gets the SQL type name. |
java.lang.Class |
getValueClass()
Gets value container class. |
void |
setFormat(java.lang.String format)
Sets the type dimension and index. |
DataValue |
toData(java.lang.String stringValue,
java.text.ParsePosition status)
Converts a string to a data value. |
DataValue |
zero()
Gets zero data value for this type. |
| Methods inherited from class com.davisor.data.Type |
ceil, check, check, compare, create, create, create, create, create, dup, equals, floor, format, getCompatibility, getDataName, getId, getID, getMetaData, getMetaData, getSpecs, getSQLName, getTypeName, hashCode, isNull, parseObject, register, register, setDataName, setId, setID, setMetaData, setMetaData, setSpecs, toData, toData, toData, toString, toXML, xmlEnd, xmlStart |
| Methods inherited from class java.text.Format |
clone, format, formatToCharacterIterator, parseObject |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String TYPENAME
| Constructor Detail |
public MetaType()
public MetaType(MetaType mt)
public MetaType(java.lang.String dataName,
java.lang.String id,
java.util.Map metaData,
int dimension,
java.lang.Integer index)
dataName - data nameid - type identitymetaData - type meta data map (may be null)dimension - type dimensionindex - type index
protected MetaType(java.lang.String typeName,
java.lang.String dataName,
java.lang.String id,
java.util.Map metaData,
int dimension,
java.lang.Integer index)
typeName - type namedataName - data nameid - type identitymetaData - type meta data map (may be null)dimension - type dimensionindex - type index| Method Detail |
public java.lang.String getSQLName()
getSQLName in class Typepublic int getSQLCode()
getSQLCode in class Typepublic java.lang.Class getValueClass()
getValueClass in class Type
public DataValue toData(java.lang.String stringValue,
java.text.ParsePosition status)
throws InvalidDataException
Meta type does not yet support this operation, and throws always
a InvalidDataException.
toData in class TypestringValue - data stringstatus - parse status (may be null)
InvalidDataException - if given string value could not be parsedType.toData(CallableStatement,int),
Type.toData(Object),
Type.toData(ResultSet,int)public com.davisor.core.Dupable dup()
dup in interface com.davisor.core.Dupabledup in class Typepublic java.lang.String getFormat()
null is returned.
getFormat in class Typenull specification stringsetFormat(java.lang.String)public void setFormat(java.lang.String format)
setFormat in class Typeformat - type specification string (may be null)getFormat()public DataValue zero()
zero in class Typejava.lang.Error - always since this operation is undefinedDataValue.deinterpolate(com.davisor.data.DataValue, com.davisor.data.DataValue),
DataValue.interpolate(double, com.davisor.data.DataValue)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||