com.atlassian.core.ofbiz.test.mock
Class MockGenericValue

java.lang.Object
  extended by java.util.Observable
      extended by org.ofbiz.core.entity.GenericEntity
          extended by org.ofbiz.core.entity.GenericValue
              extended by com.atlassian.core.ofbiz.test.mock.MockGenericValue
All Implemented Interfaces:
Serializable, Cloneable, Comparable<org.ofbiz.core.entity.GenericEntity>, Map<String,Object>

Deprecated. Please use com.atlassian.jira.mock.ofbiz.MockGenericValue from the jira-test module. Since v4.3

public class MockGenericValue
extends org.ofbiz.core.entity.GenericValue

This was taken from atlassian-ofbiz and placed here temporarily.

See Also:
Serialized Form

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

MockGenericValue

public MockGenericValue(org.ofbiz.core.entity.GenericValue value)
Deprecated. 

MockGenericValue

public MockGenericValue(String entityName)
Deprecated. 

MockGenericValue

public MockGenericValue(String entityName,
                        Map fields)
Deprecated. 
Method Detail

get

public Object get(String name)
Deprecated. 
Overrides:
get in class org.ofbiz.core.entity.GenericEntity

set

public void set(String name,
                Object value)
Deprecated. 
Overrides:
set in class org.ofbiz.core.entity.GenericEntity

getAllKeys

public Collection getAllKeys()
Deprecated. 
Overrides:
getAllKeys in class org.ofbiz.core.entity.GenericEntity

getFields

public Map getFields(Collection collection)
Deprecated. 
Overrides:
getFields in class org.ofbiz.core.entity.GenericEntity

getAllFields

public Map getAllFields()
Deprecated. 
Overrides:
getAllFields in class org.ofbiz.core.entity.GenericEntity

getRelated

public List getRelated(String s)
                throws org.ofbiz.core.entity.GenericEntityException
Deprecated. 
Overrides:
getRelated in class org.ofbiz.core.entity.GenericValue
Throws:
org.ofbiz.core.entity.GenericEntityException

getRelated

public List getRelated(String s,
                       Map map,
                       List order)
                throws org.ofbiz.core.entity.GenericEntityException
Deprecated. 
Overrides:
getRelated in class org.ofbiz.core.entity.GenericValue
Throws:
org.ofbiz.core.entity.GenericEntityException

setRelated

public void setRelated(String s,
                       List relatedGVs)
Deprecated. 

create

public org.ofbiz.core.entity.GenericValue create()
                                          throws org.ofbiz.core.entity.GenericEntityException
Deprecated. 
Overrides:
create in class org.ofbiz.core.entity.GenericValue
Throws:
org.ofbiz.core.entity.GenericEntityException

isCreated

public boolean isCreated()
Deprecated. 

isStored

public boolean isStored()
Deprecated. 

isRemoved

public boolean isRemoved()
Deprecated. 

isRefreshed

public boolean isRefreshed()
Deprecated. 

getModelEntity

public org.ofbiz.core.entity.model.ModelEntity getModelEntity()
Deprecated. 
Overrides:
getModelEntity in class org.ofbiz.core.entity.GenericEntity

matchesFields

public boolean matchesFields(Map keyValuePairs)
Deprecated. 
Overrides:
matchesFields in class org.ofbiz.core.entity.GenericEntity

getPrimaryKey

public org.ofbiz.core.entity.GenericPK getPrimaryKey()
Deprecated. 
Overrides:
getPrimaryKey in class org.ofbiz.core.entity.GenericEntity

setDelegator

public void setDelegator(org.ofbiz.core.entity.GenericDelegator internalDelegator)
Deprecated. 
Overrides:
setDelegator in class org.ofbiz.core.entity.GenericEntity

getDelegator

public org.ofbiz.core.entity.GenericDelegator getDelegator()
Deprecated. 
Overrides:
getDelegator in class org.ofbiz.core.entity.GenericEntity

store

public void store()
           throws org.ofbiz.core.entity.GenericEntityException
Deprecated. 
Overrides:
store in class org.ofbiz.core.entity.GenericValue
Throws:
org.ofbiz.core.entity.GenericEntityException

remove

public void remove()
            throws org.ofbiz.core.entity.GenericEntityException
Deprecated. 
Overrides:
remove in class org.ofbiz.core.entity.GenericValue
Throws:
org.ofbiz.core.entity.GenericEntityException

removeRelated

public void removeRelated(String relationName)
                   throws org.ofbiz.core.entity.GenericEntityException
Deprecated. 
Overrides:
removeRelated in class org.ofbiz.core.entity.GenericValue
Throws:
org.ofbiz.core.entity.GenericEntityException

refresh

public void refresh()
             throws org.ofbiz.core.entity.GenericEntityException
Deprecated. 
Overrides:
refresh in class org.ofbiz.core.entity.GenericValue
Throws:
org.ofbiz.core.entity.GenericEntityException

toString

public String toString()
Deprecated. 
Overrides:
toString in class org.ofbiz.core.entity.GenericEntity

dangerousGetNoCheckButFast

public Object dangerousGetNoCheckButFast(org.ofbiz.core.entity.model.ModelField modelField)
Deprecated. 
Overrides:
dangerousGetNoCheckButFast in class org.ofbiz.core.entity.GenericEntity

equals

public boolean equals(Object o)
Deprecated. 
Specified by:
equals in interface Map<String,Object>
Overrides:
equals in class org.ofbiz.core.entity.GenericEntity

hashCode

public int hashCode()
Deprecated. 
Specified by:
hashCode in interface Map<String,Object>
Overrides:
hashCode in class org.ofbiz.core.entity.GenericEntity

setString

public void setString(String s,
                      String s1)
Deprecated. 
Overrides:
setString in class org.ofbiz.core.entity.GenericEntity

getRelatedOrderBy

public List getRelatedOrderBy(String relationName,
                              List orderBy)
                       throws org.ofbiz.core.entity.GenericEntityException
Deprecated. 
Overrides:
getRelatedOrderBy in class org.ofbiz.core.entity.GenericValue
Throws:
org.ofbiz.core.entity.GenericEntityException

getRelatedByAnd

public List getRelatedByAnd(String relationName,
                            Map fields)
                     throws org.ofbiz.core.entity.GenericEntityException
Deprecated. 
Overrides:
getRelatedByAnd in class org.ofbiz.core.entity.GenericValue
Throws:
org.ofbiz.core.entity.GenericEntityException

entrySet

public Set entrySet()
Deprecated. 
Specified by:
entrySet in interface Map<String,Object>
Overrides:
entrySet in class org.ofbiz.core.entity.GenericEntity

keySet

public Set keySet()
Deprecated. 
Specified by:
keySet in interface Map<String,Object>
Overrides:
keySet in class org.ofbiz.core.entity.GenericEntity

size

public int size()
Deprecated. 
Specified by:
size in interface Map<String,Object>
Overrides:
size in class org.ofbiz.core.entity.GenericEntity

isEmpty

public boolean isEmpty()
Deprecated. 
Specified by:
isEmpty in interface Map<String,Object>
Overrides:
isEmpty in class org.ofbiz.core.entity.GenericEntity

values

public Collection values()
Deprecated. 
Specified by:
values in interface Map<String,Object>
Overrides:
values in class org.ofbiz.core.entity.GenericEntity

clone

public Object clone()
Deprecated. 
Overrides:
clone in class org.ofbiz.core.entity.GenericValue


Copyright © 2002-2012 Atlassian. All Rights Reserved.