public interface Index extends ModelElement
| Modifier and Type | Method and Description |
|---|---|
String |
createDatabaseIndexName(Entity entity)
Creates the database index name for given entity.
|
List<IndexAttribute> |
getAttributes()
Gets the index attributes.
|
String |
getComment()
Gets the comment.
|
Entity |
getEntity()
Gets the entity this index belongs to.
|
String |
getFilterCondition()
Gets the optional filter condition.
|
boolean |
isUnique()
Returns whether the index is unique.
|
String |
sqlCreateIndex(Backend backend,
Entity entity)
Creates the index creation sql code.
|
void |
validate()
Validates the index.
|
getName, getParent, getSourceInfoEntity getEntity()
String createDatabaseIndexName(Entity entity)
entity - the entityString getComment()
boolean isUnique()
String getFilterCondition()
List<IndexAttribute> getAttributes()
void validate()
throws ModelException
ModelException - if validation failedTentackle - a domain driven enterprise framework