OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ai.heavy.jdbc.HeavyAIType Class Reference
+ Collaboration diagram for ai.heavy.jdbc.HeavyAIType:

Protected Attributes

String typeName
 
int dataType
 
int precision
 
String literalPrefix
 
String literalSuffix
 
String createParams
 
short nullable
 
boolean caseSensitive
 
short searchable
 
boolean unsignedAttribute
 
boolean fixedPrecScale
 
boolean autoIncrement
 
String localTypeName
 
short minimumScale
 
short maximumScale
 
int SqlDataType
 
int SqlDatetimeSub
 
int numPrecRadix
 

Package Functions

void HeavyAIType (String tn, int dt)
 

Static Package Functions

static int toJava (TDatumType type)
 

Detailed Description

Definition at line 23 of file HeavyAIType.java.

Constructor & Destructor Documentation

void ai.heavy.jdbc.HeavyAIType.HeavyAIType ( String  tn,
int  dt 
)
inlinepackage

Definition at line 55 of file HeavyAIType.java.

References ai.heavy.jdbc.HeavyAIType.autoIncrement, ai.heavy.jdbc.HeavyAIType.caseSensitive, ai.heavy.jdbc.HeavyAIType.createParams, ai.heavy.jdbc.HeavyAIType.dataType, ai.heavy.jdbc.HeavyAIType.fixedPrecScale, ai.heavy.jdbc.HeavyAIType.literalPrefix, ai.heavy.jdbc.HeavyAIType.literalSuffix, ai.heavy.jdbc.HeavyAIType.localTypeName, ai.heavy.jdbc.HeavyAIType.maximumScale, ai.heavy.jdbc.HeavyAIType.minimumScale, ai.heavy.jdbc.HeavyAIType.nullable, ai.heavy.jdbc.HeavyAIType.numPrecRadix, ai.heavy.jdbc.HeavyAIType.precision, ai.heavy.jdbc.HeavyAIType.searchable, ai.heavy.jdbc.HeavyAIType.SqlDataType, ai.heavy.jdbc.HeavyAIType.SqlDatetimeSub, ai.heavy.jdbc.HeavyAIType.typeName, and ai.heavy.jdbc.HeavyAIType.unsignedAttribute.

55  {
56  typeName = tn;
57  dataType = dt;
58  precision = 10;
59  literalPrefix = null;
60  literalSuffix = null;
61  createParams = null;
62  nullable = DatabaseMetaData.typeNullable;
63  caseSensitive = true;
64  searchable = DatabaseMetaData.typeSearchable;
65  unsignedAttribute = false;
66  fixedPrecScale = false;
67  autoIncrement = false;
68  localTypeName = tn;
69  minimumScale = 1;
70  maximumScale = 20;
71  SqlDataType = 0;
72  SqlDatetimeSub = 0;
73  numPrecRadix = 10;
74  }

Member Function Documentation

static int ai.heavy.jdbc.HeavyAIType.toJava ( TDatumType  type)
inlinestaticpackage

Definition at line 76 of file HeavyAIType.java.

Referenced by ai.heavy.jdbc.HeavyAIDatabaseMetaData.getColumns(), and ai.heavy.jdbc.HeavyAIResultSetMetaData.getColumnType().

76  {
77  switch (type) {
78  case TINYINT:
79  return java.sql.Types.TINYINT;
80  case SMALLINT:
81  return java.sql.Types.SMALLINT;
82  case INT:
83  return java.sql.Types.INTEGER;
84  case BIGINT:
85  return java.sql.Types.BIGINT;
86  case FLOAT:
87  return java.sql.Types.FLOAT;
88  case DECIMAL:
89  return java.sql.Types.DECIMAL;
90  case DOUBLE:
91  return java.sql.Types.DOUBLE;
92  case STR:
93  return java.sql.Types.VARCHAR;
94  case TIME:
95  return java.sql.Types.TIME;
96  case TIMESTAMP:
97  return java.sql.Types.TIMESTAMP;
98  case DATE:
99  return java.sql.Types.DATE;
100  case BOOL:
101  return java.sql.Types.BOOLEAN;
102  case POINT:
103  case MULTIPOINT:
104  case POLYGON:
105  case MULTIPOLYGON:
106  case LINESTRING:
107  case MULTILINESTRING:
108  return java.sql.Types.OTHER;
109  default:
110  throw new AssertionError(type.name());
111  }
112  }

