|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.index.IndexType
public class IndexType
Represents information about the properties of an index
Constructor Summary | |
---|---|
IndexType()
|
Method Summary | |
---|---|
static IndexType |
createNonUnique(boolean persistent)
Create a non-unique index. |
static IndexType |
createNonUnique(boolean persistent,
boolean hash)
Create a non-unique index. |
static IndexType |
createPrimaryKey(boolean persistent,
boolean hash)
Create a primary key index. |
static IndexType |
createScan(boolean persistent)
Create a scan pseudo-index. |
static IndexType |
createUnique(boolean persistent,
boolean hash)
Create a unique index. |
boolean |
getBelongsToConstraint()
If the index is created because of a constraint. |
java.lang.String |
getSQL()
Get the SQL snippet to create such an index. |
boolean |
isHash()
Is this a hash index? |
boolean |
isPersistent()
Is this index persistent? |
boolean |
isPrimaryKey()
Does this index belong to a primary key constraint? |
boolean |
isScan()
Is this a table scan pseudo-index? |
boolean |
isUnique()
Is this a unique index? |
void |
setBelongsToConstraint(boolean belongsToConstraint)
Sets if this index belongs to a constraint. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndexType()
Method Detail |
---|
public static IndexType createPrimaryKey(boolean persistent, boolean hash)
persistent
- if the index is persistenthash
- if a hash index should be used
public static IndexType createUnique(boolean persistent, boolean hash)
persistent
- if the index is persistenthash
- if a hash index should be used
public static IndexType createNonUnique(boolean persistent)
persistent
- if the index is persistent
public static IndexType createNonUnique(boolean persistent, boolean hash)
persistent
- if the index is persistenthash
- if a hash index should be used
public static IndexType createScan(boolean persistent)
persistent
- if the index is persistent
public void setBelongsToConstraint(boolean belongsToConstraint)
belongsToConstraint
- if the index belongs to a constraintpublic boolean getBelongsToConstraint()
public boolean isHash()
public boolean isPersistent()
public boolean isPrimaryKey()
public boolean isUnique()
public java.lang.String getSQL()
public boolean isScan()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |