public abstract class BaseColumn extends AbstractMetadataRecord
Modifier and Type | Class and Description |
---|---|
static class |
BaseColumn.NullType |
AbstractMetadataRecord.DataModifiable, AbstractMetadataRecord.Modifiable
Modifier and Type | Field and 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 |
NAME_DELIM_CHAR, RELATIONAL_URI
Constructor and Description |
---|
BaseColumn() |
Modifier and Type | Method and 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 position
|
int |
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 type
|
void |
setDatatype(Datatype datatype,
boolean copyAttributes)
Set the datatype and assumes a non-array type
|
void |
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) |
equals, getAnnotation, getCanonicalName, getFullName, getIncomingObjects, getName, getNameInSource, getParent, getProperties, getProperty, getSourceName, getSQLString, getSQLString, getUUID, hashCode, isUUIDSet, setAnnotation, setIncomingObjects, setName, setNameInSource, setProperties, setProperty, setUUID, toString
public static final String DEFAULT_HANDLING
public static final String EXPRESSION_DEFAULT
public static final String OMIT_DEFAULT
public static final String SPATIAL_SRID
public static final String SPATIAL_TYPE
public static final String SPATIAL_COORD_DIMENSION
public static final int DEFAULT_PRECISION
public static final int DEFAULT_SCALE
public String getDefaultValue()
public String getDatatypeUUID()
public String getRuntimeType()
public Class<?> getJavaType()
public int getLength()
public int getPrecision()
public int getScale()
public boolean isDefaultPrecisionScale()
public int getRadix()
public int getPosition()
public BaseColumn.NullType getNullType()
public void setLength(int i)
public void setPrecision(int i)
public void setScale(int i)
public void setRadix(int i)
public void setNullType(BaseColumn.NullType i)
public void setPosition(int i)
public void setRuntimeType(String string)
public void setDatatypeUUID(String string)
public void setDefaultValue(String object)
public Datatype getDatatype()
getArrayDimensions()
> 0public void setDatatype(Datatype datatype)
datatype
- for more control over the type info
public void setDatatype(Datatype datatype, boolean copyAttributes)
datatype
- copyAttributes
- for more control over the type info
public void setDatatype(Datatype datatype, boolean copyAttributes, int arrayDimensions)
public int getArrayDimensions()
public String getNativeType()
public void setNativeType(String nativeType)
nativeType
- The nativeType to set.Copyright © 2018 JBoss by Red Hat. All rights reserved.