Package org.teiid.metadata
Class Column
- java.lang.Object
-
- org.teiid.metadata.AbstractMetadataRecord
-
- org.teiid.metadata.BaseColumn
-
- org.teiid.metadata.Column
-
- All Implemented Interfaces:
Serializable
,Comparable<Column>
- Direct Known Subclasses:
MultiSourceElement
public class Column extends BaseColumn implements Comparable<Column>
ColumnRecordImpl- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Column.SearchType
-
Nested classes/interfaces inherited from class org.teiid.metadata.BaseColumn
BaseColumn.NullType
-
Nested classes/interfaces inherited from class org.teiid.metadata.AbstractMetadataRecord
AbstractMetadataRecord.DataModifiable, AbstractMetadataRecord.Modifiable
-
-
Field Summary
-
Fields inherited from class org.teiid.metadata.BaseColumn
DEFAULT_HANDLING, DEFAULT_PRECISION, DEFAULT_SCALE, EXPRESSION_DEFAULT, OMIT_DEFAULT, SPATIAL_COORD_DIMENSION, SPATIAL_SRID, SPATIAL_TYPE
-
Fields inherited from class org.teiid.metadata.AbstractMetadataRecord
NAME_DELIM_CHAR, RELATIONAL_PREFIX
-
-
Constructor Summary
Constructors Constructor Description Column()
-
Method Summary
-
Methods inherited from class org.teiid.metadata.BaseColumn
getArrayDimensions, getDatatype, getDatatypeUUID, getDefaultValue, getJavaType, getLength, getNullType, getPosition, getPrecision, getRadix, getRuntimeType, getScale, isDefaultPrecisionScale, setDatatype, setDatatype, setDatatypeUUID, setDefaultValue, setLength, setNullType, setPosition, setPrecision, setRadix, setRuntimeType, setScale
-
Methods inherited from class org.teiid.metadata.AbstractMetadataRecord
equals, getAnnotation, getCanonicalName, getFullName, getIdentifier, getIncomingObjects, getName, getNameInSource, getProperties, getProperty, getProperty, getSourceName, getSQLString, getSQLString, getUUID, hashCode, isUUIDSet, setAnnotation, setIncomingObjects, setName, setNameInSource, setProperties, setProperty, setUUID, toString
-
-
-
-
Method Detail
-
setDatatype
public void setDatatype(Datatype datatype, boolean copyAttributes, int arrayDimensions)
- Overrides:
setDatatype
in classBaseColumn
-
setParent
public void setParent(ColumnSet<?> parent)
-
getParent
public ColumnSet<?> getParent()
- Overrides:
getParent
in classAbstractMetadataRecord
-
compareTo
public int compareTo(Column record)
- Specified by:
compareTo
in interfaceComparable<Column>
-
getCharOctetLength
public int getCharOctetLength()
-
getMaximumValue
public String getMaximumValue()
-
getMinimumValue
public String getMinimumValue()
-
getSearchType
public Column.SearchType getSearchType()
-
isSearchTypeSet
public boolean isSearchTypeSet()
-
getFormat
public String getFormat()
-
isAutoIncremented
public boolean isAutoIncremented()
-
isCaseSensitive
public boolean isCaseSensitive()
-
isCurrency
public boolean isCurrency()
-
isFixedLength
public boolean isFixedLength()
-
isSelectable
public boolean isSelectable()
-
isSigned
public boolean isSigned()
-
isUpdatable
public boolean isUpdatable()
-
getNativeType
public String getNativeType()
- Overrides:
getNativeType
in classBaseColumn
-
getNullValues
public int getNullValues()
-
getNullValuesAsFloat
public float getNullValuesAsFloat()
-
getDistinctValues
public int getDistinctValues()
-
getDistinctValuesAsFloat
public float getDistinctValuesAsFloat()
-
setAutoIncremented
public void setAutoIncremented(boolean b)
- Parameters:
b
-
-
setCaseSensitive
public void setCaseSensitive(boolean b)
- Parameters:
b
-
-
setCharOctetLength
public void setCharOctetLength(int i)
- Parameters:
i
-
-
setCurrency
public void setCurrency(boolean b)
- Parameters:
b
-
-
setFixedLength
public void setFixedLength(boolean b)
- Parameters:
b
-
-
setMaximumValue
public void setMaximumValue(String object)
- Parameters:
object
-
-
setMinimumValue
public void setMinimumValue(String object)
- Parameters:
object
-
-
setSearchType
public void setSearchType(Column.SearchType s)
- Parameters:
s
-
-
setSelectable
public void setSelectable(boolean b)
- Parameters:
b
-
-
setSigned
public void setSigned(boolean b)
- Parameters:
b
-
-
setUpdatable
public void setUpdatable(boolean b)
- Parameters:
b
-
-
setFormat
public void setFormat(String string)
- Parameters:
string
-
-
setDistinctValues
public void setDistinctValues(int distinctValues)
- Parameters:
distinctValues
- The distinctValues to set.- Since:
- 4.3
-
setDistinctValues
public void setDistinctValues(long distinctValues)
-
setNullValues
public void setNullValues(int nullValues)
- Parameters:
nullValues
- The nullValues to set.- Since:
- 4.3
-
setNullValues
public void setNullValues(long nullValues)
-
setNativeType
public void setNativeType(String nativeType)
- Overrides:
setNativeType
in classBaseColumn
- Parameters:
nativeType
- The nativeType to set.- Since:
- 4.2
-
setColumnStats
public void setColumnStats(ColumnStats stats)
-
-