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

Public Member Functions

 HeavyAIResultSetMetaData (TQueryResult sqlResult, String sql)
 
int getColumnCount () throws SQLException
 
boolean isAutoIncrement (int column) throws SQLException
 
boolean isCaseSensitive (int column) throws SQLException
 
boolean isSearchable (int column) throws SQLException
 
boolean isCurrency (int column) throws SQLException
 
int isNullable (int column) throws SQLException
 
boolean isSigned (int column) throws SQLException
 
int getColumnDisplaySize (int column) throws SQLException
 
String getColumnLabel (int column) throws SQLException
 
String getColumnName (int column) throws SQLException
 
String getSchemaName (int column) throws SQLException
 
int getPrecision (int column) throws SQLException
 
int getScale (int column) throws SQLException
 
String getTableName (int column) throws SQLException
 
String getCatalogName (int column) throws SQLException
 
int getColumnType (int column) throws SQLException
 
String getColumnTypeName (int column) throws SQLException
 
boolean isReadOnly (int column) throws SQLException
 
boolean isWritable (int column) throws SQLException
 
boolean isDefinitelyWritable (int column) throws SQLException
 
String getColumnClassName (int column) throws SQLException
 
boolean isWrapperFor (Class<?> iface) throws SQLException
 

Package Functions

public< T > T unwrap (Class< T > iface) throws SQLException
 

Package Attributes

final TQueryResult sqlResult
 
final String sql
 

Static Package Attributes

static final Logger logger = LoggerFactory.getLogger(HeavyAIResultSetMetaData.class)
 

Detailed Description

Definition at line 28 of file HeavyAIResultSetMetaData.java.

Constructor & Destructor Documentation

ai.heavy.jdbc.HeavyAIResultSetMetaData.HeavyAIResultSetMetaData ( TQueryResult  sqlResult,
String  sql 
)
inline

Member Function Documentation

String ai.heavy.jdbc.HeavyAIResultSetMetaData.getCatalogName ( int  column) throws SQLException
inline

Definition at line 126 of file HeavyAIResultSetMetaData.java.

127  { // logger.debug("Entered "+ sql );
128  return null;
129  }
String ai.heavy.jdbc.HeavyAIResultSetMetaData.getColumnClassName ( int  column) throws SQLException
inline

Definition at line 164 of file HeavyAIResultSetMetaData.java.

