OmniSciDB  b24e664e58
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
com.omnisci.jdbc.OmniSciType Class Reference

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 MapdType (String tn, int dt)
 

Static Package Functions

static int toJava (TDatumType type)
 

Detailed Description

Author
michael

Definition at line 26 of file OmniSciType.java.

Member Function Documentation

void com.omnisci.jdbc.OmniSciType.MapdType ( String  tn,
int  dt 
)
inlinepackage

Definition at line 58 of file OmniSciType.java.

References com.omnisci.jdbc.OmniSciType.autoIncrement, com.omnisci.jdbc.OmniSciType.caseSensitive, com.omnisci.jdbc.OmniSciType.createParams, com.omnisci.jdbc.OmniSciType.dataType, com.omnisci.jdbc.OmniSciType.fixedPrecScale, com.omnisci.jdbc.OmniSciType.literalPrefix, com.omnisci.jdbc.OmniSciType.literalSuffix, com.omnisci.jdbc.OmniSciType.localTypeName, com.omnisci.jdbc.OmniSciType.maximumScale, com.omnisci.jdbc.OmniSciType.minimumScale, com.omnisci.jdbc.OmniSciType.nullable, com.omnisci.jdbc.OmniSciType.numPrecRadix, com.omnisci.jdbc.OmniSciType.precision, com.omnisci.jdbc.OmniSciType.searchable, com.omnisci.jdbc.OmniSciType.SqlDataType, com.omnisci.jdbc.OmniSciType.SqlDatetimeSub, com.omnisci.jdbc.OmniSciType.typeName, and com.omnisci.jdbc.OmniSciType.unsignedAttribute.

58  {
59  typeName = tn;
60  dataType = dt;
61  precision = 10;
62  literalPrefix = null;
63  literalSuffix = null;
64  createParams = null;
65  nullable = DatabaseMetaData.typeNullable;
66  caseSensitive = true;
67  searchable = DatabaseMetaData.typeSearchable;
68  unsignedAttribute = false;
69  fixedPrecScale = false;
70  autoIncrement = false;
71  localTypeName = tn;
72  minimumScale = 1;
73  maximumScale = 20;
74  SqlDataType = 0;
75  SqlDatetimeSub = 0;
76  numPrecRadix = 10;
77  }
static int com.omnisci.jdbc.OmniSciType.toJava ( TDatumType  type)
inlinestaticpackage

Definition at line 79 of file OmniSciType.java.

Referenced by com.omnisci.jdbc.OmniSciDatabaseMetaData.getColumns(), and com.omnisci.jdbc.OmniSciResultSetMetaData.getColumnType().

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

+ Here is the caller graph for this function:

Member Data Documentation

boolean com.omnisci.jdbc.OmniSciType.autoIncrement
protected

Definition at line 49 of file OmniSciType.java.

Referenced by com.omnisci.jdbc.OmniSciType.MapdType().

boolean com.omnisci.jdbc.OmniSciType.caseSensitive
protected

Definition at line 40 of file OmniSciType.java.

Referenced by com.omnisci.jdbc.OmniSciType.MapdType().

String com.omnisci.jdbc.OmniSciType.createParams
protected

Definition at line 35 of file OmniSciType.java.

Referenced by com.omnisci.jdbc.OmniSciType.MapdType().

int com.omnisci.jdbc.OmniSciType.dataType
protected

Definition at line 28 of file OmniSciType.java.

Referenced by com.omnisci.jdbc.OmniSciType.MapdType().

boolean com.omnisci.jdbc.OmniSciType.fixedPrecScale
protected

Definition at line 47 of file OmniSciType.java.

Referenced by com.omnisci.jdbc.OmniSciType.MapdType().

String com.omnisci.jdbc.OmniSciType.literalPrefix
protected

Definition at line 31 of file OmniSciType.java.

Referenced by com.omnisci.jdbc.OmniSciType.MapdType().

String com.omnisci.jdbc.OmniSciType.literalSuffix
protected

Definition at line 33 of file OmniSciType.java.

Referenced by com.omnisci.jdbc.OmniSciType.MapdType().

String com.omnisci.jdbc.OmniSciType.localTypeName
protected

Definition at line 51 of file OmniSciType.java.

Referenced by com.omnisci.jdbc.OmniSciType.MapdType().

short com.omnisci.jdbc.OmniSciType.maximumScale
protected

Definition at line 53 of file OmniSciType.java.

Referenced by com.omnisci.jdbc.OmniSciType.MapdType().

short com.omnisci.jdbc.OmniSciType.minimumScale
protected

Definition at line 52 of file OmniSciType.java.

Referenced by com.omnisci.jdbc.OmniSciType.MapdType().

short com.omnisci.jdbc.OmniSciType.nullable
protected

Definition at line 36 of file OmniSciType.java.

Referenced by com.omnisci.jdbc.OmniSciType.MapdType().

int com.omnisci.jdbc.OmniSciType.numPrecRadix
protected

Definition at line 56 of file OmniSciType.java.

Referenced by com.omnisci.jdbc.OmniSciType.MapdType().

int com.omnisci.jdbc.OmniSciType.precision
protected

Definition at line 29 of file OmniSciType.java.

Referenced by com.omnisci.jdbc.OmniSciType.MapdType().

short com.omnisci.jdbc.OmniSciType.searchable
protected

Definition at line 41 of file OmniSciType.java.

Referenced by com.omnisci.jdbc.OmniSciType.MapdType().

int com.omnisci.jdbc.OmniSciType.SqlDataType
protected

Definition at line 54 of file OmniSciType.java.

Referenced by com.omnisci.jdbc.OmniSciType.MapdType().

int com.omnisci.jdbc.OmniSciType.SqlDatetimeSub
protected

Definition at line 55 of file OmniSciType.java.

Referenced by com.omnisci.jdbc.OmniSciType.MapdType().

String com.omnisci.jdbc.OmniSciType.typeName
protected

Definition at line 27 of file OmniSciType.java.

Referenced by com.omnisci.jdbc.OmniSciType.MapdType().

boolean com.omnisci.jdbc.OmniSciType.unsignedAttribute
protected

Definition at line 46 of file OmniSciType.java.

Referenced by com.omnisci.jdbc.OmniSciType.MapdType().


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