OmniSciDB  c07336695a
com.omnisci.jdbc.OmniSciResultSetMetaData Class Reference
+ Inheritance diagram for com.omnisci.jdbc.OmniSciResultSetMetaData:
+ Collaboration diagram for com.omnisci.jdbc.OmniSciResultSetMetaData:

Public Member Functions

 OmniSciResultSetMetaData (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(OmniSciResultSetMetaData.class)
 

Detailed Description

Author
michael

Definition at line 32 of file OmniSciResultSetMetaData.java.

Constructor & Destructor Documentation

◆ OmniSciResultSetMetaData()

com.omnisci.jdbc.OmniSciResultSetMetaData.OmniSciResultSetMetaData ( TQueryResult  sqlResult,
String  sql 
)
inline

Member Function Documentation

◆ getCatalogName()

String com.omnisci.jdbc.OmniSciResultSetMetaData.getCatalogName ( int  column) throws SQLException
inline

Definition at line 130 of file OmniSciResultSetMetaData.java.

131  { // logger.debug("Entered "+ sql );
132  return null;
133  }

◆ getColumnClassName()

String com.omnisci.jdbc.OmniSciResultSetMetaData.getColumnClassName ( int  column) throws SQLException
inline

Definition at line 168 of file OmniSciResultSetMetaData.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  }

◆ getColumnCount()

int com.omnisci.jdbc.OmniSciResultSetMetaData.getColumnCount ( ) throws SQLException
inline

Definition at line 43 of file OmniSciResultSetMetaData.java.

43  { // logger.debug("Entered "+ sql );
44  return sqlResult.row_set.row_desc.size();
45  }

◆ getColumnDisplaySize()

int com.omnisci.jdbc.OmniSciResultSetMetaData.getColumnDisplaySize ( int  column) throws SQLException
inline

Definition at line 87 of file OmniSciResultSetMetaData.java.

88  { // logger.debug("Entered "+ sql );
89  return 100;
90  }

◆ getColumnLabel()

String com.omnisci.jdbc.OmniSciResultSetMetaData.getColumnLabel ( int  column) throws SQLException
inline

Definition at line 93 of file OmniSciResultSetMetaData.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  }

◆ getColumnName()

String com.omnisci.jdbc.OmniSciResultSetMetaData.getColumnName ( int  column) throws SQLException
inline

Definition at line 101 of file OmniSciResultSetMetaData.java.

102  { // logger.debug("Entered "+ sql );
103  return sqlResult.row_set.row_desc.get(column - 1).getCol_name();
104  }

◆ getColumnType()

int com.omnisci.jdbc.OmniSciResultSetMetaData.getColumnType ( int  column) throws SQLException
inline

Definition at line 136 of file OmniSciResultSetMetaData.java.

References com.omnisci.jdbc.OmniSciType.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 OmniSciType.toJava(type);
141  }
+ Here is the call graph for this function:

◆ getColumnTypeName()

String com.omnisci.jdbc.OmniSciResultSetMetaData.getColumnTypeName ( int  column) throws SQLException
inline

Definition at line 144 of file OmniSciResultSetMetaData.java.

145  { // logger.debug("Entered "+ sql );
146  return sqlResult.row_set.row_desc.get(column - 1).col_type.type.name();
147  }

◆ getPrecision()

int com.omnisci.jdbc.OmniSciResultSetMetaData.getPrecision ( int  column) throws SQLException
inline

Definition at line 113 of file OmniSciResultSetMetaData.java.

114  { // logger.debug("Entered "+ sql );
115  return sqlResult.row_set.row_desc.get(column - 1).col_type.precision;
116  }

◆ getScale()

int com.omnisci.jdbc.OmniSciResultSetMetaData.getScale ( int  column) throws SQLException
inline

Definition at line 119 of file OmniSciResultSetMetaData.java.

119  { // logger.debug("Entered "+ sql );
120  return sqlResult.row_set.row_desc.get(column - 1).col_type.scale;
121  }

◆ getSchemaName()

String com.omnisci.jdbc.OmniSciResultSetMetaData.getSchemaName ( int  column) throws SQLException
inline

