|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
org.ofbiz.core.entity.GenericEntity
org.ofbiz.core.entity.GenericValue
com.atlassian.core.ofbiz.test.mock.MockGenericValue
public class MockGenericValue
This was taken from atlassian-ofbiz and placed here temporarily.
| Nested Class Summary | |
|---|---|
class |
MockGenericValue.MockModelEntity
Deprecated. |
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Field Summary |
|---|
| Fields inherited from class org.ofbiz.core.entity.GenericValue |
|---|
originalDbValues, relatedCache, relatedOneCache |
| Fields inherited from class org.ofbiz.core.entity.GenericEntity |
|---|
delegatorName, entityName, internalDelegator, modelEntity, modified |
| Constructor Summary | |
|---|---|
MockGenericValue(org.ofbiz.core.entity.GenericValue value)
Deprecated. |
|
MockGenericValue(String entityName)
Deprecated. |
|
MockGenericValue(String entityName,
Map fields)
Deprecated. |
|
| Method Summary | |
|---|---|
Object |
clone()
Deprecated. |
org.ofbiz.core.entity.GenericValue |
create()
Deprecated. |
Object |
dangerousGetNoCheckButFast(org.ofbiz.core.entity.model.ModelField modelField)
Deprecated. |
Set |
entrySet()
Deprecated. |
boolean |
equals(Object o)
Deprecated. |
Object |
get(String name)
Deprecated. |
Map |
getAllFields()
Deprecated. |
Collection |
getAllKeys()
Deprecated. |
org.ofbiz.core.entity.GenericDelegator |
getDelegator()
Deprecated. |
Map |
getFields(Collection collection)
Deprecated. |
org.ofbiz.core.entity.model.ModelEntity |
getModelEntity()
Deprecated. |
org.ofbiz.core.entity.GenericPK |
getPrimaryKey()
Deprecated. |
List |
getRelated(String s)
Deprecated. |
List |
getRelated(String s,
Map map,
List order)
Deprecated. |
List |
getRelatedByAnd(String relationName,
Map fields)
Deprecated. |
List |
getRelatedOrderBy(String relationName,
List orderBy)
Deprecated. |
int |
hashCode()
Deprecated. |
boolean |
isCreated()
Deprecated. |
boolean |
isEmpty()
Deprecated. |
boolean |
isRefreshed()
Deprecated. |
boolean |
isRemoved()
Deprecated. |
boolean |
isStored()
Deprecated. |
Set |
keySet()
Deprecated. |
boolean |
matchesFields(Map keyValuePairs)
Deprecated. |
void |
refresh()
Deprecated. |
void |
remove()
Deprecated. |
void |
removeRelated(String relationName)
Deprecated. |
void |
set(String name,
Object value)
Deprecated. |
void |
setDelegator(org.ofbiz.core.entity.GenericDelegator internalDelegator)
Deprecated. |
void |
setRelated(String s,
List relatedGVs)
Deprecated. |
void |
setString(String s,
String s1)
Deprecated. |
int |
size()
Deprecated. |
void |
store()
Deprecated. |
String |
toString()
Deprecated. |
Collection |
values()
Deprecated. |
| Methods inherited from class org.ofbiz.core.entity.GenericValue |
|---|
copyOriginalDbValues, getOriginalDbValue, getRelatedByAndCache, getRelatedByAndEmbeddedCache, getRelatedCache, getRelatedCache, getRelatedDummyPK, getRelatedDummyPK, getRelatedEmbeddedCache, getRelatedEmbeddedCache, getRelatedMulti, getRelatedMulti, getRelatedOne, getRelatedOneCache, getRelatedOneEmbeddedCache, getRelatedOrderByCache, getRelatedOrderByEmbeddedCache, originalDbValuesAvailable |
| Methods inherited from class org.ofbiz.core.entity.GenericEntity |
|---|
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, setFields, setNonPKFields, setNonPKFields, setPKFields, setPKFields, writeXmlText |
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MockGenericValue(org.ofbiz.core.entity.GenericValue value)
public MockGenericValue(String entityName)
public MockGenericValue(String entityName,
Map fields)
| Method Detail |
|---|
public Object get(String name)
get in class org.ofbiz.core.entity.GenericEntity
public void set(String name,
Object value)
set in class org.ofbiz.core.entity.GenericEntitypublic Collection getAllKeys()
getAllKeys in class org.ofbiz.core.entity.GenericEntitypublic Map getFields(Collection collection)
getFields in class org.ofbiz.core.entity.GenericEntitypublic Map getAllFields()
getAllFields in class org.ofbiz.core.entity.GenericEntity
public List getRelated(String s)
throws org.ofbiz.core.entity.GenericEntityException
getRelated in class org.ofbiz.core.entity.GenericValueorg.ofbiz.core.entity.GenericEntityException
public List getRelated(String s,
Map map,
List order)
throws org.ofbiz.core.entity.GenericEntityException
getRelated in class org.ofbiz.core.entity.GenericValueorg.ofbiz.core.entity.GenericEntityException
public void setRelated(String s,
List relatedGVs)
public org.ofbiz.core.entity.GenericValue create()
throws org.ofbiz.core.entity.GenericEntityException
create in class org.ofbiz.core.entity.GenericValueorg.ofbiz.core.entity.GenericEntityExceptionpublic 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.GenericEntitypublic boolean matchesFields(Map keyValuePairs)
matchesFields in class org.ofbiz.core.entity.GenericEntitypublic org.ofbiz.core.entity.GenericPK getPrimaryKey()
getPrimaryKey in class org.ofbiz.core.entity.GenericEntitypublic void setDelegator(org.ofbiz.core.entity.GenericDelegator internalDelegator)
setDelegator in class org.ofbiz.core.entity.GenericEntitypublic 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.GenericValueorg.ofbiz.core.entity.GenericEntityException
public void remove()
throws org.ofbiz.core.entity.GenericEntityException
remove in class org.ofbiz.core.entity.GenericValueorg.ofbiz.core.entity.GenericEntityException
public void removeRelated(String relationName)
throws org.ofbiz.core.entity.GenericEntityException
removeRelated in class org.ofbiz.core.entity.GenericValueorg.ofbiz.core.entity.GenericEntityException
public void refresh()
throws org.ofbiz.core.entity.GenericEntityException
refresh in class org.ofbiz.core.entity.GenericValueorg.ofbiz.core.entity.GenericEntityExceptionpublic String toString()
toString in class org.ofbiz.core.entity.GenericEntitypublic Object dangerousGetNoCheckButFast(org.ofbiz.core.entity.model.ModelField modelField)
dangerousGetNoCheckButFast in class org.ofbiz.core.entity.GenericEntitypublic boolean equals(Object o)
equals in interface Map<String,Object>equals in class org.ofbiz.core.entity.GenericEntitypublic int hashCode()
hashCode in interface Map<String,Object>hashCode in class org.ofbiz.core.entity.GenericEntity
public void setString(String s,
String s1)
setString in class org.ofbiz.core.entity.GenericEntity
public List getRelatedOrderBy(String relationName,
List orderBy)
throws org.ofbiz.core.entity.GenericEntityException
getRelatedOrderBy in class org.ofbiz.core.entity.GenericValueorg.ofbiz.core.entity.GenericEntityException
public List getRelatedByAnd(String relationName,
Map fields)
throws org.ofbiz.core.entity.GenericEntityException
getRelatedByAnd in class org.ofbiz.core.entity.GenericValueorg.ofbiz.core.entity.GenericEntityExceptionpublic Set entrySet()
entrySet in interface Map<String,Object>entrySet in class org.ofbiz.core.entity.GenericEntitypublic Set keySet()
keySet in interface Map<String,Object>keySet in class org.ofbiz.core.entity.GenericEntitypublic int size()
size in interface Map<String,Object>size in class org.ofbiz.core.entity.GenericEntitypublic boolean isEmpty()
isEmpty in interface Map<String,Object>isEmpty in class org.ofbiz.core.entity.GenericEntitypublic Collection values()
values in interface Map<String,Object>values in class org.ofbiz.core.entity.GenericEntitypublic Object clone()
clone in class org.ofbiz.core.entity.GenericValue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||