Package org.apache.ofbiz.entity.model
Class ModelKeyMap
- java.lang.Object
-
- org.apache.ofbiz.entity.model.ModelKeyMap
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ModelKeyMap>
@ThreadSafe public final class ModelKeyMap extends java.lang.Object implements java.lang.Comparable<ModelKeyMap>, java.io.Serializable
An object that models the<key-map>
element.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ModelKeyMap(java.lang.String fieldName, java.lang.String relFieldName)
Data Constructor, if relFieldName is null defaults to fieldNameModelKeyMap(org.w3c.dom.Element keyMapElement)
XML Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(ModelKeyMap other)
boolean
equals(java.lang.Object other)
java.lang.String
getFieldName()
Returns the field name.java.lang.String
getRelFieldName()
Returns the related entity field name.int
hashCode()
static java.util.List<ModelKeyMap>
makeKeyMapList(java.lang.String fieldName1)
static java.util.List<ModelKeyMap>
makeKeyMapList(java.lang.String fieldName1, java.lang.String relFieldName1)
static java.util.List<ModelKeyMap>
makeKeyMapList(java.lang.String fieldName1, java.lang.String relFieldName1, java.lang.String fieldName2, java.lang.String relFieldName2)
static java.util.List<ModelKeyMap>
makeKeyMapList(java.lang.String fieldName1, java.lang.String relFieldName1, java.lang.String fieldName2, java.lang.String relFieldName2, java.lang.String fieldName3, java.lang.String relFieldName3)
java.lang.String
toString()
org.w3c.dom.Element
toXmlElement(org.w3c.dom.Document document)
-
-
-
Method Detail
-
getFieldName
public java.lang.String getFieldName()
Returns the field name.
-
getRelFieldName
public java.lang.String getRelFieldName()
Returns the related entity field name.
-
makeKeyMapList
public static java.util.List<ModelKeyMap> makeKeyMapList(java.lang.String fieldName1)
-
makeKeyMapList
public static java.util.List<ModelKeyMap> makeKeyMapList(java.lang.String fieldName1, java.lang.String relFieldName1)
-
makeKeyMapList
public static java.util.List<ModelKeyMap> makeKeyMapList(java.lang.String fieldName1, java.lang.String relFieldName1, java.lang.String fieldName2, java.lang.String relFieldName2)
-
makeKeyMapList
public static java.util.List<ModelKeyMap> makeKeyMapList(java.lang.String fieldName1, java.lang.String relFieldName1, java.lang.String fieldName2, java.lang.String relFieldName2, java.lang.String fieldName3, java.lang.String relFieldName3)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
toXmlElement
public org.w3c.dom.Element toXmlElement(org.w3c.dom.Document document)
-
compareTo
public int compareTo(ModelKeyMap other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<ModelKeyMap>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-