public class

MockGenericValue

extends GenericValue
java.lang.Object
   ↳ java.util.Observable
     ↳ org.ofbiz.core.entity.GenericEntity
       ↳ org.ofbiz.core.entity.GenericValue
         ↳ com.atlassian.jira.mock.ofbiz.MockGenericValue

Class Overview

This was taken from atlassian-ofbiz and placed into its now rightful home of JIRA.

Summary

Nested Classes
class MockGenericValue.MockModelEntity  
Fields
protected boolean created
protected boolean refreshed
protected boolean removed
protected boolean stored
[Expand]
Inherited Fields
From class org.ofbiz.core.entity.GenericValue
From class org.ofbiz.core.entity.GenericEntity
Public Constructors
MockGenericValue(GenericValue value)
MockGenericValue(String entityName)
MockGenericValue(String entityName, Map<String, ?> fields)
MockGenericValue(String entityName, Long id)
MockGenericValue(String entityName, ModelEntity modelEntity, Map<StringObject> fields)
Public Methods
Object clone()
GenericValue create()
Object dangerousGetNoCheckButFast(ModelField modelField)
@Nonnull Set<Entry<StringObject>> entrySet()
boolean equals(Object o)
Object get(String name)
Map<StringObject> getAllFields()
Collection<String> getAllKeys()
GenericDelegator getDelegator()
Map<StringObject> getFields(Collection<String> collection)
ModelEntity getModelEntity()
GenericPK getPrimaryKey()
List<GenericValue> getRelated(String s, Map<String, ?> map, List<String> order)
List<GenericValue> getRelated(String s)
List<GenericValue> getRelatedByAnd(String relationName, Map<String, ?> fields)
GenericValue getRelatedOne(String s)
List<GenericValue> getRelatedOrderBy(String relationName, List<String> orderBy)
int hashCode()
boolean isCreated()
boolean isEmpty()
boolean isRefreshed()
boolean isRemoved()
boolean isStored()
@Nonnull Set<String> keySet()
boolean matchesFields(Map<String, ?> keyValuePairs)
void refresh()
void remove()
void removeRelated(String relationName)
void set(String name, Object value)
void setDelegator(GenericDelegator internalDelegator)
synchronized void setFields(Map<? extends String, ?> keyValuePairs)
void setOfBizDelegator(OfBizDelegator ofBizDelegator)
void setRelated(String s, List<GenericValue> relatedGVs)
void setString(String s, String s1)
int size()
void store()
String toString()
Collection<Object> values()
[Expand]
Inherited Methods
From class org.ofbiz.core.entity.GenericValue
From class org.ofbiz.core.entity.GenericEntity
From class java.util.Observable
From class java.lang.Object
From interface java.lang.Comparable
From interface java.util.Map

Fields

protected boolean created

protected boolean refreshed

protected boolean removed

protected boolean stored

Public Constructors

public MockGenericValue (GenericValue value)

public MockGenericValue (String entityName)

public MockGenericValue (String entityName, Map<String, ?> fields)

public MockGenericValue (String entityName, Long id)

public MockGenericValue (String entityName, ModelEntity modelEntity, Map<StringObject> fields)

Public Methods

public Object clone ()

public GenericValue create ()

Throws
GenericEntityException

public Object dangerousGetNoCheckButFast (ModelField modelField)

@Nonnull public Set<Entry<StringObject>> entrySet ()

public boolean equals (Object o)

public Object get (String name)

public Map<StringObject> getAllFields ()

public Collection<String> getAllKeys ()

public GenericDelegator getDelegator ()

public Map<StringObject> getFields (Collection<String> collection)

public ModelEntity getModelEntity ()

public GenericPK getPrimaryKey ()

public List<GenericValue> getRelated (String s, Map<String, ?> map, List<String> order)

Throws
GenericEntityException

public List<GenericValue> getRelated (String s)

Throws
GenericEntityException

public List<GenericValue> getRelatedByAnd (String relationName, Map<String, ?> fields)

Throws
GenericEntityException

public GenericValue getRelatedOne (String s)

Throws
GenericEntityException

public List<GenericValue> getRelatedOrderBy (String relationName, List<String> orderBy)

Throws
GenericEntityException

public int hashCode ()

public boolean isCreated ()

public boolean isEmpty ()

public boolean isRefreshed ()

public boolean isRemoved ()

public boolean isStored ()

@Nonnull public Set<String> keySet ()

public boolean matchesFields (Map<String, ?> keyValuePairs)

public void refresh ()

Throws
GenericEntityException

public void remove ()

Throws
GenericEntityException

public void removeRelated (String relationName)

Throws
GenericEntityException

public void set (String name, Object value)

public void setDelegator (GenericDelegator internalDelegator)

public synchronized void setFields (Map<? extends String, ?> keyValuePairs)

public void setOfBizDelegator (OfBizDelegator ofBizDelegator)

public void setRelated (String s, List<GenericValue> relatedGVs)

public void setString (String s, String s1)

public int size ()

public void store ()

Throws
GenericEntityException

public String toString ()

public Collection<Object> values ()