com.hardcode.gdbms.engine.values
Class StringValue

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

public class StringValue
extends AbstractValue
implements java.io.Serializable

Wrapper sobre el tipo de datos String

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

Method Detail

setValue

public void setValue(java.lang.String value)
Establece el valor de este objeto

Parameters:
value -

getValue

public java.lang.String getValue()
Obtiene el valor de este objeto

Returns:

suma

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

producto

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

toString

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

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

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.BooleanValue)

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.BooleanValue)

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.BooleanValue)

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.BooleanValue)

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

like

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

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)

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.