|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Value
Datatypes must implement this interface in order to the drivers to return that datatype. The implementation can inherit from AbstractValue or must implement equals and hashCode in the way explained at doEquals method javadoc
Field Summary | |
---|---|
static int |
BINARY
|
static int |
BOOLEAN
|
static int |
BYTE
|
static int |
DATE
|
static int |
DOUBLE
|
static int |
FLOAT
|
static int |
INT
|
static int |
LONG
|
static int |
SHORT
|
static int |
STRING
|
static int |
TIME
|
static int |
TIMESTAMP
|
Method Summary | |
---|---|
Value |
and(Value value)
|
boolean |
doEquals(java.lang.Object obj)
In order to index the tables equals and hashCode must be defined. |
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 |
Value |
greater(Value value)
|
Value |
greaterEqual(Value value)
|
Value |
inversa()
DOCUMENT ME! |
Value |
less(Value value)
|
Value |
lessEqual(Value value)
|
Value |
like(Value value)
|
Value |
notEquals(Value value)
|
Value |
or(Value value)
|
Value |
producto(Value value)
|
Value |
suma(Value value)
|
Field Detail |
---|
static final int BINARY
static final int BOOLEAN
static final int BYTE
static final int DATE
static final int DOUBLE
static final int FLOAT
static final int INT
static final int LONG
static final int SHORT
static final int STRING
static final int TIMESTAMP
static final int TIME
Method Detail |
---|
Value and(Value value) throws IncompatibleTypesException
IncompatibleTypesException
com.hardcode.gdbms.engine.instruction.Operations#and(com.hardcode.gdbms.engine.values.value);
Value or(Value value) throws IncompatibleTypesException
IncompatibleTypesException
com.hardcode.gdbms.engine.instruction.Operations#or(com.hardcode.gdbms.engine.values.value);
Value producto(Value value) throws IncompatibleTypesException
IncompatibleTypesException
com.hardcode.gdbms.engine.instruction.Operations#producto(com.hardcode.gdbms.engine.values.value);
Value suma(Value value) throws IncompatibleTypesException
IncompatibleTypesException
com.hardcode.gdbms.engine.instruction.Operations#suma(com.hardcode.gdbms.engine.values.value);
Value inversa() throws IncompatibleTypesException
IncompatibleTypesException
- DOCUMENT ME!Value equals(Value value) throws IncompatibleTypesException
IncompatibleTypesException
com.hardcode.gdbms.engine.instruction.Operations#equals(com.hardcode.gdbms.engine.values.Value)
Value notEquals(Value value) throws IncompatibleTypesException
IncompatibleTypesException
com.hardcode.gdbms.engine.instruction.Operations#notEquals(com.hardcode.gdbms.engine.values.Value)
Value greater(Value value) throws IncompatibleTypesException
IncompatibleTypesException
com.hardcode.gdbms.engine.instruction.Operations#greater(com.hardcode.gdbms.engine.values.Value)
Value less(Value value) throws IncompatibleTypesException
IncompatibleTypesException
com.hardcode.gdbms.engine.instruction.Operations#less(com.hardcode.gdbms.engine.values.Value)
Value greaterEqual(Value value) throws IncompatibleTypesException
IncompatibleTypesException
com.hardcode.gdbms.engine.instruction.Operations#greaterEqual(com.hardcode.gdbms.engine.values.Value)
Value lessEqual(Value value) throws IncompatibleTypesException
IncompatibleTypesException
com.hardcode.gdbms.engine.instruction.Operations#lessEqual(com.hardcode.gdbms.engine.values.Value)
Value like(Value value) throws IncompatibleTypesException
IncompatibleTypesException
com.hardcode.gdbms.engine.values.Operations#like(com.hardcode.gdbms.engine.values.Value)
boolean doEquals(java.lang.Object obj)
Object.equals(java.lang.Object)
int doHashCode()
Object.hashCode()
java.lang.String getStringValue(ValueWriter writer)
writer
- Specifies the string representation for the values
int getType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |