org.sixdml.dbmanagement
Class SixdmlIndexType
java.lang.Object
|
+--org.sixdml.dbmanagement.SixdmlIndexType
- public final class SixdmlIndexType
- extends Object
Class is used by SixdmlIndex to represent types of indexes.
|
Constructor Summary |
private |
SixdmlIndexType()
Constructor private, so cannot be instantiated by other objects. |
private |
SixdmlIndexType(String type)
Constructor private, so cannot be instantiated by other objects. |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
VALUE_INDEX
public static SixdmlIndexType VALUE_INDEX
- Represents a value index.
TEXT_INDEX
public static SixdmlIndexType TEXT_INDEX
- Represents a text index.
STRUCTURE_INDEX
public static SixdmlIndexType STRUCTURE_INDEX
- Represents a structure index.
type
private String type
- This is the name of the index type.
SixdmlIndexType
private SixdmlIndexType()
- Constructor private, so cannot be instantiated by other objects.
SixdmlIndexType
private SixdmlIndexType(String type)
- Constructor private, so cannot be instantiated by other objects.
- Parameters:
type - the type of index.
toString
public String toString()
- Returns the type of the index as a string.
- Overrides:
toString in class Object
- Returns:
- the type of the index as a string.
createIndexType
public static SixdmlIndexType createIndexType(String indexType)
throws UnsupportedIndexTypeException
- Factory method creates instances of this class.
- Parameters:
indexType - the type of index to create.- Returns:
- a SixdmlIndexType instance
- Throws:
UnsupportedIndexTypeException - if the index type is unknown.