Package org.teiid.metadata
Class BaseColumn
- java.lang.Object
-
- org.teiid.metadata.AbstractMetadataRecord
-
- org.teiid.metadata.BaseColumn
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Column
,FunctionParameter
,ProcedureParameter
public abstract class BaseColumn extends AbstractMetadataRecord
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BaseColumn.NullType
-
Nested classes/interfaces inherited from class org.teiid.metadata.AbstractMetadataRecord
AbstractMetadataRecord.DataModifiable, AbstractMetadataRecord.Modifiable
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_HANDLING
static int
DEFAULT_PRECISION
static int
DEFAULT_SCALE
static String
EXPRESSION_DEFAULT
static String
OMIT_DEFAULT
static String
SPATIAL_COORD_DIMENSION
static String
SPATIAL_SRID
static String
SPATIAL_TYPE
-
Fields inherited from class org.teiid.metadata.AbstractMetadataRecord
NAME_DELIM_CHAR, RELATIONAL_PREFIX
-
-
Constructor Summary
Constructors Constructor Description BaseColumn()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getArrayDimensions()
Get the array dimensions.Datatype
getDatatype()
Get the type.String
getDatatypeUUID()
String
getDefaultValue()
Class<?>
getJavaType()
int
getLength()
String
getNativeType()
BaseColumn.NullType
getNullType()
int
getPosition()
1 based ordinal positionint
getPrecision()
int
getRadix()
String
getRuntimeType()
int
getScale()
boolean
isDefaultPrecisionScale()
void
setDatatype(Datatype datatype)
Set the datatype without copying any of the datatype attributes and assumes a non-array typevoid
setDatatype(Datatype datatype, boolean copyAttributes)
Set the datatype and assumes a non-array typevoid
setDatatype(Datatype datatype, boolean copyAttributes, int arrayDimensions)
void
setDatatypeUUID(String string)
void
setDefaultValue(String object)
void
setLength(int i)
void
setNativeType(String nativeType)
void
setNullType(BaseColumn.NullType i)
void
setPosition(int i)
void
setPrecision(int i)
void
setRadix(int i)
void
setRuntimeType(String string)
void
setScale(int i)
-
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, toString
-
-
-
-
Field Detail
-
DEFAULT_HANDLING
public static final String DEFAULT_HANDLING
- See Also:
- Constant Field Values
-
EXPRESSION_DEFAULT
public static final String EXPRESSION_DEFAULT
- See Also:
- Constant Field Values
-
OMIT_DEFAULT
public static final String OMIT_DEFAULT
- See Also:
- Constant Field Values
-
SPATIAL_SRID
public static final String SPATIAL_SRID
- See Also:
- Constant Field Values
-
SPATIAL_TYPE
public static final String SPATIAL_TYPE
- See Also:
- Constant Field Values
-
SPATIAL_COORD_DIMENSION
public static final String SPATIAL_COORD_DIMENSION
- See Also:
- Constant Field Values
-
DEFAULT_PRECISION
public static final int DEFAULT_PRECISION
- See Also:
- Constant Field Values
-
DEFAULT_SCALE
public static final int DEFAULT_SCALE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDefaultValue
public String getDefaultValue()
-
getDatatypeUUID
public String getDatatypeUUID()
-
getRuntimeType
public String getRuntimeType()
-
getJavaType
public Class<?> getJavaType()
-
getLength
public int getLength()
-
getPrecision
public int getPrecision()
-
getScale
public int getScale()
-
isDefaultPrecisionScale
public boolean isDefaultPrecisionScale()
-
getRadix
public int getRadix()
-
getPosition
public int getPosition()
1 based ordinal position- Returns:
-
getNullType
public BaseColumn.NullType getNullType()
-
setLength
public void setLength(int i)
-
setPrecision
public void setPrecision(int i)
-
setScale
public void setScale(int i)
-
setRadix
public void setRadix(int i)
-
setNullType
public void setNullType(BaseColumn.NullType i)
-
setPosition
public void setPosition(int i)
-
setRuntimeType
public void setRuntimeType(String string)
-
setDatatypeUUID
public void setDatatypeUUID(String string)
-
setDefaultValue
public void setDefaultValue(String object)
-
getDatatype
public Datatype getDatatype()
Get the type. Represents the component type ifgetArrayDimensions()
> 0- Returns:
-
setDatatype
public void setDatatype(Datatype datatype)
Set the datatype without copying any of the datatype attributes and assumes a non-array type- Parameters:
datatype
-- See Also:
for more control over the type info
-
setDatatype
public void setDatatype(Datatype datatype, boolean copyAttributes)
Set the datatype and assumes a non-array type- Parameters:
datatype
-copyAttributes
-- See Also:
for more control over the type info
-
setDatatype
public void setDatatype(Datatype datatype, boolean copyAttributes, int arrayDimensions)
-
getArrayDimensions
public int getArrayDimensions()
Get the array dimensions.- Returns:
-
getNativeType
public String getNativeType()
-
setNativeType
public void setNativeType(String nativeType)
- Parameters:
nativeType
- The nativeType to set.- Since:
- 4.2
-
-