Quadcap Embeddable Database

com.quadcap.sql.types.ValueDefault Class Reference

Inheritance diagram for com.quadcap.sql.types.ValueDefault:

com.quadcap.sql.types.Value Externalizable List of all members.

Detailed Description

The "default" value.

Author:
Stan Bailes

Definition at line 51 of file ValueDefault.java.

Public Member Functions

 ValueDefault ()
Value binop (int op, Value l) throws ValueException
 Two-level virtual operator dispatch.

Object asJavaObject () throws ValueException
void fromJavaObject (Object obj) throws ValueException
Type getType ()
void readExternal (ObjectInput in) throws IOException
void writeExternal (ObjectOutput out) throws IOException
void serializeKey (KeyStream out) throws IOException

Static Public Attributes

final ValueDefault valueDefault = new ValueDefault()


Constructor & Destructor Documentation

com.quadcap.sql.types.ValueDefault.ValueDefault  ) 
 

Definition at line 55 of file ValueDefault.java.


Member Function Documentation

Object com.quadcap.sql.types.ValueDefault.asJavaObject  )  throws ValueException [virtual]
 

Implements com.quadcap.sql.types.Value.

Definition at line 61 of file ValueDefault.java.

Value com.quadcap.sql.types.ValueDefault.binop int  op,
Value  l
throws ValueException [virtual]
 

Two-level virtual operator dispatch.

Each subtype implements the same basic template for this abstract function:

 Value binop(int op, Value l) {
    return l.binop(op, this);
 }

 
Then, type overloading allows for each type to implement all ops for which it can be the left hand side for all allowed types on the right hand side: Value binop(int op, ValueInteger l); Value binop(int op, ValueLong l); ...

Implements com.quadcap.sql.types.Value.

Definition at line 57 of file ValueDefault.java.

References com.quadcap.sql.types.ValueDefault.binop().

Referenced by com.quadcap.sql.types.ValueDefault.binop().

void com.quadcap.sql.types.ValueDefault.fromJavaObject Object  obj  )  throws ValueException [virtual]
 

Implements com.quadcap.sql.types.Value.

Definition at line 65 of file ValueDefault.java.

References com.quadcap.sql.types.ValueDefault.fromJavaObject().

Referenced by com.quadcap.sql.types.ValueDefault.fromJavaObject().

Type com.quadcap.sql.types.ValueDefault.getType  )  [virtual]
 

Implements com.quadcap.sql.types.Value.

Definition at line 69 of file ValueDefault.java.

void com.quadcap.sql.types.ValueDefault.readExternal ObjectInput  in  )  throws IOException
 

Definition at line 73 of file ValueDefault.java.

References com.quadcap.sql.types.ValueDefault.readExternal().

Referenced by com.quadcap.sql.types.ValueDefault.readExternal().

void com.quadcap.sql.types.ValueDefault.serializeKey KeyStream  out  )  throws IOException [virtual]
 

Implements com.quadcap.sql.types.Value.

Definition at line 81 of file ValueDefault.java.

References com.quadcap.sql.types.ValueDefault.serializeKey().

Referenced by com.quadcap.sql.types.ValueDefault.serializeKey().

void com.quadcap.sql.types.ValueDefault.writeExternal ObjectOutput  out  )  throws IOException
 

Definition at line 76 of file ValueDefault.java.

References com.quadcap.sql.types.ValueDefault.writeExternal().

Referenced by com.quadcap.sql.types.ValueDefault.writeExternal().


Member Data Documentation

final ValueDefault com.quadcap.sql.types.ValueDefault.valueDefault = new ValueDefault() [static]
 

Definition at line 53 of file ValueDefault.java.