com.parabon.common
Class BinaryParameterValue

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

public class BinaryParameterValue
extends java.lang.Object
implements ParameterValue

See Also:
Serialized Form

Field Summary
protected  boolean destroyed
           
protected  com.parabon.util.ObjectPool pool
           
protected  byte[] value
           
 
Constructor Summary
BinaryParameterValue()
           
BinaryParameterValue(byte[] value_)
           
BinaryParameterValue(byte[] value_, com.parabon.util.ObjectPool pool_)
           
BinaryParameterValue(com.parabon.util.ObjectPool pool_)
           
 
Method Summary
static BinaryParameterValue allocate(com.parabon.util.ObjectPool pool, byte[] value)
           
 void clear()
           
 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()
           
 byte[] 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(byte[] value_)
           
 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
getBooleanValue, getDateValue, getDoubleValue, getFloatValue, getIntValue, getLongValue, getStringValue
 

Field Detail

pool

protected com.parabon.util.ObjectPool pool

value

protected byte[] value

destroyed

protected boolean destroyed
Constructor Detail

BinaryParameterValue

public BinaryParameterValue(byte[] value_,
                            com.parabon.util.ObjectPool pool_)

BinaryParameterValue

public BinaryParameterValue(byte[] value_)

BinaryParameterValue

public BinaryParameterValue(com.parabon.util.ObjectPool pool_)

BinaryParameterValue

public BinaryParameterValue()
Method Detail

allocate

public static BinaryParameterValue allocate(com.parabon.util.ObjectPool pool,
                                            byte[] 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 byte[] get()

set

public void set(byte[] value_)

clear

public void clear()

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

getBinaryValue

public byte[] getBinaryValue()
Specified by:
getBinaryValue 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()

getStringValue

public java.lang.String getStringValue()

getDateValue

public java.util.Date getDateValue()