|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ofbiz.entity.model.ModelChild
org.ofbiz.entity.model.ModelIndex
public class ModelIndex
Generic Entity - Relation model class
Field Summary | |
---|---|
protected java.util.List<java.lang.String> |
fieldNames
list of the field names included in this index |
protected java.lang.String |
name
the index name, used for the database index name |
protected boolean |
unique
specifies whether or not this index should include the unique constraint |
Fields inherited from class org.ofbiz.entity.model.ModelChild |
---|
description, parentModelEntity |
Constructor Summary | |
---|---|
ModelIndex()
Default Constructor |
|
ModelIndex(ModelEntity mainEntity,
org.w3c.dom.Element indexElement)
XML Constructor |
|
ModelIndex(ModelEntity mainEntity,
java.lang.String name,
boolean unique)
Direct Create Constructor |
Method Summary | |
---|---|
void |
addIndexField(java.lang.String fieldName)
|
java.lang.String |
getIndexField(int index)
|
java.util.Iterator<java.lang.String> |
getIndexFieldsIterator()
|
int |
getIndexFieldsSize()
|
ModelEntity |
getMainEntity()
Deprecated. the main entity of this relation |
java.lang.String |
getName()
the index name, used for the database index name |
boolean |
getUnique()
specifies whether or not this index should include the unique constraint |
java.lang.String |
removeIndexField(int index)
|
void |
setMainEntity(ModelEntity mainEntity)
Deprecated. |
void |
setName(java.lang.String name)
|
void |
setUnique(boolean unique)
|
org.w3c.dom.Element |
toXmlElement(org.w3c.dom.Document document)
|
Methods inherited from class org.ofbiz.entity.model.ModelChild |
---|
getDescription, getModelEntity, setDescription, setModelEntity |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String name
protected boolean unique
protected java.util.List<java.lang.String> fieldNames
Constructor Detail |
---|
public ModelIndex()
public ModelIndex(ModelEntity mainEntity, java.lang.String name, boolean unique)
public ModelIndex(ModelEntity mainEntity, org.w3c.dom.Element indexElement)
Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
public boolean getUnique()
public void setUnique(boolean unique)
public ModelEntity getMainEntity()
public void setMainEntity(ModelEntity mainEntity)
public java.util.Iterator<java.lang.String> getIndexFieldsIterator()
public int getIndexFieldsSize()
public java.lang.String getIndexField(int index)
public void addIndexField(java.lang.String fieldName)
public java.lang.String removeIndexField(int index)
public org.w3c.dom.Element toXmlElement(org.w3c.dom.Document document)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |