com.hardcode.gdbms.engine.values
Class BooleanValue

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

public class BooleanValue
extends AbstractValue
implements java.io.Serializable

Wrapper para booleanos

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
 
Method Summary
 Value and(Value value)
           
 int doHashCode()
          The hashCode implementation.
 Value equals(Value value)
          DOCUMENT ME!
 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
 boolean getValue()
          Obtiene el valor de este objeto
 Value greater(Value value)
           
 Value greaterEqual(Value value)
           
 Value inversa()
          DOCUMENT ME!
 Value less(Value value)
           
 Value lessEqual(Value value)
           
 Value notEquals(Value value)
          DOCUMENT ME!
 Value or(Value value)
           
 void setValue(boolean value)
          Establece el valor de este objeto
 java.lang.String toString()
           
 
Methods inherited from class com.hardcode.gdbms.engine.values.AbstractValue
doEquals, equals, hashCode, like, producto, suma
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

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.instruction.Operations#greater(com.hardcode.gdbms.engine.values.Value)

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.instruction.Operations#greaterEqual(com.hardcode.gdbms.engine.values.Value)

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.instruction.Operations#less(com.hardcode.gdbms.engine.values.Value)

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.instruction.Operations#lessEqual(com.hardcode.gdbms.engine.values.Value)

equals

public Value equals(Value value)
             throws IncompatibleTypesException
DOCUMENT ME!

Specified by:
equals in interface Value
Overrides:
equals in class AbstractValue
Parameters:
value - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
IncompatibleTypesException - DOCUMENT ME!
See Also:
com.hardcode.gdbms.engine.instruction.Operations#equals(com.hardcode.gdbms.engine.values.Value)

notEquals

public Value notEquals(Value value)
                throws IncompatibleTypesException
DOCUMENT ME!

Specified by:
notEquals in interface Value
Overrides:
notEquals in class AbstractValue
Parameters:
value - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
IncompatibleTypesException - DOCUMENT ME!
See Also:
com.hardcode.gdbms.engine.instruction.Operations#notEquals(com.hardcode.gdbms.engine.values.Value)

setValue

public void setValue(boolean value)
Establece el valor de este objeto

Parameters:
value -

getValue

public boolean getValue()
Obtiene el valor de este objeto

Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

and

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

or

public Value or(Value value)
         throws IncompatibleTypesException
Specified by:
or in interface Value
Overrides:
or in class AbstractValue
Throws:
IncompatibleTypesException
See Also:
com.hardcode.gdbms.engine.instruction.Operations#and(com.hardcode.gdbms.engine.instruction.BooleanValue)

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()

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)

inversa

public Value inversa()
              throws IncompatibleTypesException
Description copied from interface: Value
DOCUMENT ME!

Specified by:
inversa in interface Value
Overrides:
inversa in class AbstractValue
Returns:
DOCUMENT ME!
Throws:
IncompatibleTypesException - DOCUMENT ME!
See Also:
Value.inversa()

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.