com.atlassian.jira.ofbiz
Class AbstractOfBizValueWrapper

java.lang.Object
  extended by com.atlassian.jira.ofbiz.AbstractOfBizValueWrapper
All Implemented Interfaces:
OfBizValueWrapper
Direct Known Subclasses:
Attachment, IssueConstantImpl, IssueLinkImpl, IssueLinkTypeImpl, VersionImpl

@Internal
public abstract class AbstractOfBizValueWrapper
extends Object
implements OfBizValueWrapper

The methods in these class should not be used. They are here for backwards compatibility with GenericValues Use debug to determine what still uses these methods and change the code to uses the actual getter/setter methods of the bean.


Field Summary
protected  org.ofbiz.core.entity.GenericValue genericValue
           
 
Constructor Summary
protected AbstractOfBizValueWrapper(org.ofbiz.core.entity.GenericValue genericValue)
           
 
Method Summary
 boolean equals(Object o)
           
 org.ofbiz.core.entity.GenericValue getGenericValue()
          Get the backing GenericValue object.
 Long getLong(String name)
          Retrieve a numeric field.
 String getString(String name)
          Retrieve a String field.
 Timestamp getTimestamp(String name)
          Retrieve a timestamp field.
 int hashCode()
           
 void store()
          Persist this object's immediate fields.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

genericValue

protected final org.ofbiz.core.entity.GenericValue genericValue
Constructor Detail

AbstractOfBizValueWrapper

protected AbstractOfBizValueWrapper(org.ofbiz.core.entity.GenericValue genericValue)
Method Detail

getString

public String getString(String name)
Description copied from interface: OfBizValueWrapper
Retrieve a String field.

Specified by:
getString in interface OfBizValueWrapper
Parameters:
name - the field name
Returns:
the value for the given field.

getTimestamp

public Timestamp getTimestamp(String name)
Description copied from interface: OfBizValueWrapper
Retrieve a timestamp field.

Specified by:
getTimestamp in interface OfBizValueWrapper
Parameters:
name - the field name
Returns:
the value for the given field.

getLong

public Long getLong(String name)
Description copied from interface: OfBizValueWrapper
Retrieve a numeric field.

Specified by:
getLong in interface OfBizValueWrapper
Parameters:
name - the field name
Returns:
the value for the given field.

getGenericValue

public org.ofbiz.core.entity.GenericValue getGenericValue()
Description copied from interface: OfBizValueWrapper
Get the backing GenericValue object.

Specified by:
getGenericValue in interface OfBizValueWrapper
Returns:
the backing GenericValue object.

store

public void store()
Description copied from interface: OfBizValueWrapper
Persist this object's immediate fields.

Specified by:
store in interface OfBizValueWrapper

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2002-2012 Atlassian. All Rights Reserved.