public class IndexModelBuilder2 extends Object
Ujo class
private static final String IDX_STATE_COUNT = "idx_state_count";
private static final String IDX_COUNT = "idx_count";
@Column(index = IDX_STATE_COUNT)
public static final Key<XOrder, State> STATE = newKey();
@Column(index = {IDX_STATE_COUNT, IDX_COUNT})
public static final Key<XOrder, Integer> COUNT = newKey();
The builder class can be changed by the parameter MetaParams.INDEX_MODEL_BUILDER.| Modifier and Type | Field and Description |
|---|---|
protected Map<String,MetaIndex> |
mapIndex
Map a MetaIndex for an index name (case insensitive)
|
protected MetaTable |
metaTable
MetaTable
|
protected SqlNameProvider |
nameProvider
SQL name provider
|
| Constructor and Description |
|---|
IndexModelBuilder2() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addColumnsToIndex()
Add columns to index
|
protected void |
addIndex(String indexName,
MetaColumn column,
boolean unique)
Add the column model to the index model from the IndexMap according the index name (case insensitive)
|
Collection<MetaIndex> |
getIndexModels()
Returns all indexes of the current table
|
void |
init(MetaTable metaTable)
Initialize the object
|
protected Boolean |
isExtendedIndexStrategy()
Is an extended index naming strategy
|
protected MetaTable metaTable
protected SqlNameProvider nameProvider
public void init(MetaTable metaTable) throws org.ujorm.core.IllegalUjormException
org.ujorm.core.IllegalUjormExceptionprotected void addIndex(String indexName, MetaColumn column, boolean unique)
indexName - Case sensitive index namecolumn - Column modelunique - Unique index requestpublic Collection<MetaIndex> getIndexModels()
protected void addColumnsToIndex()
protected Boolean isExtendedIndexStrategy()
MoreParams.EXTENTED_INDEX_NAME_STRATEGYCopyright 2013, Pavel Ponec