com.parabon.common
Class DateParameterValue

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

public class DateParameterValue
extends java.lang.Object
implements ParameterValue

See Also:
Serialized Form

Field Summary
static java.text.DateFormat DATE_FORMAT
           
protected  boolean destroyed
           
protected  com.parabon.util.ObjectPool pool
           
protected  java.util.Date value
           
 
Constructor Summary
DateParameterValue()
           
DateParameterValue(java.util.Date value_)
           
DateParameterValue(com.parabon.util.ObjectPool pool_)
           
 
Method Summary
static DateParameterValue allocate(com.parabon.util.ObjectPool pool, java.util.Date 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()
           
 java.util.Date get()
           
 java.lang.String getAsString()
           
 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.util.Date value_)
           
 void setAsString(java.lang.String s)
           
 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, getDoubleValue, getFloatValue, getIntValue, getLongValue
 

Field Detail

DATE_FORMAT

public static final java.text.DateFormat DATE_FORMAT

pool

protected com.parabon.util.ObjectPool pool

value

protected java.util.Date value

destroyed

protected boolean destroyed
Constructor Detail

DateParameterValue

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

DateParameterValue

public DateParameterValue(java.util.Date value_)

DateParameterValue

public DateParameterValue()
Method Detail

allocate

public static DateParameterValue allocate(com.parabon.util.ObjectPool pool,
                                          java.util.Date 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

clear

public void clear()

set

public void set(java.util.Date value_)

setAsString

public void setAsString(java.lang.String s)
                 throws java.text.ParseException
Throws:
java.text.ParseException

get

public java.util.Date get()

getAsString

public java.lang.String getAsString()

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

getDateValue

public java.util.Date getDateValue()
Specified by:
getDateValue 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()

getBinaryValue

public byte[] getBinaryValue()