com.parabon.common
Class DataReferenceParameterValue

java.lang.Object
  extended by com.parabon.common.DataReferenceParameterValue
All Implemented Interfaces:
ParameterValue, com.parabon.util.ObjectPool.Destroyable, com.parabon.util.ObjectPool.Reclaimable, java.io.Externalizable, java.io.Serializable

public class DataReferenceParameterValue
extends java.lang.Object
implements ParameterValue

See Also:
Serialized Form

Field Summary
protected  boolean destroyed
           
protected  java.lang.String id
           
 
Constructor Summary
DataReferenceParameterValue()
           
DataReferenceParameterValue(java.lang.String id_)
           
 
Method Summary
static DataReferenceParameterValue allocate(com.parabon.util.ObjectPool pool, java.lang.String value)
           
 java.lang.Object clone()
           
 ParameterValue cloneParameterValue(com.parabon.util.ObjectPool primePool)
           Creates a functional copy of the ParameterValue, using the specified ObjectPool for instantiation.
 void destroy()
           
 java.lang.String get()
           
 byte[] getBinaryValue()
           
 boolean getBooleanValue()
           
 java.util.Date getDateValue()
           
 double getDoubleValue()
           
 float getFloatValue()
           
 int getIntValue()
           
 long getLongValue()
           
 java.lang.String getStringValue()
           
 void readExternal(java.io.ObjectInput in)
           
 void reclaim()
           
 void set(java.lang.String id_)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.parabon.common.ParameterValue
getBinaryValue, getBooleanValue, getDateValue, getDoubleValue, getFloatValue, getIntValue, getLongValue
 

Field Detail

id

protected java.lang.String id

destroyed

protected boolean destroyed
Constructor Detail

DataReferenceParameterValue

public DataReferenceParameterValue(java.lang.String id_)

DataReferenceParameterValue

public DataReferenceParameterValue()
Method Detail

allocate

public static DataReferenceParameterValue allocate(com.parabon.util.ObjectPool pool,
                                                   java.lang.String value)

reclaim

public void reclaim()
Specified by:
reclaim in interface com.parabon.util.ObjectPool.Reclaimable

destroy

public void destroy()
Specified by:
destroy in interface com.parabon.util.ObjectPool.Destroyable

get

public java.lang.String get()

set

public void set(java.lang.String id_)

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

cloneParameterValue

public ParameterValue cloneParameterValue(com.parabon.util.ObjectPool primePool)
Description copied from interface: ParameterValue

Creates a functional copy of the ParameterValue, using the specified ObjectPool for instantiation. A null value for the pool is acceptable.

Specified by:
cloneParameterValue in interface ParameterValue

getStringValue

public java.lang.String getStringValue()
Specified by:
getStringValue in interface ParameterValue

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

getBooleanValue

public boolean getBooleanValue()

getLongValue

public long getLongValue()

getIntValue

public int getIntValue()

getDoubleValue

public double getDoubleValue()

getFloatValue

public float getFloatValue()

getDateValue

public java.util.Date getDateValue()

getBinaryValue

public byte[] getBinaryValue()