OmniSciDB  085a039ca4
 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

Author
michael

Definition at line 32 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 130 of file HeavyAIResultSetMetaData.java.

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

Definition at line 168 of file HeavyAIResultSetMetaData.java.

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

Definition at line 43 of file HeavyAIResultSetMetaData.java.

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

Definition at line 87 of file HeavyAIResultSetMetaData.java.

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

Definition at line 93 of file HeavyAIResultSetMetaData.java.

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

Definition at line 101 of file HeavyAIResultSetMetaData.java.

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

Definition at line 136 of file HeavyAIResultSetMetaData.java.

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

137  { // logger.debug("Entered "+ sql );
138  TDatumType type = sqlResult.row_set.row_desc.get(column - 1).col_type.type;
139 
140  return HeavyAIType.toJava(type);
141  }

+ Here is the call graph for this function:

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

Definition at line 144 of file HeavyAIResultSetMetaData.java.

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

Definition at line 113 of file HeavyAIResultSetMetaData.java.

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

Definition at line 119 of file HeavyAIResultSetMetaData.java.

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

Definition at line 107 of file HeavyAIResultSetMetaData.java.

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

Definition at line 124 of file HeavyAIResultSetMetaData.java.

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

Definition at line 48 of file HeavyAIResultSetMetaData.java.

49  { // logger.debug("Entered "+ sql );
50  // logger.debug("returning false");
51  return false;
52  }
boolean ai.heavy.jdbc.HeavyAIResultSetMetaData.isCaseSensitive ( int  column) throws SQLException
inline

Definition at line 55 of file HeavyAIResultSetMetaData.java.

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

Definition at line 67 of file HeavyAIResultSetMetaData.java.

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

Definition at line 162 of file HeavyAIResultSetMetaData.java.

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

Definition at line 73 of file HeavyAIResultSetMetaData.java.

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

Definition at line 150 of file HeavyAIResultSetMetaData.java.

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

Definition at line 61 of file HeavyAIResultSetMetaData.java.

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

Definition at line 81 of file HeavyAIResultSetMetaData.java.

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

Definition at line 186 of file HeavyAIResultSetMetaData.java.

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

Definition at line 156 of file HeavyAIResultSetMetaData.java.

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

Definition at line 177 of file HeavyAIResultSetMetaData.java.

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

Member Data Documentation

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

Definition at line 33 of file HeavyAIResultSetMetaData.java.

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

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