Quadcap Embeddable Database

com.quadcap.sql.types.ValueDate Class Reference

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

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

Detailed Description

A DATE value.

Author:
Stan Bailes

Definition at line 58 of file ValueDate.java.

Public Member Functions

 ValueDate ()
 ValueDate (long val)
 ValueDate (String str) throws antlr.RecognitionException
String toString ()
Value binop (int op, ValueString r) throws ValueException
Value binop (int op, Value l) throws ValueException
 Two-level virtual operator dispatch.

Value binop (int op, ValueInterval r) throws ValueException
Value unop (int op) throws ValueException
void readExternal (ObjectInput in) throws IOException, ClassNotFoundException
void writeExternal (ObjectOutput out) throws IOException
Object readObject (ObjectInput in) throws IOException, ClassNotFoundException
void writeObject (ObjectOutput out, Object object) throws IOException
Object asJavaObject ()
void fromJavaObject (Object obj) throws ValueException
Type getType ()
Value convert (TypeDate t)
Value convert (TypeTimestamp t)

Static Package Attributes

SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd")


Constructor & Destructor Documentation

com.quadcap.sql.types.ValueDate.ValueDate  ) 
 

Definition at line 61 of file ValueDate.java.

Referenced by com.quadcap.sql.types.ValueDate.binop(), and com.quadcap.sql.types.ValueDate.readObject().

com.quadcap.sql.types.ValueDate.ValueDate long  val  ) 
 

Definition at line 63 of file ValueDate.java.

com.quadcap.sql.types.ValueDate.ValueDate String  str  )  throws antlr.RecognitionException
 

Definition at line 67 of file ValueDate.java.

References com.quadcap.sql.types.ValueDate.df.


Member Function Documentation

Object com.quadcap.sql.types.ValueDate.asJavaObject  )  [virtual]
 

Reimplemented from com.quadcap.sql.types.ValueDateTime.

Definition at line 154 of file ValueDate.java.

Value com.quadcap.sql.types.ValueDate.binop int  op,
ValueInterval  r
throws ValueException
 

Reimplemented from com.quadcap.sql.types.Value.

Definition at line 95 of file ValueDate.java.

References com.quadcap.sql.types.ValueDateTime.getCal(), and com.quadcap.sql.types.ValueDate.ValueDate().

Value com.quadcap.sql.types.ValueDate.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.ValueDateTime.

Definition at line 91 of file ValueDate.java.

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

Value com.quadcap.sql.types.ValueDate.binop int  op,
ValueString  r
throws ValueException
 

Reimplemented from com.quadcap.sql.types.Value.

Definition at line 83 of file ValueDate.java.

References com.quadcap.sql.types.ValueDate.binop(), and com.quadcap.sql.types.ValueDate.ValueDate().

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

Value com.quadcap.sql.types.ValueDate.convert TypeTimestamp  t  ) 
 

Reimplemented from com.quadcap.sql.types.Value.

Definition at line 174 of file ValueDate.java.

Value com.quadcap.sql.types.ValueDate.convert TypeDate  t  ) 
 

Reimplemented from com.quadcap.sql.types.Value.

Definition at line 170 of file ValueDate.java.

References com.quadcap.sql.types.ValueDate.convert().

Referenced by com.quadcap.sql.types.ValueDate.convert().

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

Implements com.quadcap.sql.types.Value.

Definition at line 158 of file ValueDate.java.

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

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

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

Implements com.quadcap.sql.types.ValueDateTime.

Definition at line 166 of file ValueDate.java.

void com.quadcap.sql.types.ValueDate.readExternal ObjectInput  in  )  throws IOException, ClassNotFoundException
 

Reimplemented from com.quadcap.sql.types.ValueDateTime.

Definition at line 128 of file ValueDate.java.

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

Referenced by com.quadcap.sql.types.ValueDate.readExternal(), and com.quadcap.sql.types.ValueDate.readObject().

Object com.quadcap.sql.types.ValueDate.readObject ObjectInput  in  )  throws IOException, ClassNotFoundException
 

Definition at line 140 of file ValueDate.java.

References com.quadcap.sql.types.ValueDate.readExternal(), com.quadcap.sql.types.ValueDate.readObject(), and com.quadcap.sql.types.ValueDate.ValueDate().

Referenced by com.quadcap.sql.types.ValueDate.readObject().

String com.quadcap.sql.types.ValueDate.toString  ) 
 

Reimplemented from com.quadcap.sql.types.ValueDateTime.

Definition at line 77 of file ValueDate.java.

References com.quadcap.sql.types.ValueDate.df.

Value com.quadcap.sql.types.ValueDate.unop int  op  )  throws ValueException
 

Reimplemented from com.quadcap.sql.types.ValueDateTime.

Definition at line 118 of file ValueDate.java.

References com.quadcap.sql.types.ValueDate.unop().

Referenced by com.quadcap.sql.types.ValueDate.unop().

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

Reimplemented from com.quadcap.sql.types.ValueDateTime.

Definition at line 134 of file ValueDate.java.

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

Referenced by com.quadcap.sql.types.ValueDate.writeExternal(), and com.quadcap.sql.types.ValueDate.writeObject().

void com.quadcap.sql.types.ValueDate.writeObject ObjectOutput  out,
Object  object
throws IOException
 

Definition at line 148 of file ValueDate.java.

References com.quadcap.sql.types.ValueDate.writeExternal(), and com.quadcap.sql.types.ValueDate.writeObject().

Referenced by com.quadcap.sql.types.ValueDate.writeObject().


Member Data Documentation

SimpleDateFormat com.quadcap.sql.types.ValueDate.df = new SimpleDateFormat("yyyy-MM-dd") [static, package]
 

Definition at line 59 of file ValueDate.java.

Referenced by com.quadcap.sql.types.ValueDate.toString(), and com.quadcap.sql.types.ValueDate.ValueDate().