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:
Serializable
An object that models the
<index>
element.- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static enum
-
Method Summary
Modifier and TypeMethodDescriptionstatic ModelIndex
create
(ModelEntity modelEntity, String description, String name, List<ModelIndex.Field> fields, boolean unique) Returns a newModelIndex
instance, initialized with the specified values.static ModelIndex
create
(ModelEntity modelEntity, Element indexElement) Returns a newModelIndex
instance, initialized with the specified values.Returns the fields included in this index.getName()
Returns the index name.boolean
Returnstrue
if this index returns unique values.toXmlElement
(Document document) Methods inherited from class org.apache.ofbiz.entity.model.ModelChild
getDescription, getModelEntity
-
Method Details
-
create
public static ModelIndex create(ModelEntity modelEntity, String description, String name, 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
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
Returns the index name. -
getUnique
public boolean getUnique()Returnstrue
if this index returns unique values. -
getFields
Returns the fields included in this index. -
toXmlElement
-