Definition at line 107 of file OmniSciResultSetMetaData.java.

108  { // logger.debug("Entered "+ sql );
109  return null;
110  }

◆ getTableName()

String com.omnisci.jdbc.OmniSciResultSetMetaData.getTableName ( int  column) throws SQLException
inline

Definition at line 124 of file OmniSciResultSetMetaData.java.

125  { // logger.debug("Entered "+ sql );
126  return "tableName??";
127  }

◆ isAutoIncrement()

boolean com.omnisci.jdbc.OmniSciResultSetMetaData.isAutoIncrement ( int  column) throws SQLException
inline

Definition at line 48 of file OmniSciResultSetMetaData.java.

49  { // logger.debug("Entered "+ sql );
50  // logger.debug("returning false");
51  return false;
52  }

◆ isCaseSensitive()

boolean com.omnisci.jdbc.OmniSciResultSetMetaData.isCaseSensitive ( int  column) throws SQLException
inline

Definition at line 55 of file OmniSciResultSetMetaData.java.

56  { // logger.debug("Entered "+ sql );
57  return true;
58  }

◆ isCurrency()

boolean com.omnisci.jdbc.OmniSciResultSetMetaData.isCurrency ( int  column) throws SQLException
inline

Definition at line 67 of file OmniSciResultSetMetaData.java.

68  { // logger.debug("Entered "+ sql );
69  return false;
70  }

◆ isDefinitelyWritable()

boolean com.omnisci.jdbc.OmniSciResultSetMetaData.isDefinitelyWritable ( int  column) throws SQLException
inline

Definition at line 162 of file OmniSciResultSetMetaData.java.

163  { // logger.debug("Entered "+ sql );
164  return false;
165  }

◆ isNullable()

int com.omnisci.jdbc.OmniSciResultSetMetaData.isNullable ( int  column) throws SQLException
inline

Definition at line 73 of file OmniSciResultSetMetaData.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  }

◆ isReadOnly()

boolean com.omnisci.jdbc.OmniSciResultSetMetaData.isReadOnly ( int  column) throws SQLException
inline

Definition at line 150 of file OmniSciResultSetMetaData.java.

151  { // logger.debug("Entered "+ sql );
152  return true;
153  }

◆ isSearchable()

boolean com.omnisci.jdbc.OmniSciResultSetMetaData.isSearchable ( int  column) throws SQLException
inline

Definition at line 61 of file OmniSciResultSetMetaData.java.

62  { // logger.debug("Entered "+ sql );
63  return false;
64  }

◆ isSigned()

boolean com.omnisci.jdbc.OmniSciResultSetMetaData.isSigned ( int  column) throws SQLException
inline

Definition at line 81 of file OmniSciResultSetMetaData.java.

82  { // logger.debug("Entered "+ sql );
83  return true;
84  }

◆ isWrapperFor()

boolean com.omnisci.jdbc.OmniSciResultSetMetaData.isWrapperFor ( Class<?>  iface) throws SQLException
inline

Definition at line 186 of file OmniSciResultSetMetaData.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  }

◆ isWritable()

boolean com.omnisci.jdbc.OmniSciResultSetMetaData.isWritable ( int  column) throws SQLException
inline

Definition at line 156 of file OmniSciResultSetMetaData.java.

157  { // logger.debug("Entered "+ sql );
158  return false;
159  }

◆ unwrap()

public<T> T com.omnisci.jdbc.OmniSciResultSetMetaData.unwrap ( Class< T >  iface) throws SQLException
inlinepackage

Definition at line 177 of file OmniSciResultSetMetaData.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

◆ logger

final Logger com.omnisci.jdbc.OmniSciResultSetMetaData.logger = LoggerFactory.getLogger(OmniSciResultSetMetaData.class)
staticpackage

Definition at line 33 of file OmniSciResultSetMetaData.java.

◆ sql

final String com.omnisci.jdbc.OmniSciResultSetMetaData.sql
package

◆ sqlResult

final TQueryResult com.omnisci.jdbc.OmniSciResultSetMetaData.sqlResult
package

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