+ Here is the caller graph for this function:

Member Data Documentation

boolean ai.heavy.jdbc.HeavyAIType.autoIncrement
protected

Definition at line 46 of file HeavyAIType.java.

Referenced by ai.heavy.jdbc.HeavyAIType.HeavyAIType().

boolean ai.heavy.jdbc.HeavyAIType.caseSensitive
protected

Definition at line 37 of file HeavyAIType.java.

Referenced by ai.heavy.jdbc.HeavyAIType.HeavyAIType().

String ai.heavy.jdbc.HeavyAIType.createParams
protected

Definition at line 32 of file HeavyAIType.java.

Referenced by ai.heavy.jdbc.HeavyAIType.HeavyAIType().

int ai.heavy.jdbc.HeavyAIType.dataType
protected

Definition at line 25 of file HeavyAIType.java.

Referenced by ai.heavy.jdbc.HeavyAIType.HeavyAIType().

boolean ai.heavy.jdbc.HeavyAIType.fixedPrecScale
protected

Definition at line 44 of file HeavyAIType.java.

Referenced by ai.heavy.jdbc.HeavyAIType.HeavyAIType().

String ai.heavy.jdbc.HeavyAIType.literalPrefix
protected

Definition at line 28 of file HeavyAIType.java.

Referenced by ai.heavy.jdbc.HeavyAIType.HeavyAIType().

String ai.heavy.jdbc.HeavyAIType.literalSuffix
protected

Definition at line 30 of file HeavyAIType.java.

Referenced by ai.heavy.jdbc.HeavyAIType.HeavyAIType().

String ai.heavy.jdbc.HeavyAIType.localTypeName
protected

Definition at line 48 of file HeavyAIType.java.

Referenced by ai.heavy.jdbc.HeavyAIType.HeavyAIType().

short ai.heavy.jdbc.HeavyAIType.maximumScale
protected

Definition at line 50 of file HeavyAIType.java.

Referenced by ai.heavy.jdbc.HeavyAIType.HeavyAIType().

short ai.heavy.jdbc.HeavyAIType.minimumScale
protected

Definition at line 49 of file HeavyAIType.java.

Referenced by ai.heavy.jdbc.HeavyAIType.HeavyAIType().

short ai.heavy.jdbc.HeavyAIType.nullable
protected
int ai.heavy.jdbc.HeavyAIType.numPrecRadix
protected

Definition at line 53 of file HeavyAIType.java.

Referenced by ai.heavy.jdbc.HeavyAIType.HeavyAIType().

int ai.heavy.jdbc.HeavyAIType.precision
protected
short ai.heavy.jdbc.HeavyAIType.searchable
protected

Definition at line 38 of file HeavyAIType.java.

Referenced by ai.heavy.jdbc.HeavyAIType.HeavyAIType().

int ai.heavy.jdbc.HeavyAIType.SqlDataType
protected

Definition at line 51 of file HeavyAIType.java.

Referenced by ai.heavy.jdbc.HeavyAIType.HeavyAIType().

int ai.heavy.jdbc.HeavyAIType.SqlDatetimeSub
protected

Definition at line 52 of file HeavyAIType.java.

Referenced by ai.heavy.jdbc.HeavyAIType.HeavyAIType().

String ai.heavy.jdbc.HeavyAIType.typeName
protected

Definition at line 24 of file HeavyAIType.java.

Referenced by ai.heavy.jdbc.HeavyAIType.HeavyAIType().

boolean ai.heavy.jdbc.HeavyAIType.unsignedAttribute
protected

Definition at line 43 of file HeavyAIType.java.

Referenced by ai.heavy.jdbc.HeavyAIType.HeavyAIType().


The documentation for this class was generated from the following file: