public class MockGenericValue
extends org.ofbiz.core.entity.GenericValue
Modifier and Type | Class and Description |
---|---|
class |
MockGenericValue.MockModelEntity |
Modifier and Type | Field and Description |
---|---|
protected boolean |
created |
protected boolean |
refreshed |
protected boolean |
removed |
protected boolean |
stored |
Constructor and Description |
---|
MockGenericValue(org.ofbiz.core.entity.GenericValue value) |
MockGenericValue(String entityName) |
MockGenericValue(String entityName,
Long id) |
MockGenericValue(String entityName,
Map<String,?> fields) |
MockGenericValue(String entityName,
org.ofbiz.core.entity.model.ModelEntity modelEntity,
Map<String,Object> fields) |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
org.ofbiz.core.entity.GenericValue |
create() |
Object |
dangerousGetNoCheckButFast(org.ofbiz.core.entity.model.ModelField modelField) |
Set<Map.Entry<String,Object>> |
entrySet() |
boolean |
equals(Object o) |
Object |
get(String name) |
Map<String,Object> |
getAllFields() |
Collection<String> |
getAllKeys() |
org.ofbiz.core.entity.GenericDelegator |
getDelegator() |
Map<String,Object> |
getFields(Collection<String> collection) |
org.ofbiz.core.entity.model.ModelEntity |
getModelEntity() |
org.ofbiz.core.entity.GenericPK |
getPrimaryKey() |
List<org.ofbiz.core.entity.GenericValue> |
getRelated(String s) |
List<org.ofbiz.core.entity.GenericValue> |
getRelated(String s,
Map<String,?> map,
List<String> order) |
List<org.ofbiz.core.entity.GenericValue> |
getRelatedByAnd(String relationName,
Map<String,?> fields) |
org.ofbiz.core.entity.GenericValue |
getRelatedOne(String s) |
List<org.ofbiz.core.entity.GenericValue> |
getRelatedOrderBy(String relationName,
List<String> orderBy) |
int |
hashCode() |
boolean |
isCreated() |
boolean |
isEmpty() |
boolean |
isRefreshed() |
boolean |
isRemoved() |
boolean |
isStored() |
Set<String> |
keySet() |
boolean |
matchesFields(Map<String,?> keyValuePairs) |
void |
refresh() |
void |
remove() |
void |
removeRelated(String relationName) |
void |
set(String name,
Object value) |
void |
setDelegator(org.ofbiz.core.entity.GenericDelegator internalDelegator) |
void |
setFields(Map<? extends String,?> keyValuePairs) |
void |
setOfBizDelegator(OfBizDelegator ofBizDelegator) |
void |
setRelated(String s,
List<org.ofbiz.core.entity.GenericValue> relatedGVs) |
void |
setString(String s,
String s1) |
int |
size() |
void |
store() |
String |
toString() |
Collection<Object> |
values() |
copyOriginalDbValues, getOriginalDbValue, getRelatedByAndCache, getRelatedByAndEmbeddedCache, getRelatedCache, getRelatedCache, getRelatedDummyPK, getRelatedDummyPK, getRelatedEmbeddedCache, getRelatedEmbeddedCache, getRelatedMulti, getRelatedMulti, getRelatedOneCache, getRelatedOneEmbeddedCache, getRelatedOrderByCache, getRelatedOrderByEmbeddedCache, originalDbValuesAvailable
addToXmlDocument, clear, compareTo, containsKey, containsPrimaryKey, containsValue, dangerousSetNoCheckButFast, get, getBoolean, getBytes, getDate, getDouble, getEntityName, getFloat, getInteger, getLong, getString, getTime, getTimestamp, isModified, isPrimaryKey, lockEnabled, makeXmlDocument, makeXmlElement, makeXmlElement, put, putAll, remove, set, setBytes, setNonPKFields, setNonPKFields, setPKFields, setPKFields, writeXmlText
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
protected boolean created
protected boolean stored
protected boolean refreshed
protected boolean removed
public MockGenericValue(org.ofbiz.core.entity.GenericValue value)
public MockGenericValue(String entityName)
public void set(String name, Object value)
set
in class org.ofbiz.core.entity.GenericEntity
public Collection<String> getAllKeys()
getAllKeys
in class org.ofbiz.core.entity.GenericEntity
public Map<String,Object> getFields(Collection<String> collection)
getFields
in class org.ofbiz.core.entity.GenericEntity
public void setFields(Map<? extends String,?> keyValuePairs)
setFields
in class org.ofbiz.core.entity.GenericEntity
public Map<String,Object> getAllFields()
getAllFields
in class org.ofbiz.core.entity.GenericEntity
public List<org.ofbiz.core.entity.GenericValue> getRelated(String s) throws org.ofbiz.core.entity.GenericEntityException
getRelated
in class org.ofbiz.core.entity.GenericValue
org.ofbiz.core.entity.GenericEntityException
public org.ofbiz.core.entity.GenericValue getRelatedOne(String s) throws org.ofbiz.core.entity.GenericEntityException
getRelatedOne
in class org.ofbiz.core.entity.GenericValue
org.ofbiz.core.entity.GenericEntityException
public List<org.ofbiz.core.entity.GenericValue> getRelated(String s, Map<String,?> map, List<String> order) throws org.ofbiz.core.entity.GenericEntityException
getRelated
in class org.ofbiz.core.entity.GenericValue
org.ofbiz.core.entity.GenericEntityException
public org.ofbiz.core.entity.GenericValue create() throws org.ofbiz.core.entity.GenericEntityException
create
in class org.ofbiz.core.entity.GenericValue
org.ofbiz.core.entity.GenericEntityException
public boolean isCreated()
public boolean isStored()
public boolean isRemoved()
public boolean isRefreshed()
public org.ofbiz.core.entity.model.ModelEntity getModelEntity()
getModelEntity
in class org.ofbiz.core.entity.GenericEntity
public boolean matchesFields(Map<String,?> keyValuePairs)
matchesFields
in class org.ofbiz.core.entity.GenericEntity
public org.ofbiz.core.entity.GenericPK getPrimaryKey()
getPrimaryKey
in class org.ofbiz.core.entity.GenericEntity
public void setDelegator(org.ofbiz.core.entity.GenericDelegator internalDelegator)
setDelegator
in class org.ofbiz.core.entity.GenericEntity
public org.ofbiz.core.entity.GenericDelegator getDelegator()
getDelegator
in class org.ofbiz.core.entity.GenericEntity
public void store() throws org.ofbiz.core.entity.GenericEntityException
store
in class org.ofbiz.core.entity.GenericValue
org.ofbiz.core.entity.GenericEntityException
public void remove() throws org.ofbiz.core.entity.GenericEntityException
remove
in class org.ofbiz.core.entity.GenericValue
org.ofbiz.core.entity.GenericEntityException
public void removeRelated(String relationName) throws org.ofbiz.core.entity.GenericEntityException
removeRelated
in class org.ofbiz.core.entity.GenericValue
org.ofbiz.core.entity.GenericEntityException
public void refresh() throws org.ofbiz.core.entity.GenericEntityException
refresh
in class org.ofbiz.core.entity.GenericValue
org.ofbiz.core.entity.GenericEntityException
public String toString()
toString
in class org.ofbiz.core.entity.GenericEntity
public Object dangerousGetNoCheckButFast(org.ofbiz.core.entity.model.ModelField modelField)
dangerousGetNoCheckButFast
in class org.ofbiz.core.entity.GenericEntity
public boolean equals(Object o)
public int hashCode()
public void setString(String s, String s1)
setString
in class org.ofbiz.core.entity.GenericEntity
public List<org.ofbiz.core.entity.GenericValue> getRelatedOrderBy(String relationName, List<String> orderBy) throws org.ofbiz.core.entity.GenericEntityException
getRelatedOrderBy
in class org.ofbiz.core.entity.GenericValue
org.ofbiz.core.entity.GenericEntityException
public List<org.ofbiz.core.entity.GenericValue> getRelatedByAnd(String relationName, Map<String,?> fields) throws org.ofbiz.core.entity.GenericEntityException
getRelatedByAnd
in class org.ofbiz.core.entity.GenericValue
org.ofbiz.core.entity.GenericEntityException
public int size()
public boolean isEmpty()
public Collection<Object> values()
public Object clone()
clone
in class org.ofbiz.core.entity.GenericValue
public void setOfBizDelegator(OfBizDelegator ofBizDelegator)
Copyright © 2002-2023 Atlassian. All Rights Reserved.