public class ColumnMetaData extends MetaData
Modifier and Type | Field and Description |
---|---|
protected Boolean |
allowsNull
Whether the column accepts nulls.
|
protected String |
columnDdl
Optional column DDL appended to the column definition defined by DataNucleus.
|
protected String |
defaultValue
Default value for the column (when constructing the table with this column).
|
protected boolean |
insertable
Whether this column is to be inserted when the owning object is inserted.
|
protected String |
insertValue
value to use when inserting this column in the datastore (the column is not mapped to a field/property)
|
protected JdbcType |
jdbcType
jdbc-type to use (if any).
|
protected Integer |
length
length to use (if any).
|
protected String |
name
column name.
|
protected Integer |
position
Column position for the table as a whole (0-origin).
|
protected Integer |
scale
scale to use (if any).
|
protected String |
sqlType
sql-type to use (if any).
|
protected String |
target
target column name (for matching across a FK).
|
protected String |
targetMember
target field/property name (for matching across a FK).
|
protected boolean |
unique
Whether this column should be marked as UNIQUE.
|
protected boolean |
updateable
Whether this column can be updated when the owning object is updated.
|
EXTENSION_CLASS_MULTITENANCY_COLUMN_LENGTH, EXTENSION_CLASS_MULTITENANCY_COLUMN_NAME, EXTENSION_CLASS_MULTITENANCY_DISABLE, EXTENSION_CLASS_MULTITENANCY_JDBC_TYPE, EXTENSION_CLASS_READ_ONLY, EXTENSION_CLASS_SOFTDELETE, EXTENSION_CLASS_SOFTDELETE_COLUMN_NAME, EXTENSION_CLASS_VERSION_FIELD_NAME, EXTENSION_CLASS_VIEW_DEFINITION, EXTENSION_CLASS_VIEW_IMPORTS, EXTENSION_MEMBER_CACHEABLE, EXTENSION_MEMBER_CALENDAR_ONE_COLUMN, EXTENSION_MEMBER_CASCADE_DETACH, EXTENSION_MEMBER_CASCADE_PERSIST, EXTENSION_MEMBER_CASCADE_REFRESH, EXTENSION_MEMBER_CASCADE_UPDATE, EXTENSION_MEMBER_COMPARATOR_NAME, EXTENSION_MEMBER_CONTAINER_ALLOW_NULLS, EXTENSION_MEMBER_ENUM_GETTER_BY_VALUE, EXTENSION_MEMBER_ENUM_VALUE_GETTER, EXTENSION_MEMBER_FETCH_FK_ONLY, EXTENSION_MEMBER_IMPLEMENTATION_CLASSES, EXTENSION_MEMBER_INSERTABLE, EXTENSION_MEMBER_KEY_IMPLEMENTATION_CLASSES, EXTENSION_MEMBER_LIST_ORDERING, EXTENSION_MEMBER_RELATION_DISCRIM_COLUMN, EXTENSION_MEMBER_RELATION_DISCRIM_PK, EXTENSION_MEMBER_RELATION_DISCRIM_VALUE, EXTENSION_MEMBER_STRATEGY_WHEN_NOTNULL, EXTENSION_MEMBER_TYPE_CONVERTER_DISABLED, EXTENSION_MEMBER_TYPE_CONVERTER_NAME, EXTENSION_MEMBER_UPDATEABLE, EXTENSION_MEMBER_VALUE_IMPLEMENTATION_CLASSES, EXTENSION_VERSION_NUMBER_INITIAL_VALUE, extensions, METADATA_CREATED_STATE, METADATA_INITIALISED_STATE, METADATA_POPULATED_STATE, METADATA_USED_STATE, metaDataState, parent, VENDOR_NAME
Constructor and Description |
---|
ColumnMetaData()
Default constructor.
|
ColumnMetaData(ColumnMetaData colmd)
Creates a ColumnMetaData by copying contents from
colmd . |
addExtension, addExtensions, getExtensions, getMetaDataManager, getNoOfExtensions, getParent, getValueForExtension, getValuesForExtension, hasExtension, initialise, isInitialised, isPopulated, isUsed, removeExtension, setExtensions, setParent
protected String name
protected String target
protected String targetMember
protected JdbcType jdbcType
protected String sqlType
protected Integer length
protected Integer scale
protected Boolean allowsNull
protected String defaultValue
protected String insertValue
protected boolean insertable
protected boolean updateable
protected boolean unique
protected String columnDdl
protected Integer position
public ColumnMetaData(ColumnMetaData colmd)
colmd
.colmd
- MetaData for the columnpublic ColumnMetaData()
public String getDefaultValue()
public ColumnMetaData setDefaultValue(String defaultValue)
public String getColumnDdl()
public void setColumnDdl(String columnDdl)
public boolean getInsertable()
public ColumnMetaData setInsertable(boolean insertable)
public ColumnMetaData setInsertable(String insertable)
public String getInsertValue()
public ColumnMetaData setInsertValue(String insertValue)
public JdbcType getJdbcType()
public String getJdbcTypeName()
public ColumnMetaData setJdbcType(JdbcType type)
public ColumnMetaData setJdbcType(String jdbcTypeName)
public Integer getLength()
public ColumnMetaData setLength(Integer length)
public ColumnMetaData setLength(String length)
public String getName()
public ColumnMetaData setName(String name)
public Integer getScale()
public ColumnMetaData setScale(Integer scale)
public ColumnMetaData setScale(String scale)
public String getSqlType()
public ColumnMetaData setSqlType(String sqlType)
public String getTarget()
public ColumnMetaData setTarget(String target)
public String getTargetMember()
public ColumnMetaData setTargetMember(String targetMember)
public Integer getPosition()
public ColumnMetaData setPosition(int pos)
public ColumnMetaData setPosition(String pos)
public boolean getUnique()
public ColumnMetaData setUnique(boolean unique)
public ColumnMetaData setUnique(String unique)
public boolean getUpdateable()
public ColumnMetaData setUpdateable(boolean updateable)
public ColumnMetaData setUpdateable(String updateable)
public boolean isAllowsNull()
public Boolean getAllowsNull()
public ColumnMetaData setAllowsNull(Boolean allowsNull)
public ColumnMetaData setAllowsNull(String allowsNull)
Copyright © 2019. All rights reserved.