| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| private NullsDistinct | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static IndexType | Returns: the index typeif the index is persistent persistent)Create a non-unique index. |
| public static IndexType | Returns: the index typeif the index is persistent persistent, boolean if a hash index should be used hash, boolean if a spatial index should be used spatial)Create a non-unique index. |
| public static IndexType | Returns: the index typeif the index is persistent persistent, boolean if a hash index should be used hash)Create a primary key index. |
| public static IndexType | Returns: the index typeif the index is persistent persistent)Create a scan pseudo-index. |
| public static IndexType | Returns: the index typeif the index is persistent persistent, boolean if a hash index should be used hash, int count of unique columns (not stored) uniqueColumnCount, NullsDistinct are nulls distinct nullsDistinct)Create a unique index. |
| public boolean | Returns: if the index belongs to a constraintIf the index is created because of a constraint. |
| public NullsDistinct | Returns: are nulls distinct, ornull for non-unique indexesReturns nulls distinct treatment for unique indexes,
|
| public NullsDistinct | Returns: are nulls distinct, ornull for non-unique and primary key indexesReturns nulls distinct treatment for unique indexes (excluding primary key indexes). |
| public String | Returns: the SQL snippettrue to add nulls distinct clauseGet the SQL snippet to create such an index. |
| public boolean | |
| public boolean | |
| public boolean | Returns: true if it references a primary key constraintDoes this index belong to a primary key constraint? |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | setBelongsToConstraint(boolean
if the index belongs to a constraint belongsToConstraint)Sets if this index belongs to a constraint. |
| belongsToConstraint | back to summary |
|---|---|
| private boolean belongsToConstraint | |
| hash | back to summary |
|---|---|
| private boolean hash | |
| nullsDistinct | back to summary |
|---|---|
| private NullsDistinct nullsDistinct | |
| persistent | back to summary |
|---|---|
| private boolean persistent | |
| primaryKey | back to summary |
|---|---|
| private boolean primaryKey | |
| scan | back to summary |
|---|---|
| private boolean scan | |
| spatial | back to summary |
|---|---|
| private boolean spatial | |
| IndexType | back to summary |
|---|---|
| public IndexType() | |
| createNonUnique | back to summary |
|---|---|
| public static IndexType createNonUnique(boolean persistent) Create a non-unique index.
| |
| createNonUnique | back to summary |
|---|---|
| public static IndexType createNonUnique(boolean persistent, boolean hash, boolean spatial) Create a non-unique index.
| |
| createPrimaryKey | back to summary |
|---|---|
| public static IndexType createPrimaryKey(boolean persistent, boolean hash) Create a primary key index.
| |
| createScan | back to summary |
|---|---|
| public static IndexType createScan(boolean persistent) Create a scan pseudo-index.
| |
| createUnique | back to summary |
|---|---|
| public static IndexType createUnique(boolean persistent, boolean hash, int uniqueColumnCount, NullsDistinct nullsDistinct) Create a unique index.
| |
| getBelongsToConstraint | back to summary |
|---|---|
| public boolean getBelongsToConstraint() If the index is created because of a constraint. Such indexes are to be dropped once the constraint is dropped.
| |
| getEffectiveNullsDistinct | back to summary |
|---|---|
| public NullsDistinct getEffectiveNullsDistinct() Returns nulls distinct treatment for unique indexes,
| |
| getNullsDistinct | back to summary |
|---|---|
| public NullsDistinct getNullsDistinct() Returns nulls distinct treatment for unique indexes (excluding primary key indexes).
For primary key and other types of indexes returns
| |
| getSQL | back to summary |
|---|---|
| public String getSQL(boolean addNullsDistinct) Get the SQL snippet to create such an index.
| |
| isHash | back to summary |
|---|---|
| public boolean isHash() Is this a hash index?
| |
| isPersistent | back to summary |
|---|---|
| public boolean isPersistent() Is this index persistent?
| |
| isPrimaryKey | back to summary |
|---|---|
| public boolean isPrimaryKey() Does this index belong to a primary key constraint?
| |
| isScan | back to summary |
|---|---|
| public boolean isScan() Is this a table scan pseudo-index?
| |
| isSpatial | back to summary |
|---|---|
| public boolean isSpatial() Is this a spatial index?
| |
| isUnique | back to summary |
|---|---|
| public boolean isUnique() Is this a unique index?
| |
| setBelongsToConstraint | back to summary |
|---|---|
| public void setBelongsToConstraint(boolean belongsToConstraint) Sets if this index belongs to a constraint.
| |