public class ModelFunctionBasedIndex extends Object
| Constructor and Description |
|---|
ModelFunctionBasedIndex(ModelEntity mainEntity,
Element indexElement)
XML Constructor
|
ModelFunctionBasedIndex(ModelEntity mainEntity,
String name,
boolean unique,
FunctionDefinitionBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
String |
getFunction(DatabaseType dbType) |
ModelEntity |
getMainEntity()
the main entity of this relation
|
String |
getName()
the index name, used for the database index name
|
String |
getType() |
boolean |
getUnique()
specifies whether or not this index should include the unique constraint
|
String |
getVirtualColumn(DatabaseType dbType) |
ModelField |
getVirtualColumnModelField(DatabaseType dbType) |
boolean |
supportsFunctionBasedIndices(DatabaseType databaseType) |
public ModelFunctionBasedIndex(ModelEntity mainEntity, String name, boolean unique, FunctionDefinitionBuilder builder)
public ModelFunctionBasedIndex(ModelEntity mainEntity, Element indexElement)
public String getName()
public String getFunction(DatabaseType dbType)
public boolean getUnique()
public String getVirtualColumn(DatabaseType dbType)
public String getType()
public ModelEntity getMainEntity()
public ModelField getVirtualColumnModelField(DatabaseType dbType)
public boolean supportsFunctionBasedIndices(DatabaseType databaseType)
Copyright © 2018 Atlassian. All rights reserved.