com.atlassian.jira.util.ofbiz
Class ImmutableGenericValue

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.jira.util.ofbiz.ImmutableGenericValue
All Implemented Interfaces:
Serializable, Cloneable, Comparable<org.ofbiz.core.entity.GenericEntity>, Map<String,Object>

public final class ImmutableGenericValue
extends org.ofbiz.core.entity.GenericValue

Class that providess guarantees about the usgae of this GenericValue, in particular it should never be used for mutative operations, only for reading state.

All mutative operations will throw UnsupportedOperationException

See Also:
Serialized Form

Nested Class Summary
 
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, fields, internalDelegator, modelEntity, modified
 
Constructor Summary
ImmutableGenericValue(org.ofbiz.core.entity.GenericDelegator delegator, String entityName, Map fields)
           
 
Method Summary
 void clear()
           
 Object put(String key, Object value)
           
 void putAll(Map map)
           
 void refresh()
           
 void remove()
           
 Object remove(Object key)
           
 void removeRelated(String relationName)
           
 Object set(String name, Object value, boolean setIfNull)
           
 void setDelegator(org.ofbiz.core.entity.GenericDelegator internalDelegator)
           
 void setFields(Map keyValuePairs)
           
 void setPKFields(Map fields, boolean setIfEmpty)
           
 void store()
           
 
Methods inherited from class org.ofbiz.core.entity.GenericValue
clone, copyOriginalDbValues, create, getOriginalDbValue, getRelated, getRelated, getRelatedByAnd, getRelatedByAndCache, getRelatedByAndEmbeddedCache, getRelatedCache, getRelatedCache, getRelatedDummyPK, getRelatedDummyPK, getRelatedEmbeddedCache, getRelatedEmbeddedCache, getRelatedMulti, getRelatedMulti, getRelatedOne, getRelatedOneCache, getRelatedOneEmbeddedCache, getRelatedOrderBy, getRelatedOrderByCache, getRelatedOrderByEmbeddedCache, originalDbValuesAvailable
 
Methods inherited from class org.ofbiz.core.entity.GenericEntity
addToXmlDocument, compareTo, containsKey, containsPrimaryKey, containsValue, dangerousGetNoCheckButFast, dangerousSetNoCheckButFast, entrySet, equals, get, get, getAllFields, getAllKeys, getBoolean, getBytes, getDate, getDelegator, getDouble, getEntityName, getFields, getFloat, getInteger, getLong, getModelEntity, getPrimaryKey, getString, getTime, getTimestamp, hashCode, isEmpty, isModified, isPrimaryKey, keySet, lockEnabled, makeXmlDocument, makeXmlElement, makeXmlElement, matchesFields, set, setBytes, setNonPKFields, setNonPKFields, setPKFields, setString, size, toString, values, 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

ImmutableGenericValue

public ImmutableGenericValue(org.ofbiz.core.entity.GenericDelegator delegator,
                             String entityName,
                             Map fields)
Method Detail

store

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

refresh

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

remove

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

remove

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

removeRelated

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

clear

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

put

public Object put(String key,
                  Object value)
Specified by:
put in interface Map<String,Object>
Overrides:
put in class org.ofbiz.core.entity.GenericEntity

putAll

public void putAll(Map map)
Specified by:
putAll in interface Map<String,Object>
Overrides:
putAll in class org.ofbiz.core.entity.GenericEntity

set

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

setFields

public void setFields(Map keyValuePairs)
Overrides:
setFields in class org.ofbiz.core.entity.GenericEntity

setPKFields

public void setPKFields(Map fields,
                        boolean setIfEmpty)
Overrides:
setPKFields in class org.ofbiz.core.entity.GenericEntity

setDelegator

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


Copyright © 2002-2014 Atlassian. All Rights Reserved.