Package org.apache.ofbiz.entity.model
Class ModelIndex
- java.lang.Object
-
- org.apache.ofbiz.entity.model.ModelChild
-
- org.apache.ofbiz.entity.model.ModelIndex
-
- All Implemented Interfaces:
java.io.Serializable
@ThreadSafe public final class ModelIndex extends ModelChild
An object that models the<index>
element.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ModelIndex.Field
static class
ModelIndex.Function
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ModelIndex
create(ModelEntity modelEntity, java.lang.String description, java.lang.String name, java.util.List<ModelIndex.Field> fields, boolean unique)
Returns a newModelIndex
instance, initialized with the specified values.static ModelIndex
create(ModelEntity modelEntity, org.w3c.dom.Element indexElement)
Returns a newModelIndex
instance, initialized with the specified values.java.util.List<ModelIndex.Field>
getFields()
Returns the fields included in this index.java.lang.String
getName()
Returns the index name.boolean
getUnique()
Returnstrue
if this index returns unique values.org.w3c.dom.Element
toXmlElement(org.w3c.dom.Document document)
-
Methods inherited from class org.apache.ofbiz.entity.model.ModelChild
getDescription, getModelEntity
-
-
-
-
Method Detail
-
create
public static ModelIndex create(ModelEntity modelEntity, java.lang.String description, java.lang.String name, java.util.List<ModelIndex.Field> fields, boolean unique)
Returns a newModelIndex
instance, initialized with the specified values.- Parameters:
modelEntity
- TheModelEntity
this index is a member of.description
- The index description.name
- The index name.fields
- The fields that are included in this index.unique
-true
if this index returns unique values.
-
create
public static ModelIndex create(ModelEntity modelEntity, org.w3c.dom.Element indexElement)
Returns a newModelIndex
instance, initialized with the specified values.- Parameters:
modelEntity
- TheModelEntity
this index is a member of.indexElement
- The<index>
element containing the values for this index.
-
getName
public java.lang.String getName()
Returns the index name.
-
getUnique
public boolean getUnique()
Returnstrue
if this index returns unique values.
-
getFields
public java.util.List<ModelIndex.Field> getFields()
Returns the fields included in this index.
-
toXmlElement
public org.w3c.dom.Element toXmlElement(org.w3c.dom.Document document)
-
-