Package org.apache.ofbiz.entity
Class GenericPK
java.lang.Object
org.apache.ofbiz.entity.GenericEntity
org.apache.ofbiz.entity.GenericPK
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<GenericEntity>
,Map<String,
,Object> LocalizedMap<Object>
Generic Entity Primary Key Object
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.ofbiz.entity.GenericEntity
GenericEntity.NULL, GenericEntity.NullField, GenericEntity.NullGenericEntity
-
Field Summary
Fields inherited from class org.apache.ofbiz.entity.GenericEntity
NULL_ENTITY, NULL_FIELD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Clones this GenericPK, this is a shallow clone and uses the default shallow HashMap clonestatic GenericPK
create
(Delegator delegator, ModelEntity modelEntity, Object singlePkValue) Creates new GenericPK from existing Mapstatic GenericPK
Creates new GenericPK from existing Mapstatic GenericPK
Creates new GenericPK from existing GenericPKstatic GenericPK
create
(ModelEntity modelEntity) Creates new GenericPKboolean
Determines the equality of two GenericEntity objects, overrides the default equalsint
hashCode()
Creates a hashCode for the entity, using the default String hashCode and Map hashCode, overrides the default hashCodeMethods inherited from class org.apache.ofbiz.entity.GenericEntity
addObserver, addToXmlDocument, addToXmlElement, assertIsMutable, checkFks, clear, clearChanged, compareTo, compareToFields, containsKey, containsPrimaryKey, containsPrimaryKey, containsValue, createGenericEntity, createGenericEntity, createGenericEntity, dangerousGetNoCheckButFast, dangerousSetNoCheckButFast, deleteObserver, deleteObservers, entrySet, get, get, get, get, getAllFields, getAllKeys, getBigDecimal, getBoolean, getBytes, getDate, getDelegator, getDouble, getDuration, getEntityName, getFields, getFloat, getInteger, getIsFromEntitySync, getLong, getModelEntity, getOriginalDbValue, getPkShortValueString, getPrimaryKey, getString, getTime, getTimestamp, hasChanged, init, init, init, init, isEmpty, isModified, isMutable, isPrimaryKey, isPrimaryKey, keySet, lockEnabled, makeXmlDocument, makeXmlElement, makeXmlElement, matches, matchesFields, notifyObservers, notifyObservers, originalDbValuesAvailable, put, putAll, refreshFromValue, remove, removedFromDatasource, reset, set, set, setAllFields, setBytes, setChanged, setDelegator, setFields, setImmutable, setIsFromEntitySync, setNextSeqId, setNonPKFields, setNonPKFields, setPKFields, setPKFields, setString, size, synchronizedWithDatasource, toString, toStringInsecure, values, writeXmlText
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
GenericPK
protected GenericPK()
-
-
Method Details
-
create
Creates new GenericPK -
create
public static GenericPK create(Delegator delegator, ModelEntity modelEntity, Map<String, ? extends Object> fields) Creates new GenericPK from existing Map -
create
Creates new GenericPK from existing Map -
create
Creates new GenericPK from existing GenericPK -
hashCode
public int hashCode()Description copied from class:GenericEntity
Creates a hashCode for the entity, using the default String hashCode and Map hashCode, overrides the default hashCode -
equals
Description copied from class:GenericEntity
Determines the equality of two GenericEntity objects, overrides the default equals -
clone
Clones this GenericPK, this is a shallow clone and uses the default shallow HashMap clone- Overrides:
clone
in classGenericEntity
- Returns:
- Object that is a clone of this GenericPK
-