Interface IndexMetadata
- All Superinterfaces:
Metadata
-
Method Summary
Modifier and TypeMethodDescriptionAccessor for all column(s) defined on the index.Accessor for all member(s) defined on the index.getName()Accessor for the index name.intAccessor for the number of columns defined for this index.intAccessor for the number of fields/properties defined for this index.getTable()Accessor for the name of the table.booleanAccessor for whether unique.Add a new column for this index.newFieldMetadata(String name) Add a new field for this index.newPropertyMetadata(String name) Add a new property for this index.Method to set the name of the index.Method to set the table name.setUnique(boolean unique) Method to set whether it is unique.Methods inherited from interface Metadata
getExtensions, getNumberOfExtensions, getParent, newExtensionMetadata
-
Method Details
-
setName
Method to set the name of the index.- Parameters:
name- Name of the index- Returns:
- This metadata object
-
getName
-
setTable
Method to set the table name.- Parameters:
table- Table name- Returns:
- This metadata object
-
getTable
-
setUnique
Method to set whether it is unique.- Parameters:
unique- Unique?- Returns:
- This metadata object
-
getUnique
boolean getUnique()Accessor for whether unique.- Returns:
- Unique?
-
getColumns
ColumnMetadata[] getColumns()Accessor for all column(s) defined on the index.- Returns:
- The column(s)
-
newColumn
-
getNumberOfColumns
int getNumberOfColumns()Accessor for the number of columns defined for this index.- Returns:
- The number of columns
-
getMembers
MemberMetadata[] getMembers()Accessor for all member(s) defined on the index.- Returns:
- The fields/properties
-
getNumberOfMembers
int getNumberOfMembers()Accessor for the number of fields/properties defined for this index.- Returns:
- The number of members
-
newFieldMetadata
Add a new field for this index.- Parameters:
name- Name of the field- Returns:
- The FieldMetadata
-
newPropertyMetadata
Add a new property for this index.- Parameters:
name- Name of the property- Returns:
- The PropertyMetadata
-