kdl.prox.db
Class AttrType

java.lang.Object
  extended by kdl.prox.db.AttrType

public class AttrType
extends java.lang.Object

Represents one of an attribute's value columns. Instances are created by Attributes.getTypes().

See Also:
Attributes.getTypes(String)

Method Summary
static java.lang.String[] attrTypeDefToColNamesAndTypes(java.lang.String attrType)
          Converts an attribute definition (e.g.
static java.util.List attrTypeListForTypeDef(java.lang.String typeDef)
          Utility that converts an attribute type definition string to a List of AttrType instances.
 DataTypeEnum getDataTypeEnum()
          Returns my dataTypeEnum.
 java.lang.String getName()
          Returns my name.
 java.lang.String toString()
          Object method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getDataTypeEnum

public DataTypeEnum getDataTypeEnum()
Returns my dataTypeEnum.

Returns:

getName

public java.lang.String getName()
Returns my name.

Returns:

toString

public java.lang.String toString()
Object method.

Overrides:
toString in class java.lang.Object

attrTypeDefToColNamesAndTypes

public static java.lang.String[] attrTypeDefToColNamesAndTypes(java.lang.String attrType)
Converts an attribute definition (e.g. year:int, salary:float) to two string with column names and types (e.g., "year, salary", "int, float")

Parameters:
attrType -
Returns:

attrTypeListForTypeDef

public static java.util.List attrTypeListForTypeDef(java.lang.String typeDef)
                                             throws java.lang.IllegalArgumentException
Utility that converts an attribute type definition string to a List of AttrType instances. See Attributes.defineAttribute() for typeDef's syntax.

Parameters:
typeDef -
Returns:
Throws:
java.lang.IllegalArgumentException - if typeDef invalid
See Also:
AttrType, Attributes.defineAttribute(String, String)