Package org.teiid.metadata
Class Datatype
- java.lang.Object
-
- org.teiid.metadata.AbstractMetadataRecord
-
- org.teiid.metadata.Datatype
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Datatype extends AbstractMetadataRecord implements Cloneable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Datatype.Type
static class
Datatype.Variety
-
Nested classes/interfaces inherited from class org.teiid.metadata.AbstractMetadataRecord
AbstractMetadataRecord.DataModifiable, AbstractMetadataRecord.Modifiable
-
-
Field Summary
-
Fields inherited from class org.teiid.metadata.AbstractMetadataRecord
NAME_DELIM_CHAR, RELATIONAL_PREFIX
-
-
Constructor Summary
Constructors Constructor Description Datatype()
-
Method Summary
-
Methods inherited from class org.teiid.metadata.AbstractMetadataRecord
equals, getAnnotation, getCanonicalName, getFullName, getIdentifier, getIncomingObjects, getName, getNameInSource, getParent, getProperties, getProperty, getProperty, getSourceName, getSQLString, getSQLString, getUUID, hashCode, isUUIDSet, setAnnotation, setIncomingObjects, setName, setNameInSource, setProperties, setProperty, setUUID
-
-
-
-
Method Detail
-
getLength
public int getLength()
Get the length of the type. For string (binary or character) types, it is the number of characters. For all other types it is the byte storage size.- Returns:
-
getPrecisionLength
public int getPrecisionLength()
Deprecated.- See Also:
getPrecision()
-
getPrecision
public int getPrecision()
-
getScale
public int getScale()
-
getRadix
public int getRadix()
-
isSigned
public boolean isSigned()
-
isAutoIncrement
public boolean isAutoIncrement()
-
isCaseSensitive
public boolean isCaseSensitive()
-
getType
public Datatype.Type getType()
-
isBuiltin
public boolean isBuiltin()
-
getSearchType
public Column.SearchType getSearchType()
-
getNullType
public BaseColumn.NullType getNullType()
-
getJavaClassName
public String getJavaClassName()
-
getRuntimeTypeName
public String getRuntimeTypeName()
-
getBasetypeName
public String getBasetypeName()
-
setBasetypeName
public void setBasetypeName(String name)
-
getVarietyType
public Datatype.Variety getVarietyType()
-
setAutoIncrement
public void setAutoIncrement(boolean b)
- Parameters:
b
-
-
setCaseSensitive
public void setCaseSensitive(boolean b)
- Parameters:
b
-
-
setSigned
public void setSigned(boolean b)
- Parameters:
b
-
-
setJavaClassName
public void setJavaClassName(String string)
- Parameters:
string
-
-
setLength
public void setLength(int i)
- Parameters:
i
-
-
setNullType
public void setNullType(BaseColumn.NullType s)
- Parameters:
s
-
-
setPrecision
public void setPrecision(int i)
- Parameters:
i
-
-
setPrecisionLength
public void setPrecisionLength(int i)
Deprecated.- See Also:
setPrecision(int)
-
setRadix
public void setRadix(int i)
- Parameters:
i
-
-
setRuntimeTypeName
public void setRuntimeTypeName(String string)
- Parameters:
string
-
-
setScale
public void setScale(int i)
- Parameters:
i
-
-
setSearchType
public void setSearchType(Column.SearchType s)
- Parameters:
s
-
-
setType
public void setType(Datatype.Type s)
- Parameters:
s
-
-
setVarietyType
public void setVarietyType(Datatype.Variety s)
- Parameters:
s
-
-
toString
public String toString()
- Overrides:
toString
in classAbstractMetadataRecord
-
-