public class OrderMetaData extends MetaData implements ColumnMetaDataContainer
Modifier and Type | Class and Description |
---|---|
static class |
OrderMetaData.FieldOrder
Definition of ordering using a field.
|
Modifier and Type | Field and Description |
---|---|
protected String |
columnName
The name of the column (if specified as input)
|
protected List<ColumnMetaData> |
columns
the columns
|
protected OrderMetaData.FieldOrder[] |
fieldOrders
Ordering of fields (when using "ordered List"), splitting the "ordering" apart by comma-separated parts.
|
protected IndexedValue |
indexed
The indexing value specified as input.
|
protected IndexMetaData |
indexMetaData
IndexMetaData.
|
protected String |
mappedBy
Name of the field in the element that is the ordering field.
|
protected String |
ordering
Ordering when using an "ordered list" where the elements are retrieved in a particular order.
|
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 |
---|
OrderMetaData() |
OrderMetaData(OrderMetaData omd)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addColumn(ColumnMetaData colmd)
Add a new ColumnMetaData element
|
ColumnMetaData[] |
getColumnMetaData()
Accessor for columnMetaData
|
String |
getColumnName() |
OrderMetaData.FieldOrder[] |
getFieldOrders() |
IndexedValue |
getIndexed() |
IndexMetaData |
getIndexMetaData() |
String |
getMappedBy() |
String |
getOrdering() |
void |
initialise(ClassLoaderResolver clr)
Method to initialise the object, creating internal convenience arrays.
|
boolean |
isIndexedList()
Convenience method to return if the List is an "indexed List" like in JDO2.
|
ColumnMetaData |
newColumnMetaData()
Method to create a new column metadata, set it, and return it.
|
IndexMetaData |
newIndexMetaData()
Method to create a new index metadata, set it, and return it.
|
OrderMetaData |
setColumnName(String column) |
OrderMetaData |
setIndexed(IndexedValue val) |
OrderMetaData |
setIndexMetaData(IndexMetaData indexMetaData) |
OrderMetaData |
setMappedBy(String mappedby) |
OrderMetaData |
setOrdering(String ordering) |
addExtension, addExtensions, getExtensions, getMetaDataManager, getNoOfExtensions, getParent, getValueForExtension, getValuesForExtension, hasExtension, isInitialised, isPopulated, isUsed, removeExtension, setExtensions, setParent
protected String columnName
protected List<ColumnMetaData> columns
protected IndexMetaData indexMetaData
protected IndexedValue indexed
protected String mappedBy
protected String ordering
protected OrderMetaData.FieldOrder[] fieldOrders
public OrderMetaData(OrderMetaData omd)
omd
- The metadata to copypublic OrderMetaData()
public void initialise(ClassLoaderResolver clr)
initialise
in class MetaData
clr
- Not usedpublic final OrderMetaData setIndexed(IndexedValue val)
public IndexedValue getIndexed()
public final OrderMetaData setIndexMetaData(IndexMetaData indexMetaData)
public IndexMetaData newIndexMetaData()
public String getMappedBy()
public OrderMetaData setMappedBy(String mappedby)
public void addColumn(ColumnMetaData colmd)
ColumnMetaDataContainer
addColumn
in interface ColumnMetaDataContainer
colmd
- The Column MetaDatapublic ColumnMetaData newColumnMetaData()
public final ColumnMetaData[] getColumnMetaData()
ColumnMetaDataContainer
getColumnMetaData
in interface ColumnMetaDataContainer
public final String getColumnName()
public OrderMetaData setColumnName(String column)
public final IndexMetaData getIndexMetaData()
public boolean isIndexedList()
public String getOrdering()
public OrderMetaData setOrdering(String ordering)
public OrderMetaData.FieldOrder[] getFieldOrders()
Copyright © 2019. All rights reserved.