Quadcap Embeddable Database

com.quadcap.sql.types.TypeChar Class Reference

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

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

Detailed Description

The SQL CHAR type.

Author:
Stan Bailes

Definition at line 57 of file TypeChar.java.

Public Member Functions

 TypeChar ()
 TypeChar (int max)
String getTypeName ()
int getMax ()
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) throws IOException
 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) throws IOException
Value convert (Value v) throws ValueException
String getCreateParams ()

Static Public Attributes

final TypeChar typeChar = new TypeChar()

Package Attributes

int max


Constructor & Destructor Documentation

com.quadcap.sql.types.TypeChar.TypeChar  ) 
 

Definition at line 62 of file TypeChar.java.

com.quadcap.sql.types.TypeChar.TypeChar int  max  ) 
 

Definition at line 64 of file TypeChar.java.


Member Function Documentation

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

Implements com.quadcap.sql.types.Type.

Definition at line 121 of file TypeChar.java.

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

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

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

Implements com.quadcap.sql.types.Type.

Definition at line 125 of file TypeChar.java.

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

Implements com.quadcap.sql.types.Type.

Definition at line 96 of file TypeChar.java.

References com.quadcap.sql.types.TypeChar.max.

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

Implements com.quadcap.sql.types.Type.

Definition at line 76 of file TypeChar.java.

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

Implements com.quadcap.sql.types.Type.

Definition at line 74 of file TypeChar.java.

int com.quadcap.sql.types.TypeChar.getMax  ) 
 

Definition at line 72 of file TypeChar.java.

References com.quadcap.sql.types.TypeChar.max.

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

Implements com.quadcap.sql.types.Type.

Definition at line 82 of file TypeChar.java.

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

Implements com.quadcap.sql.types.Type.

Definition at line 86 of file TypeChar.java.

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

Implements com.quadcap.sql.types.Type.

Definition at line 84 of file TypeChar.java.

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

Implements com.quadcap.sql.types.Type.

Definition at line 78 of file TypeChar.java.

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

Implements com.quadcap.sql.types.Type.

Definition at line 80 of file TypeChar.java.

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

Implements com.quadcap.sql.types.Type.

Definition at line 68 of file TypeChar.java.

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

Implements com.quadcap.sql.types.Type.

Definition at line 90 of file TypeChar.java.

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

Implements com.quadcap.sql.types.Type.

Definition at line 88 of file TypeChar.java.

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

Implements com.quadcap.sql.types.Type.

Definition at line 92 of file TypeChar.java.

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

Implements com.quadcap.sql.types.Type.

Definition at line 94 of file TypeChar.java.

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

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

Definition at line 113 of file TypeChar.java.

References com.quadcap.sql.types.TypeChar.max, and com.quadcap.sql.types.TypeChar.readExternal().

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

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

Definition at line 98 of file TypeChar.java.

References com.quadcap.sql.types.TypeChar.max.

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

Definition at line 117 of file TypeChar.java.

References com.quadcap.sql.types.TypeChar.max, and com.quadcap.sql.types.TypeChar.writeExternal().

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


Member Data Documentation

int com.quadcap.sql.types.TypeChar.max [package]
 

Definition at line 60 of file TypeChar.java.

Referenced by com.quadcap.sql.types.TypeChar.getDisplayWidth(), com.quadcap.sql.types.TypeChar.getMax(), com.quadcap.sql.types.TypeChar.readExternal(), com.quadcap.sql.types.TypeChar.toString(), and com.quadcap.sql.types.TypeChar.writeExternal().

final TypeChar com.quadcap.sql.types.TypeChar.typeChar = new TypeChar() [static]
 

Definition at line 58 of file TypeChar.java.