Package net.java.ao.schema.ddl
Class DDLIndex
java.lang.Object
net.java.ao.schema.ddl.DDLIndex
Database-agnostic reprensentation of a general field index
statement (not related to full-text indexing). To save on
object creation, as well as to simplify schema parsing, table
and field names are stored rather than full DDL
representations. This class also defines the convention
imposed to generate the names of field indexes. It is
important that all DDL renderers (i.e. database providers)
observe this convention, else migrations will do strange things.
- Author:
- Daniel Spiewak
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic DDLIndex.DDLIndexBuilder
builder()
boolean
containsFieldWithName
(String fieldName) boolean
containsFieldWithNameIgnoreCase
(String fieldName) boolean
Check if this is equal to other index.getTable()
int
hashCode()
boolean
isUnique()
toString()
-
Method Details
-
builder
-
getTable
-
getFields
-
getIndexName
-
isUnique
public boolean isUnique() -
containsFieldWithName
-
containsFieldWithNameIgnoreCase
-
toString
-
equals
Check if this is equal to other index.Two indexes are considered equivalent if and only if they have exactly the same column names in the same order and the same table name specified. Please note that index name does not matter when checking for index equality.
-
hashCode
public int hashCode()
-