165  { // logger.debug("Entered "+ sql );
166  throw new UnsupportedOperationException("Not supported yet,"
167  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
168  + " class:" + new Throwable().getStackTrace()[0].getClassName()
169  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
170  }
int ai.heavy.jdbc.HeavyAIResultSetMetaData.getColumnCount ( ) throws SQLException
inline

Definition at line 39 of file HeavyAIResultSetMetaData.java.

39  { // logger.debug("Entered "+ sql );
40  return sqlResult.row_set.row_desc.size();
41  }
int ai.heavy.jdbc.HeavyAIResultSetMetaData.getColumnDisplaySize ( int  column) throws SQLException
inline

Definition at line 83 of file HeavyAIResultSetMetaData.java.

84  { // logger.debug("Entered "+ sql );
85  return 100;
86  }
String ai.heavy.jdbc.HeavyAIResultSetMetaData.getColumnLabel ( int  column) throws SQLException
inline

Definition at line 89 of file HeavyAIResultSetMetaData.java.

90  { // logger.debug("Entered "+ sql );
91  // logger.debug("ColumnLabel is "+ sqlResult.row_set.row_desc.get(column
92  // -1).col_name);
93  return sqlResult.row_set.row_desc.get(column - 1).col_name;
94  }
String ai.heavy.jdbc.HeavyAIResultSetMetaData.getColumnName ( int  column) throws SQLException
inline

Definition at line 97 of file HeavyAIResultSetMetaData.java.

98  { // logger.debug("Entered "+ sql );
99  return sqlResult.row_set.row_desc.get(column - 1).getCol_name();
100  }
int ai.heavy.jdbc.HeavyAIResultSetMetaData.getColumnType ( int  column) throws SQLException
inline

Definition at line 132 of file HeavyAIResultSetMetaData.java.

References ai.heavy.jdbc.HeavyAIType.toJava(), and run_benchmark_import.type.

133  { // logger.debug("Entered "+ sql );
134  TDatumType type = sqlResult.row_set.row_desc.get(column - 1).col_type.type;
135 
136  return HeavyAIType.toJava(type);
137  }

+ Here is the call graph for this function:

String ai.heavy.jdbc.HeavyAIResultSetMetaData.getColumnTypeName ( int  column) throws SQLException
inline

Definition at line 140 of file HeavyAIResultSetMetaData.java.

141  { // logger.debug("Entered "+ sql );
142  return sqlResult.row_set.row_desc.get(column - 1).col_type.type.name();
143  }
int ai.heavy.jdbc.HeavyAIResultSetMetaData.getPrecision ( int  column) throws SQLException
inline

Definition at line 109 of file HeavyAIResultSetMetaData.java.

110  { // logger.debug("Entered "+ sql );
111  return sqlResult.row_set.row_desc.get(column - 1).col_type.precision;
112  }
int ai.heavy.jdbc.HeavyAIResultSetMetaData.getScale ( int  column) throws SQLException
inline

Definition at line 115 of file HeavyAIResultSetMetaData.java.

115  { // logger.debug("Entered "+ sql );
116  return sqlResult.row_set.row_desc.get(column - 1).col_type.scale;
117  }
String ai.heavy.jdbc.HeavyAIResultSetMetaData.getSchemaName ( int  column) throws SQLException
inline

Definition at line 103 of file HeavyAIResultSetMetaData.java.

104  { // logger.debug("Entered "+ sql );
105  return null;
106  }
String ai.heavy.jdbc.HeavyAIResultSetMetaData.getTableName ( int  column) throws SQLException
inline

Definition at line 120 of file HeavyAIResultSetMetaData.java.

121  { // logger.debug("Entered "+ sql );
122  return "tableName??";
123  }
boolean ai.heavy.jdbc.HeavyAIResultSetMetaData.isAutoIncrement ( int  column) throws SQLException
inline

Definition at line 44 of file HeavyAIResultSetMetaData.java.

45  { // logger.debug("Entered "+ sql );
46  // logger.debug("returning false");
47  return false;
48  }
boolean ai.heavy.jdbc.HeavyAIResultSetMetaData.isCaseSensitive ( int  column) throws SQLException
inline

Definition at line 51 of file HeavyAIResultSetMetaData.java.

52  { // logger.debug("Entered "+ sql );
53  return true;
54  }
boolean ai.heavy.jdbc.HeavyAIResultSetMetaData.isCurrency ( int  column) throws SQLException
inline

Definition at line 63 of file HeavyAIResultSetMetaData.java.

64  { // logger.debug("Entered "+ sql );
65  return false;
66  }
boolean ai.heavy.jdbc.HeavyAIResultSetMetaData.isDefinitelyWritable ( int  column) throws SQLException
inline

Definition at line 158 of file HeavyAIResultSetMetaData.java.

159  { // logger.debug("Entered "+ sql );
160  return false;
161  }
int ai.heavy.jdbc.HeavyAIResultSetMetaData.isNullable ( int  column) throws SQLException
inline

Definition at line 69 of file HeavyAIResultSetMetaData.java.

70  { // logger.debug("Entered "+ sql );
71  return sqlResult.row_set.row_desc.get(column - 1).col_type.nullable
72  ? DatabaseMetaData.columnNullable
73  : DatabaseMetaData.columnNoNulls;
74  }
boolean ai.heavy.jdbc.HeavyAIResultSetMetaData.isReadOnly ( int  column) throws SQLException
inline

Definition at line 146 of file HeavyAIResultSetMetaData.java.

147  { // logger.debug("Entered "+ sql );
148  return true;
149  }
boolean ai.heavy.jdbc.HeavyAIResultSetMetaData.isSearchable ( int  column) throws SQLException
inline

Definition at line 57 of file HeavyAIResultSetMetaData.java.

58  { // logger.debug("Entered "+ sql );
59  return false;
60  }
boolean ai.heavy.jdbc.HeavyAIResultSetMetaData.isSigned ( int  column) throws SQLException
inline

Definition at line 77 of file HeavyAIResultSetMetaData.java.

78  { // logger.debug("Entered "+ sql );
79  return true;
80  }
boolean ai.heavy.jdbc.HeavyAIResultSetMetaData.isWrapperFor ( Class<?>  iface) throws SQLException
inline

Definition at line 182 of file HeavyAIResultSetMetaData.java.

183  { // logger.debug("Entered "+ sql );
184  throw new UnsupportedOperationException("Not supported yet,"
185  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
186  + " class:" + new Throwable().getStackTrace()[0].getClassName()
187  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
188  }
boolean ai.heavy.jdbc.HeavyAIResultSetMetaData.isWritable ( int  column) throws SQLException
inline

Definition at line 152 of file HeavyAIResultSetMetaData.java.

153  { // logger.debug("Entered "+ sql );
154  return false;
155  }
public<T> T ai.heavy.jdbc.HeavyAIResultSetMetaData.unwrap ( Class< T >  iface) throws SQLException
inlinepackage

Definition at line 173 of file HeavyAIResultSetMetaData.java.

174  { // logger.debug("Entered "+ sql );
175  throw new UnsupportedOperationException("Not supported yet,"
176  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
177  + " class:" + new Throwable().getStackTrace()[0].getClassName()
178  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
179  }

Member Data Documentation

final Logger ai.heavy.jdbc.HeavyAIResultSetMetaData.logger = LoggerFactory.getLogger(HeavyAIResultSetMetaData.class)
staticpackage

Definition at line 29 of file HeavyAIResultSetMetaData.java.

final TQueryResult ai.heavy.jdbc.HeavyAIResultSetMetaData.sqlResult
package

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