com.hardcode.gdbms.engine.values
Class ValueCollection

java.lang.Object
  extended by com.hardcode.gdbms.engine.values.AbstractValue
      extended by com.hardcode.gdbms.engine.values.ValueCollection
All Implemented Interfaces:
Value

public class ValueCollection
extends AbstractValue

ArrayValue. Contains an array of Values

Author:
Fernando González Cortés

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
ValueCollection()
           
 
Method Summary
 void add(Value value)
          Adds a value to the end of the array
 int doHashCode()
          The hashCode implementation.
 Value equals(Value value)
           
 Value get(int i)
          Gets the ith value of the array
 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
 int getValueCount()
          Gets the array size
 Value[] getValues()
          DOCUMENT ME!
 Value notEquals(Value value)
           
 void setValues(Value[] values)
          DOCUMENT ME!
 
Methods inherited from class com.hardcode.gdbms.engine.values.AbstractValue
and, doEquals, equals, greater, greaterEqual, hashCode, inversa, less, lessEqual, like, or, producto, suma
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueCollection

public ValueCollection()
Method Detail

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)

get

public Value get(int i)
Gets the ith value of the array

Parameters:
i -
Returns:

getValueCount

public int getValueCount()
Gets the array size

Returns:
int

add

public void add(Value value)
Adds a value to the end of the array

Parameters:
value - value to add

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

Returns:
integer
See Also:
Value.doHashCode()

setValues

public void setValues(Value[] values)
DOCUMENT ME!

Parameters:
values -

getValues

public Value[] getValues()
DOCUMENT ME!

Returns:
DOCUMENT ME!

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

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

Returns:
a java.sql.Types constant
See Also:
Value.getType()


Copyright © 2005-2006 . All Rights Reserved.