com.hardcode.gdbms.engine.values
Class DateValue

java.lang.Object
  extended by com.hardcode.gdbms.engine.values.AbstractValue
      extended by com.hardcode.gdbms.engine.values.DateValue
All Implemented Interfaces:
Value, java.io.Serializable

public class DateValue
extends AbstractValue
implements java.io.Serializable

Wrapper sobre el tipo Date

Author:
Fernando González Cortés
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.hardcode.gdbms.engine.values.Value
BINARY, BOOLEAN, BYTE, DATE, DOUBLE, FLOAT, INT, LONG, SHORT, STRING, TIME, TIMESTAMP
 
Constructor Summary
DateValue()
           
 
Method Summary
 int doHashCode()
          The hashCode implementation.
 Value equals(Value value)
           
 java.lang.String getStringValue(ValueWriter writer)
          Gets the string representation of the value as it is defined in the specified ValueWriter
 int getType()
          Gets the type of the value
 java.sql.Date getValue()
           
 Value greater(Value value)
           
 Value greaterEqual(Value value)
           
 Value less(Value value)
           
 Value lessEqual(Value value)
           
 Value notEquals(Value value)
           
 void setValue(java.util.Date d)
          Establece el valor
 java.lang.String toString()
          DOCUMENT ME!
 
Methods inherited from class com.hardcode.gdbms.engine.values.AbstractValue
and, doEquals, equals, hashCode, inversa, like, or, producto, suma
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DateValue

public DateValue()
Method Detail

setValue

public void setValue(java.util.Date d)
Establece el valor

Parameters:
d - valor

equals

public Value equals(Value value)
             throws IncompatibleTypesException
Specified by:
equals in interface Value
Overrides:
equals in class AbstractValue
Throws:
IncompatibleTypesException
See Also:
com.hardcode.gdbms.engine.values.Operations#equals(com.hardcode.gdbms.engine.values.DateValue)

greater

public Value greater(Value value)
              throws IncompatibleTypesException
Specified by:
greater in interface Value
Overrides:
greater in class AbstractValue
Throws:
IncompatibleTypesException
See Also:
com.hardcode.gdbms.engine.values.Operations#greater(com.hardcode.gdbms.engine.values.DateValue)

greaterEqual

public Value greaterEqual(Value value)
                   throws IncompatibleTypesException
Specified by:
greaterEqual in interface Value
Overrides:
greaterEqual in class AbstractValue
Throws:
IncompatibleTypesException
See Also:
com.hardcode.gdbms.engine.values.Operations#greaterEqual(com.hardcode.gdbms.engine.values.DateValue)

less

public Value less(Value value)
           throws IncompatibleTypesException
Specified by:
less in interface Value
Overrides:
less in class AbstractValue
Throws:
IncompatibleTypesException
See Also:
com.hardcode.gdbms.engine.values.Operations#less(com.hardcode.gdbms.engine.values.DateValue)

lessEqual

public Value lessEqual(Value value)
                throws IncompatibleTypesException
Specified by:
lessEqual in interface Value
Overrides:
lessEqual in class AbstractValue
Throws:
IncompatibleTypesException
See Also:
com.hardcode.gdbms.engine.values.Operations#lessEqual(com.hardcode.gdbms.engine.values.DateValue)

notEquals

public Value notEquals(Value value)
                throws IncompatibleTypesException
Specified by:
notEquals in interface Value
Overrides:
notEquals in class AbstractValue
Throws:
IncompatibleTypesException
See Also:
com.hardcode.gdbms.engine.values.Operations#notEquals(com.hardcode.gdbms.engine.values.DateValue)

toString

public java.lang.String toString()
DOCUMENT ME!

Overrides:
toString in class java.lang.Object
Returns:
DOCUMENT ME!

doHashCode

public int doHashCode()
Description copied from interface: Value
The hashCode implementation. Every value with the same semantic information must return the same int

Specified by:
doHashCode in interface Value
Returns:
integer
See Also:
Value.doHashCode()

getValue

public java.sql.Date getValue()

getStringValue

public java.lang.String getStringValue(ValueWriter writer)
Description copied from interface: Value
Gets the string representation of the value as it is defined in the specified ValueWriter

Specified by:
getStringValue in interface Value
Parameters:
writer - Specifies the string representation for the values
Returns:
String
See Also:
com.hardcode.gdbms.engine.values.Value#getStringValue(com.hardcode.gdbms.engine.data.driver.ValueWriter)

getType

public int getType()
Description copied from interface: Value
Gets the type of the value

Specified by:
getType in interface Value
Returns:
a java.sql.Types constant
See Also:
Value.getType()


Copyright © 2005-2006 . All Rights Reserved.