|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.sixdml.xindice.xiSixdmlIndex
xiSixdmlIndex.java A database index.
| Field Summary | |
private HashMap |
indexFields
The fields of this index. |
private String |
name
The name of the index. |
| Fields inherited from interface org.sixdml.SixdmlConstants |
SIXDML_NS, SIXDML_VERSION |
| Constructor Summary | |
private |
xiSixdmlIndex()
Default constructor private because one must always create an xiSixdmlIndex with an indexFields table. |
(package private) |
xiSixdmlIndex(String name,
HashMap indexFields)
Creates an index with a name and an indexFields table. |
| Method Summary | |
(package private) static xiSixdmlIndex |
createIndex(Element xmlNode)
Creates a xiSixdmlIndex object from an XML serialization of the class. |
boolean |
equals(Object obj)
Compares two objects of this class. |
HashMap |
getIndexFields()
Returns a hash table containing various characteristics of the index depending on its type. |
String |
getName()
Get the name of the index. |
SixdmlIndexType |
getType()
Returns the type of the index. |
Node |
getXMLAsNode()
Creates an XML representation of this object that conforms to the following DTD as a DOM node. |
String |
getXMLAsString()
Creates an XML representation of this object that conforms to the following DTD as a string. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private String name
private HashMap indexFields
getIndexFields()| Constructor Detail |
private xiSixdmlIndex()
xiSixdmlIndex(String name,
HashMap indexFields)
name - the name of the index.indexFields - the index fields for the class.| Method Detail |
static xiSixdmlIndex createIndex(Element xmlNode)
<!ELEMENT index(name, type, key, pagesize?, maxkeysize?)> <!ELEMENT name (#PCDATA)> <!ELEMENT type (#PCDATA)> <!ELEMENT key (#PCDATA)> <!ELEMENT pagesize (#PCDATA)> <!ELEMENT maxkeysize (#PCDATA)>
xmlNode - the XML representation of the object to createpublic String getName()
getName in interface SixdmlIndexpublic SixdmlIndexType getType()
getType in interface SixdmlIndexpublic HashMap getIndexFields()
getIndexFields in interface SixdmlIndexpublic Node getXMLAsNode()
<!ELEMENT index(key, pagesize?, maxkeysize?)> <!ATTLIST index name CDATA #REQUIRED > <!ELEMENT key (#PCDATA)> <!ELEMENT pagesize (#PCDATA)> <!ELEMENT maxkeysize (#PCDATA)>
public String getXMLAsString()
<!ELEMENT index(name, type, key, pagesize?, maxkeysize?)> <!ELEMENT name (#PCDATA)> <!ELEMENT type (#PCDATA)> <!ELEMENT key (#PCDATA)> <!ELEMENT pagesize (#PCDATA)> <!ELEMENT maxkeysize (#PCDATA)>
public boolean equals(Object obj)
equals in class Objectobj - the object to compare.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||