Quadcap Embeddable Database

com.quadcap.sql.types.ValueTime Class Reference

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

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

Detailed Description

A TIME value.

Author:
Stan Bailes

Definition at line 55 of file ValueTime.java.

Public Member Functions

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

Value binop (int op, ValueString r) throws ValueException
Value binop (int op, ValueInterval r) throws ValueException
Value binop (int op, ValueTime r) throws ValueException
void readExternal (ObjectInput in) throws IOException, ClassNotFoundException
void writeExternal (ObjectOutput out) throws IOException
Object asJavaObject ()
void fromJavaObject (Object obj) throws ValueException
Type getType ()
Value convert (TypeTime type)
Value convert (TypeTimestamp t)

Static Package Attributes

SimpleDateFormat df = new SimpleDateFormat("HH:mm:ss")


Constructor & Destructor Documentation

com.quadcap.sql.types.ValueTime.ValueTime  ) 
 

Definition at line 58 of file ValueTime.java.

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

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

Definition at line 60 of file ValueTime.java.

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

Definition at line 64 of file ValueTime.java.

References com.quadcap.sql.types.ValueTime.df.


Member Function Documentation

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

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

Definition at line 129 of file ValueTime.java.

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

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

Definition at line 113 of file ValueTime.java.

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

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

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

Definition at line 102 of file ValueTime.java.

References com.quadcap.sql.types.ValueTime.ValueTime().

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

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

Definition at line 94 of file ValueTime.java.

References com.quadcap.sql.types.Value.binop(), and com.quadcap.sql.types.ValueTime.ValueTime().

Value com.quadcap.sql.types.ValueTime.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 90 of file ValueTime.java.

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

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

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

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

Definition at line 149 of file ValueTime.java.

Value com.quadcap.sql.types.ValueTime.convert TypeTime  type  ) 
 

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

Definition at line 145 of file ValueTime.java.

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

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

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

Implements com.quadcap.sql.types.Value.

Definition at line 133 of file ValueTime.java.

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

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

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

Implements com.quadcap.sql.types.ValueDateTime.

Definition at line 141 of file ValueTime.java.

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

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

Definition at line 117 of file ValueTime.java.

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

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

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

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

Definition at line 74 of file ValueTime.java.

References com.quadcap.sql.types.ValueTime.df.

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

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

Definition at line 80 of file ValueTime.java.

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

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

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

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

Definition at line 123 of file ValueTime.java.

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

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


Member Data Documentation

SimpleDateFormat com.quadcap.sql.types.ValueTime.df = new SimpleDateFormat("HH:mm:ss") [static, package]
 

Definition at line 56 of file ValueTime.java.

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