Quadcap Embeddable Database

com.quadcap.sql.types.TypeSmallInt Class Reference

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

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

Detailed Description

The SQL SMALLINT type.

Author:
Stan Bailes

Definition at line 57 of file TypeSmallInt.java.

Public Member Functions

 TypeSmallInt ()
String getTypeName ()
int getJDBCType ()
String getJDBCClassName ()
int getPrecision ()
int getScale ()
int getMaxPrecision ()
int getMinScale ()
int getMaxScale ()
boolean isCharType ()
boolean isCaseSensitive ()
boolean isCurrency ()
boolean isSigned ()
int getDisplayWidth ()
String toString ()
void readExternal (ObjectInput in)
 We don't bother serializing the data, since Java serialization is only used for the type portion of a table column.

void writeExternal (ObjectOutput out)
Value convert (Value v) throws ValueException
String getCreateParams ()

Static Public Member Functions

ValueShort convertNumber (long n) throws ValueException
 Utility method to help convert numbers to SMALLINTs.

ValueShort convertNumber (float n) throws ValueException
 Utility method to help convert floats to SMALLINT.

ValueShort convertNumber (double n) throws ValueException
 Utility method to help convert doubles to SMALLINTs.


Static Public Attributes

final TypeSmallInt typeSmallInt = new TypeSmallInt()


Constructor & Destructor Documentation

com.quadcap.sql.types.TypeSmallInt.TypeSmallInt  ) 
 

Definition at line 60 of file TypeSmallInt.java.


Member Function Documentation

Value com.quadcap.sql.types.TypeSmallInt.convert Value  v  )  throws ValueException
 

Implements com.quadcap.sql.types.Type.

Definition at line 104 of file TypeSmallInt.java.

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

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

ValueShort com.quadcap.sql.types.TypeSmallInt.convertNumber double  n  )  throws ValueException [static]
 

Utility method to help convert doubles to SMALLINTs.

Definition at line 131 of file TypeSmallInt.java.

ValueShort com.quadcap.sql.types.TypeSmallInt.convertNumber float  n  )  throws ValueException [static]
 

Utility method to help convert floats to SMALLINT.

Definition at line 121 of file TypeSmallInt.java.

ValueShort com.quadcap.sql.types.TypeSmallInt.convertNumber long  n  )  throws ValueException [static]
 

Utility method to help convert numbers to SMALLINTs.

Definition at line 111 of file TypeSmallInt.java.

References com.quadcap.sql.types.TypeSmallInt.convertNumber().

Referenced by com.quadcap.sql.types.TypeSmallInt.convertNumber().

String com.quadcap.sql.types.TypeSmallInt.getCreateParams  ) 
 

Implements com.quadcap.sql.types.Type.

Definition at line 138 of file TypeSmallInt.java.

int com.quadcap.sql.types.TypeSmallInt.getDisplayWidth  ) 
 

Implements com.quadcap.sql.types.Type.

Definition at line 88 of file TypeSmallInt.java.

String com.quadcap.sql.types.TypeSmallInt.getJDBCClassName  ) 
 

Implements com.quadcap.sql.types.Type.

Definition at line 68 of file TypeSmallInt.java.

int com.quadcap.sql.types.TypeSmallInt.getJDBCType  ) 
 

Implements com.quadcap.sql.types.Type.

Definition at line 66 of file TypeSmallInt.java.

int com.quadcap.sql.types.TypeSmallInt.getMaxPrecision  ) 
 

Implements com.quadcap.sql.types.Type.

Definition at line 74 of file TypeSmallInt.java.

int com.quadcap.sql.types.TypeSmallInt.getMaxScale  ) 
 

Implements com.quadcap.sql.types.Type.

Definition at line 78 of file TypeSmallInt.java.

int com.quadcap.sql.types.TypeSmallInt.getMinScale  ) 
 

Implements com.quadcap.sql.types.Type.

Definition at line 76 of file TypeSmallInt.java.

int com.quadcap.sql.types.TypeSmallInt.getPrecision  ) 
 

Implements com.quadcap.sql.types.Type.

Definition at line 70 of file TypeSmallInt.java.

int com.quadcap.sql.types.TypeSmallInt.getScale  ) 
 

Implements com.quadcap.sql.types.Type.

Definition at line 72 of file TypeSmallInt.java.

String com.quadcap.sql.types.TypeSmallInt.getTypeName  ) 
 

Implements com.quadcap.sql.types.Type.

Definition at line 62 of file TypeSmallInt.java.

boolean com.quadcap.sql.types.TypeSmallInt.isCaseSensitive  ) 
 

Implements com.quadcap.sql.types.Type.

Definition at line 82 of file TypeSmallInt.java.

boolean com.quadcap.sql.types.TypeSmallInt.isCharType  ) 
 

Implements com.quadcap.sql.types.Type.

Definition at line 80 of file TypeSmallInt.java.

boolean com.quadcap.sql.types.TypeSmallInt.isCurrency  ) 
 

Implements com.quadcap.sql.types.Type.

Definition at line 84 of file TypeSmallInt.java.

boolean com.quadcap.sql.types.TypeSmallInt.isSigned  ) 
 

Implements com.quadcap.sql.types.Type.

Definition at line 86 of file TypeSmallInt.java.

void com.quadcap.sql.types.TypeSmallInt.readExternal ObjectInput  in  ) 
 

We don't bother serializing the data, since Java serialization is only used for the type portion of a table column.

Definition at line 98 of file TypeSmallInt.java.

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

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

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

Definition at line 90 of file TypeSmallInt.java.

void com.quadcap.sql.types.TypeSmallInt.writeExternal ObjectOutput  out  ) 
 

Definition at line 101 of file TypeSmallInt.java.

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

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


Member Data Documentation

final TypeSmallInt com.quadcap.sql.types.TypeSmallInt.typeSmallInt = new TypeSmallInt() [static]
 

Definition at line 58 of file TypeSmallInt.java.