OmniSciDB  85c2d10cdc
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
com.omnisci.jdbc.OmniSciDatabaseMetaData Class Reference
+ Inheritance diagram for com.omnisci.jdbc.OmniSciDatabaseMetaData:
+ Collaboration diagram for com.omnisci.jdbc.OmniSciDatabaseMetaData:

Public Member Functions

 OmniSciDatabaseMetaData (OmniSciConnection connection) throws SQLException
 
boolean allProceduresAreCallable () throws SQLException
 
boolean allTablesAreSelectable () throws SQLException
 
String getURL () throws SQLException
 
String getUserName () throws SQLException
 
boolean isReadOnly () throws SQLException
 
boolean nullsAreSortedHigh () throws SQLException
 
boolean nullsAreSortedLow () throws SQLException
 
boolean nullsAreSortedAtStart () throws SQLException
 
boolean nullsAreSortedAtEnd () throws SQLException
 
String getDatabaseProductName () throws SQLException
 
String getDatabaseProductVersion () throws SQLException
 
String getDriverName () throws SQLException
 
String getDriverVersion () throws SQLException
 
int getDriverMajorVersion ()
 
int getDriverMinorVersion ()
 
boolean usesLocalFiles () throws SQLException
 
boolean usesLocalFilePerTable () throws SQLException
 
boolean supportsMixedCaseIdentifiers () throws SQLException
 
boolean storesUpperCaseIdentifiers () throws SQLException
 
boolean storesLowerCaseIdentifiers () throws SQLException
 
boolean storesMixedCaseIdentifiers () throws SQLException
 
boolean supportsMixedCaseQuotedIdentifiers () throws SQLException
 
boolean storesUpperCaseQuotedIdentifiers () throws SQLException
 
boolean storesLowerCaseQuotedIdentifiers () throws SQLException
 
boolean storesMixedCaseQuotedIdentifiers () throws SQLException
 
String getIdentifierQuoteString () throws SQLException
 
String getSQLKeywords () throws SQLException
 
String getNumericFunctions () throws SQLException
 
String getStringFunctions () throws SQLException
 
String getSystemFunctions () throws SQLException
 
String getTimeDateFunctions () throws SQLException
 
String getSearchStringEscape () throws SQLException
 
String getExtraNameCharacters () throws SQLException
 
boolean supportsAlterTableWithAddColumn () throws SQLException
 
boolean supportsAlterTableWithDropColumn () throws SQLException
 
boolean supportsColumnAliasing () throws SQLException
 
boolean nullPlusNonNullIsNull () throws SQLException
 
boolean supportsConvert () throws SQLException
 
boolean supportsConvert (int fromType, int toType) throws SQLException
 
boolean supportsTableCorrelationNames () throws SQLException
 
boolean supportsDifferentTableCorrelationNames () throws SQLException
 
boolean supportsExpressionsInOrderBy () throws SQLException
 
boolean supportsOrderByUnrelated () throws SQLException
 
boolean supportsGroupBy () throws SQLException
 
boolean supportsGroupByUnrelated () throws SQLException
 
boolean supportsGroupByBeyondSelect () throws SQLException
 
boolean supportsLikeEscapeClause () throws SQLException
 
boolean supportsMultipleResultSets () throws SQLException
 
boolean supportsMultipleTransactions () throws SQLException
 
boolean supportsNonNullableColumns () throws SQLException
 
boolean supportsMinimumSQLGrammar () throws SQLException
 
boolean supportsCoreSQLGrammar () throws SQLException
 
boolean supportsExtendedSQLGrammar () throws SQLException
 
boolean supportsANSI92EntryLevelSQL () throws SQLException
 
boolean supportsANSI92IntermediateSQL () throws SQLException
 
boolean supportsANSI92FullSQL () throws SQLException
 
boolean supportsIntegrityEnhancementFacility () throws SQLException
 
boolean supportsOuterJoins () throws SQLException
 
boolean supportsFullOuterJoins () throws SQLException
 
boolean supportsLimitedOuterJoins () throws SQLException
 
String getSchemaTerm () throws SQLException
 
String getProcedureTerm () throws SQLException
 
String getCatalogTerm () throws SQLException
 
boolean isCatalogAtStart () throws SQLException
 
String getCatalogSeparator () throws SQLException
 
boolean supportsSchemasInDataManipulation () throws SQLException
 
boolean supportsSchemasInProcedureCalls () throws SQLException
 
boolean supportsSchemasInTableDefinitions () throws SQLException
 
boolean supportsSchemasInIndexDefinitions () throws SQLException
 
boolean supportsSchemasInPrivilegeDefinitions () throws SQLException
 
boolean supportsCatalogsInDataManipulation () throws SQLException
 
boolean supportsCatalogsInProcedureCalls () throws SQLException
 
boolean supportsCatalogsInTableDefinitions () throws SQLException
 
boolean supportsCatalogsInIndexDefinitions () throws SQLException
 
boolean supportsCatalogsInPrivilegeDefinitions () throws SQLException
 
boolean supportsPositionedDelete () throws SQLException
 
boolean supportsPositionedUpdate () throws SQLException
 
boolean supportsSelectForUpdate () throws SQLException
 
boolean supportsStoredProcedures () throws SQLException
 
boolean supportsSubqueriesInComparisons () throws SQLException
 
boolean supportsSubqueriesInExists () throws SQLException
 
boolean supportsSubqueriesInIns () throws SQLException
 
boolean supportsSubqueriesInQuantifieds () throws SQLException
 
boolean supportsCorrelatedSubqueries () throws SQLException
 
boolean supportsUnion () throws SQLException
 
boolean supportsUnionAll () throws SQLException
 
boolean supportsOpenCursorsAcrossCommit () throws SQLException
 
boolean supportsOpenCursorsAcrossRollback () throws SQLException
 
boolean supportsOpenStatementsAcrossCommit () throws SQLException
 
boolean supportsOpenStatementsAcrossRollback () throws SQLException
 
int getMaxBinaryLiteralLength () throws SQLException
 
int getMaxCharLiteralLength () throws SQLException
 
int getMaxColumnNameLength () throws SQLException
 
int getMaxColumnsInGroupBy () throws SQLException
 
int getMaxColumnsInIndex () throws SQLException
 
int getMaxColumnsInOrderBy () throws SQLException
 
int getMaxColumnsInSelect () throws SQLException
 
int getMaxColumnsInTable () throws SQLException
 
int getMaxConnections () throws SQLException
 
int getMaxCursorNameLength () throws SQLException
 
int getMaxIndexLength () throws SQLException
 
int getMaxSchemaNameLength () throws SQLException
 
int getMaxProcedureNameLength () throws SQLException
 
int getMaxCatalogNameLength () throws SQLException
 
int getMaxRowSize () throws SQLException
 
boolean doesMaxRowSizeIncludeBlobs () throws SQLException
 
int getMaxStatementLength () throws SQLException
 
int getMaxStatements () throws SQLException
 
int getMaxTableNameLength () throws SQLException
 
int getMaxTablesInSelect () throws SQLException
 
int getMaxUserNameLength () throws SQLException
 
int getDefaultTransactionIsolation () throws SQLException
 
boolean supportsTransactions () throws SQLException
 
boolean supportsTransactionIsolationLevel (int level) throws SQLException
 
boolean supportsDataDefinitionAndDataManipulationTransactions () throws SQLException
 
boolean supportsDataManipulationTransactionsOnly () throws SQLException
 
boolean dataDefinitionCausesTransactionCommit () throws SQLException
 
boolean dataDefinitionIgnoredInTransactions () throws SQLException
 
ResultSet getProcedures (String catalog, String schemaPattern, String procedureNamePattern) throws SQLException
 
ResultSet getProcedureColumns (String catalog, String schemaPattern, String procedureNamePattern, String columnNamePattern) throws SQLException
 
TColumnType createTColumnType (String colName, TTypeInfo colType)
 
TColumnType createTColumnType (String colName, TTypeInfo colType, Boolean irk)
 
ResultSet getTables (String catalog, String schemaPattern, String tableNamePattern, String[] types) throws SQLException
 
ResultSet getSchemas () throws SQLException
 
ResultSet getCatalogs () throws SQLException
 
ResultSet getTableTypes () throws SQLException
 
ResultSet getColumns (String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException
 
ResultSet getColumnPrivileges (String catalog, String schema, String table, String columnNamePattern) throws SQLException
 
ResultSet getEmptyResultSet ()
 
ResultSet getEmptyResultSetWithDesc (TColumnType columns[]) throws SQLException
 
ResultSet getTablePrivileges (String catalog, String schemaPattern, String tableNamePattern) throws SQLException
 
ResultSet getBestRowIdentifier (String catalog, String schema, String table, int scope, boolean nullable) throws SQLException
 
ResultSet getVersionColumns (String catalog, String schema, String table) throws SQLException
 
ResultSet getPrimaryKeys (String catalog, String schema, String table) throws SQLException
 
ResultSet getImportedKeys (String catalog, String schema, String table) throws SQLException
 
ResultSet getExportedKeys (String catalog, String schema, String table) throws SQLException
 
ResultSet getCrossReference (String parentCatalog, String parentSchema, String parentTable, String foreignCatalog, String foreignSchema, String foreignTable) throws SQLException
 
ResultSet getTypeInfo () throws SQLException
 
ResultSet getIndexInfo (String catalog, String schema, String table, boolean unique, boolean approximate) throws SQLException
 
boolean supportsResultSetType (int type) throws SQLException
 
boolean supportsResultSetConcurrency (int type, int concurrency) throws SQLException
 
boolean ownUpdatesAreVisible (int type) throws SQLException
 
boolean ownDeletesAreVisible (int type) throws SQLException
 
boolean ownInsertsAreVisible (int type) throws SQLException
 
boolean othersUpdatesAreVisible (int type) throws SQLException
 
boolean othersDeletesAreVisible (int type) throws SQLException
 
boolean othersInsertsAreVisible (int type) throws SQLException
 
boolean updatesAreDetected (int type) throws SQLException
 
boolean deletesAreDetected (int type) throws SQLException
 
boolean insertsAreDetected (int type) throws SQLException
 
boolean supportsBatchUpdates () throws SQLException
 
ResultSet getUDTs (String catalog, String schemaPattern, String typeNamePattern, int[] types) throws SQLException
 
Connection getConnection () throws SQLException
 
boolean supportsSavepoints () throws SQLException
 
boolean supportsNamedParameters () throws SQLException
 
boolean supportsMultipleOpenResults () throws SQLException
 
boolean supportsGetGeneratedKeys () throws SQLException
 
ResultSet getSuperTypes (String catalog, String schemaPattern, String typeNamePattern) throws SQLException
 
ResultSet getSuperTables (String catalog, String schemaPattern, String tableNamePattern) throws SQLException
 
ResultSet getAttributes (String catalog, String schemaPattern, String typeNamePattern, String attributeNamePattern) throws SQLException
 
boolean supportsResultSetHoldability (int holdability) throws SQLException
 
int getResultSetHoldability () throws SQLException
 
int getDatabaseMajorVersion () throws SQLException
 
int getDatabaseMinorVersion () throws SQLException
 
int getJDBCMajorVersion () throws SQLException
 
int getJDBCMinorVersion () throws SQLException
 
int getSQLStateType () throws SQLException
 
boolean locatorsUpdateCopy () throws SQLException
 
boolean supportsStatementPooling () throws SQLException
 
RowIdLifetime getRowIdLifetime () throws SQLException
 
ResultSet getSchemas (String catalog, String schemaPattern) throws SQLException
 
boolean supportsStoredFunctionsUsingCallSyntax () throws SQLException
 
boolean autoCommitFailureClosesAllResultSets () throws SQLException
 
ResultSet getClientInfoProperties () throws SQLException
 
ResultSet getFunctions (String catalog, String schemaPattern, String functionNamePattern) throws SQLException
 
ResultSet getFunctionColumns (String catalog, String schemaPattern, String functionNamePattern, String columnNamePattern) throws SQLException
 
ResultSet getPseudoColumns (String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException
 
boolean generatedKeyAlwaysReturned () throws SQLException
 
boolean isWrapperFor (Class<?> iface) throws SQLException
 

Package Functions

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

Package Attributes

OmniSciConnection con = null
 
int databaseMajorVersion = 0
 
int databaseMinorVersion = 0
 
String databaseVersion = null
 

Static Package Attributes

static final Logger MAPDLOGGER = LoggerFactory.getLogger(OmniSciDatabaseMetaData.class)
 

Private Member Functions

TColumn createTColumnData (Object data, List< Boolean > nullsList)
 
void tablePermProcess (List< String > tables, Map< String, OmniSciData > dataMap, String tableNamePattern) throws TException
 

Detailed Description

Author
michael

Definition at line 47 of file OmniSciDatabaseMetaData.java.

Constructor & Destructor Documentation

com.omnisci.jdbc.OmniSciDatabaseMetaData.OmniSciDatabaseMetaData ( OmniSciConnection  connection) throws SQLException
inline

Definition at line 55 of file OmniSciDatabaseMetaData.java.

References com.omnisci.jdbc.OmniSciDatabaseMetaData.databaseMajorVersion, com.omnisci.jdbc.OmniSciDatabaseMetaData.databaseMinorVersion, and com.omnisci.jdbc.OmniSciDatabaseMetaData.databaseVersion.

55  {
56  this.con = connection;
57 
58  try {
59  databaseVersion = con.client.get_version();
60  } catch (TException ex) {
61  throw new SQLException("Failed to get DB version " + ex.toString());
62  }
63  String vers[] = databaseVersion.split("\\.");
64  try {
65  databaseMajorVersion = Integer.parseInt(vers[0]);
66  databaseMinorVersion = Integer.parseInt(vers[1]);
67  } catch (NumberFormatException ex) {
68  throw new SQLException(
69  "Non-numeric version returned from OmniSci server: " + ex.getMessage());
70  }
71  }

Member Function Documentation

boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.allProceduresAreCallable ( ) throws SQLException
inline

Definition at line 74 of file OmniSciDatabaseMetaData.java.

74  {
75  MAPDLOGGER.debug("Entered");
76  return false;
77  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.allTablesAreSelectable ( ) throws SQLException
inline

Definition at line 80 of file OmniSciDatabaseMetaData.java.

80  {
81  MAPDLOGGER.debug("Entered");
82  return true;
83  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.autoCommitFailureClosesAllResultSets ( ) throws SQLException
inline

Definition at line 1884 of file OmniSciDatabaseMetaData.java.

1884  {
1885  MAPDLOGGER.debug("Entered");
1886  return false;
1887  }
TColumn com.omnisci.jdbc.OmniSciDatabaseMetaData.createTColumnData ( Object  data,
List< Boolean >  nullsList 
)
inlineprivate

Definition at line 940 of file OmniSciDatabaseMetaData.java.

Referenced by com.omnisci.jdbc.OmniSciDatabaseMetaData.getTables().

940  {
941  TColumnData colData = new TColumnData();
942  colData.setStr_col((List<String>) data);
943 
944  TColumn col = new TColumn(colData, nullsList);
945  return col;
946  }

+ Here is the caller graph for this function:

TColumnType com.omnisci.jdbc.OmniSciDatabaseMetaData.createTColumnType ( String  colName,
TTypeInfo  colType 
)
inline
TColumnType com.omnisci.jdbc.OmniSciDatabaseMetaData.createTColumnType ( String  colName,
TTypeInfo  colType,
Boolean  irk 
)
inline

Definition at line 816 of file OmniSciDatabaseMetaData.java.

816  {
817  TColumnType ct = new TColumnType();
818  ct.col_name = colName;
819  ct.col_type = colType;
820  ct.is_reserved_keyword = irk;
821  ct.is_system = false;
822  ct.is_physical = false;
823  return ct;
824  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.dataDefinitionCausesTransactionCommit ( ) throws SQLException
inline

Definition at line 772 of file OmniSciDatabaseMetaData.java.

772  {
773  MAPDLOGGER.debug("Entered");
774  return false;
775  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.dataDefinitionIgnoredInTransactions ( ) throws SQLException
inline

Definition at line 778 of file OmniSciDatabaseMetaData.java.

778  {
779  MAPDLOGGER.debug("Entered");
780  return false;
781  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.deletesAreDetected ( int  type) throws SQLException
inline

Definition at line 1719 of file OmniSciDatabaseMetaData.java.

1719  {
1720  MAPDLOGGER.debug("Entered");
1721  return false;
1722  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.doesMaxRowSizeIncludeBlobs ( ) throws SQLException
inline

Definition at line 705 of file OmniSciDatabaseMetaData.java.

705  {
706  MAPDLOGGER.debug("Entered");
707  return false;
708  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.generatedKeyAlwaysReturned ( ) throws SQLException
inline

Definition at line 1934 of file OmniSciDatabaseMetaData.java.

1934  {
1935  MAPDLOGGER.debug("Entered");
1936  return false;
1937  }
ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getAttributes ( String  catalog,
String  schemaPattern,
String  typeNamePattern,
String  attributeNamePattern 
) throws SQLException
inline

Definition at line 1800 of file OmniSciDatabaseMetaData.java.

1803  {
1804  MAPDLOGGER.debug("Entered");
1805  throw new UnsupportedOperationException("Not supported yet,"
1806  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1807  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1808  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1809  }
ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getBestRowIdentifier ( String  catalog,
String  schema,
String  table,
int  scope,
boolean  nullable 
) throws SQLException
inline

Definition at line 1395 of file OmniSciDatabaseMetaData.java.

1397  {
1398  MAPDLOGGER.debug("Entered");
1399  throw new UnsupportedOperationException("Not supported yet,"
1400  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1401  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1402  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1403  }
ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getCatalogs ( ) throws SQLException
inline

Definition at line 1004 of file OmniSciDatabaseMetaData.java.

References com.omnisci.jdbc.OmniSciDatabaseMetaData.getSchemas().

1004  {
1005  MAPDLOGGER.debug("Entered");
1006  return getSchemas();
1007  }

+ Here is the call graph for this function:

String com.omnisci.jdbc.OmniSciDatabaseMetaData.getCatalogSeparator ( ) throws SQLException
inline

Definition at line 459 of file OmniSciDatabaseMetaData.java.

459  {
460  MAPDLOGGER.debug("Entered");
461  return ".";
462  }
String com.omnisci.jdbc.OmniSciDatabaseMetaData.getCatalogTerm ( ) throws SQLException
inline

Definition at line 447 of file OmniSciDatabaseMetaData.java.

447  {
448  MAPDLOGGER.debug("Entered");
449  return "N/A";
450  }
ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getClientInfoProperties ( ) throws SQLException
inline

Definition at line 1890 of file OmniSciDatabaseMetaData.java.

1890  {
1891  MAPDLOGGER.debug("Entered");
1892  throw new UnsupportedOperationException("Not supported yet,"
1893  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1894  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1895  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1896  }
ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getColumnPrivileges ( String  catalog,
String  schema,
String  table,
String  columnNamePattern 
) throws SQLException
inline

Definition at line 1245 of file OmniSciDatabaseMetaData.java.

1247  {
1248  MAPDLOGGER.debug("Entered");
1249  throw new UnsupportedOperationException("Not supported yet,"
1250  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1251  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1252  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1253  }
ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getColumns ( String  catalog,
String  schemaPattern,
String  tableNamePattern,
String  columnNamePattern 
) throws SQLException
inline

Definition at line 1107 of file OmniSciDatabaseMetaData.java.

References generate_TableFunctionsFactory_init.add, com.omnisci.jdbc.OmniSciDatabaseMetaData.createTColumnType(), run_benchmark_import.result, run_benchmark_import.tables, and com.omnisci.jdbc.OmniSciType.toJava().

1110  {
1111  MAPDLOGGER.debug("Entered");
1112  MAPDLOGGER.debug("TablePattern " + tableNamePattern + " columnNamePattern "
1113  + columnNamePattern);
1114  String modifiedTablePattern = tableNamePattern.replaceAll("%", ".*");
1115  String modifiedColumnPattern =
1116  (columnNamePattern == null) ? null : columnNamePattern.replaceAll("%", ".*");
1117 
1118  MAPDLOGGER.debug("TablePattern " + tableNamePattern + " modifiedColumnPattern "
1119  + modifiedColumnPattern);
1120 
1121  // declare the columns in the result set
1122  TTypeInfo strTTI =
1123  new TTypeInfo(TDatumType.STR, TEncodingType.NONE, false, false, 0, 0, 0);
1124  TTypeInfo intTTI =
1125  new TTypeInfo(TDatumType.INT, TEncodingType.NONE, false, false, 0, 0, 0);
1126  TTypeInfo smallIntTTI =
1127  new TTypeInfo(TDatumType.SMALLINT, TEncodingType.NONE, false, false, 0, 0, 0);
1128  TColumnType columns[] = {createTColumnType("TABLE_CAT", new TTypeInfo(strTTI)),
1129  createTColumnType("TABLE_SCHEM", new TTypeInfo(strTTI)),
1130  createTColumnType("TABLE_NAME", new TTypeInfo(strTTI)),
1131  createTColumnType("COLUMN_NAME", new TTypeInfo(strTTI)),
1132  createTColumnType("DATA_TYPE", new TTypeInfo(intTTI)),
1133  createTColumnType("TYPE_NAME", new TTypeInfo(strTTI)),
1134  createTColumnType("COLUMN_SIZE", new TTypeInfo(intTTI)),
1135  createTColumnType("BUFFER_LENGTH", new TTypeInfo(strTTI)),
1136  createTColumnType("DECIMAL_DIGITS", new TTypeInfo(intTTI)),
1137  createTColumnType("NUM_PREC_RADIX", new TTypeInfo(intTTI)),
1138  createTColumnType("NULLABLE", new TTypeInfo(intTTI)),
1139  createTColumnType("REMARKS", new TTypeInfo(strTTI)),
1140  createTColumnType("COLUMN_DEF", new TTypeInfo(strTTI)),
1141  createTColumnType("SQL_DATA_TYPE", new TTypeInfo(intTTI)),
1142  createTColumnType("SQL_DATETIME_SUB", new TTypeInfo(intTTI)),
1143  createTColumnType("CHAR_OCTET_LENGTH", new TTypeInfo(intTTI)),
1144  createTColumnType("ORDINAL_POSITION", new TTypeInfo(intTTI)),
1145  createTColumnType("IS_NULLABLE", new TTypeInfo(strTTI)),
1146  createTColumnType("SCOPE_CATALOG", new TTypeInfo(strTTI)),
1147  createTColumnType("SCOPE_SCHEMA", new TTypeInfo(strTTI)),
1148  createTColumnType("SCOPE_TABLE", new TTypeInfo(strTTI)),
1149  createTColumnType("SOURCE_DATA_TYPE", new TTypeInfo(smallIntTTI)),
1150  createTColumnType("IS_AUTOINCREMENT", new TTypeInfo(strTTI)),
1151  createTColumnType("IS_GENERATEDCOLUMN", new TTypeInfo(strTTI))};
1152 
1153  Map<String, OmniSciData> dataMap = new HashMap(columns.length);
1154 
1155  // create component to contain the meta data for the rows
1156  // and create a container to store the data and the nul indicators
1157  List<TColumnType> rowDesc = new ArrayList(columns.length);
1158  for (TColumnType col : columns) {
1159  rowDesc.add(col);
1160  dataMap.put(col.col_name, new OmniSciData(col.col_type.type));
1161  }
1162 
1163  // Now add some actual details for table name
1164  List<String> tables;
1165  try {
1166  tables = con.client.get_tables(con.session);
1167 
1168  for (String tableName : tables) {
1169  // check if the table matches the input pattern
1170  if (tableNamePattern == null || tableNamePattern.equals(tableName)) {
1171  // grab meta data for table
1172  TTableDetails tableDetails =
1173  con.client.get_table_details(con.session, tableName);
1174 
1175  int ordinal = 0;
1176  // iterate through the columns
1177  for (TColumnType value : tableDetails.row_desc) {
1178  ordinal++;
1179  if (columnNamePattern == null
1180  || value.col_name.matches(modifiedColumnPattern)) {
1181  dataMap.get("TABLE_CAT").setNull(true);
1182  dataMap.get("TABLE_SCHEM").setNull(true);
1183  dataMap.get("TABLE_NAME").add(tableName);
1184  dataMap.get("COLUMN_NAME").add(value.col_name);
1185  dataMap.get("DATA_TYPE").add(OmniSciType.toJava(value.col_type.type));
1186  dataMap.get("TYPE_NAME")
1187  .add((value.col_type.type.name()
1188  + (value.col_type.is_array ? "[]" : "")));
1189  if (value.col_type.type == TDatumType.DECIMAL) {
1190  dataMap.get("COLUMN_SIZE").add(value.col_type.precision);
1191  } else {
1192  dataMap.get("COLUMN_SIZE").add(100);
1193  }
1194  dataMap.get("BUFFER_LENGTH").setNull(true);
1195  if (value.col_type.type == TDatumType.DECIMAL) {
1196  dataMap.get("DECIMAL_DIGITS").add(value.col_type.scale);
1197  } else {
1198  dataMap.get("DECIMAL_DIGITS").setNull(true);
1199  }
1200  dataMap.get("NUM_PREC_RADIX").add(10);
1201  dataMap.get("NULLABLE")
1202  .add(value.col_type.nullable ? DatabaseMetaData.columnNullable
1203  : DatabaseMetaData.columnNoNulls);
1204  dataMap.get("REMARKS").add(" ");
1205  dataMap.get("COLUMN_DEF").setNull(true);
1206  dataMap.get("SQL_DATA_TYPE").add(0);
1207  dataMap.get("SQL_DATETIME_SUB").setNull(true);
1208  dataMap.get("CHAR_OCTET_LENGTH").add(0);
1209  dataMap.get("ORDINAL_POSITION").add(ordinal);
1210  dataMap.get("IS_NULLABLE").add(value.col_type.nullable ? "YES" : "NO");
1211  dataMap.get("SCOPE_CATALOG").setNull(true);
1212  dataMap.get("SCOPE_SCHEMA").setNull(true);
1213  dataMap.get("SCOPE_TABLE").setNull(true);
1214  dataMap.get("SOURCE_DATA_TYPE")
1215  .add(OmniSciType.toJava(value.col_type.type));
1216  dataMap.get("IS_AUTOINCREMENT").add("NO");
1217  dataMap.get("IS_GENERATEDCOLUMN").add("NO");
1218  }
1219  }
1220  }
1221  }
1222  } catch (TException ex) {
1223  throw new SQLException("get_tables failed " + ex.toString());
1224  }
1225 
1226  List<TColumn> columnsList = new ArrayList(columns.length);
1227 
1228  for (TColumnType col : columns) {
1229  TColumn schemaCol = dataMap.get(col.col_name).getTColumn();
1230  // logger.info("Tcolumn is "+ schemaCol.toString());
1231  columnsList.add(schemaCol);
1232  }
1233 
1234  // create a rowset for the result
1235  TRowSet rowSet = new TRowSet(rowDesc, null, columnsList, true);
1236 
1237  TQueryResult result = new TQueryResult(
1238  rowSet, 0, 0, null, null, true, com.omnisci.thrift.server.TQueryType.UNKNOWN);
1239 
1240  OmniSciResultSet cols = new OmniSciResultSet(result, "getColumns");
1241  return cols;
1242  }
TColumnType createTColumnType(String colName, TTypeInfo colType)

+ Here is the call graph for this function:

Connection com.omnisci.jdbc.OmniSciDatabaseMetaData.getConnection ( ) throws SQLException
inline

Definition at line 1748 of file OmniSciDatabaseMetaData.java.

References com.omnisci.jdbc.OmniSciDatabaseMetaData.con.

1748  {
1749  MAPDLOGGER.debug("Entered");
1750  return con;
1751  }
ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getCrossReference ( String  parentCatalog,
String  parentSchema,
String  parentTable,
String  foreignCatalog,
String  foreignSchema,
String  foreignTable 
) throws SQLException
inline

Definition at line 1495 of file OmniSciDatabaseMetaData.java.

1500  {
1501  MAPDLOGGER.debug("Entered");
1502  throw new UnsupportedOperationException("Not supported yet,"
1503  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1504  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1505  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1506  }
int com.omnisci.jdbc.OmniSciDatabaseMetaData.getDatabaseMajorVersion ( ) throws SQLException
inline

Definition at line 1824 of file OmniSciDatabaseMetaData.java.

1824  {
1825  MAPDLOGGER.debug("Entered");
1826  return this.databaseMajorVersion;
1827  }
int com.omnisci.jdbc.OmniSciDatabaseMetaData.getDatabaseMinorVersion ( ) throws SQLException
inline

Definition at line 1830 of file OmniSciDatabaseMetaData.java.

1830  {
1831  MAPDLOGGER.debug("Entered");
1832  return this.databaseMinorVersion;
1833  }
String com.omnisci.jdbc.OmniSciDatabaseMetaData.getDatabaseProductName ( ) throws SQLException
inline

Definition at line 128 of file OmniSciDatabaseMetaData.java.

128  {
129  MAPDLOGGER.debug("Entered");
130  return "OmniSciDB";
131  }
String com.omnisci.jdbc.OmniSciDatabaseMetaData.getDatabaseProductVersion ( ) throws SQLException
inline

Definition at line 134 of file OmniSciDatabaseMetaData.java.

135  { // logger.debug("Entered");
136  MAPDLOGGER.debug("Entered");
137  return this.databaseVersion;
138  }
int com.omnisci.jdbc.OmniSciDatabaseMetaData.getDefaultTransactionIsolation ( ) throws SQLException
inline

Definition at line 741 of file OmniSciDatabaseMetaData.java.

741  {
742  MAPDLOGGER.debug("Entered");
743  return Connection.TRANSACTION_NONE;
744  }
int com.omnisci.jdbc.OmniSciDatabaseMetaData.getDriverMajorVersion ( )
inline
int com.omnisci.jdbc.OmniSciDatabaseMetaData.getDriverMinorVersion ( )
inline
String com.omnisci.jdbc.OmniSciDatabaseMetaData.getDriverName ( ) throws SQLException
inline

Definition at line 141 of file OmniSciDatabaseMetaData.java.

141  {
142  MAPDLOGGER.debug("Entered");
143  return "OmniSciDB JDBC Driver";
144  }
String com.omnisci.jdbc.OmniSciDatabaseMetaData.getDriverVersion ( ) throws SQLException
inline

Definition at line 147 of file OmniSciDatabaseMetaData.java.

References com.omnisci.jdbc.OmniSciDriver.DriverVersion.

147  { // logger.debug("Entered");
148  MAPDLOGGER.debug("Entered");
150  }
ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getEmptyResultSet ( )
inline

Definition at line 1255 of file OmniSciDatabaseMetaData.java.

Referenced by com.omnisci.jdbc.OmniSciDatabaseMetaData.getIndexInfo().

1255  {
1256  return new OmniSciResultSet();
1257  }

+ Here is the caller graph for this function:

ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getEmptyResultSetWithDesc ( TColumnType  columns[]) throws SQLException
inline

Definition at line 1260 of file OmniSciDatabaseMetaData.java.

References run_benchmark_import.result.

Referenced by com.omnisci.jdbc.OmniSciDatabaseMetaData.getExportedKeys(), com.omnisci.jdbc.OmniSciDatabaseMetaData.getImportedKeys(), and com.omnisci.jdbc.OmniSciDatabaseMetaData.getPrimaryKeys().

1261  { // for compatibility and future
1262  Map<String, OmniSciData> dataMap = new HashMap(columns.length);
1263  List<TColumnType> rowDesc = new ArrayList(columns.length);
1264  for (TColumnType col : columns) {
1265  rowDesc.add(col);
1266  dataMap.put(col.col_name, new OmniSciData(col.col_type.type));
1267  }
1268  List<TColumn> columnsList = new ArrayList(columns.length);
1269  for (TColumnType col : columns) {
1270  TColumn schemaCol = dataMap.get(col.col_name).getTColumn();
1271  columnsList.add(schemaCol);
1272  }
1273  TRowSet rowSet = new TRowSet(rowDesc, null, columnsList, true);
1274  TQueryResult result = new TQueryResult(
1275  rowSet, 0, 0, null, null, true, com.omnisci.thrift.server.TQueryType.UNKNOWN);
1276  OmniSciResultSet cols = new OmniSciResultSet(result, "getColumns");
1277  return cols;
1278  }

+ Here is the caller graph for this function:

ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getExportedKeys ( String  catalog,
String  schema,
String  table 
) throws SQLException
inline

Definition at line 1466 of file OmniSciDatabaseMetaData.java.

References com.omnisci.jdbc.OmniSciDatabaseMetaData.createTColumnType(), and com.omnisci.jdbc.OmniSciDatabaseMetaData.getEmptyResultSetWithDesc().

1467  {
1468  MAPDLOGGER.debug("Entered");
1469 
1470  TTypeInfo strTTI =
1471  new TTypeInfo(TDatumType.STR, TEncodingType.NONE, false, false, 0, 0, 0);
1472  TTypeInfo intTTI =
1473  new TTypeInfo(TDatumType.INT, TEncodingType.NONE, false, false, 0, 0, 0);
1474  TTypeInfo smallIntTTI =
1475  new TTypeInfo(TDatumType.SMALLINT, TEncodingType.NONE, false, false, 0, 0, 0);
1476  TColumnType columns[] = {createTColumnType("FKTABLE_CAT", new TTypeInfo(strTTI)),
1477  createTColumnType("FKTABLE_SCHEM", new TTypeInfo(strTTI)),
1478  createTColumnType("FKTABLE_NAME", new TTypeInfo(strTTI)),
1479  createTColumnType("FKCOLUMN_NAME", new TTypeInfo(strTTI)),
1480  createTColumnType("PKTABLE_CAT", new TTypeInfo(strTTI)),
1481  createTColumnType("PKTABLE_SCHEM", new TTypeInfo(strTTI)),
1482  createTColumnType("PKTABLE_NAME", new TTypeInfo(strTTI)),
1483  createTColumnType("PKCOLUMN_NAME", new TTypeInfo(strTTI)),
1484  createTColumnType("KEY_SEQ", new TTypeInfo(smallIntTTI)),
1485  createTColumnType("UPDATE_RULE", new TTypeInfo(smallIntTTI)),
1486  createTColumnType("DELETE_RULE", new TTypeInfo(smallIntTTI)),
1487  createTColumnType("PK_NAME", new TTypeInfo(strTTI)),
1488  createTColumnType("FK_NAME", new TTypeInfo(strTTI)),
1489  createTColumnType("DEFERRABILITY", new TTypeInfo(smallIntTTI))};
1490 
1491  return getEmptyResultSetWithDesc(columns);
1492  }
ResultSet getEmptyResultSetWithDesc(TColumnType columns[])
TColumnType createTColumnType(String colName, TTypeInfo colType)

+ Here is the call graph for this function:

String com.omnisci.jdbc.OmniSciDatabaseMetaData.getExtraNameCharacters ( ) throws SQLException
inline

Definition at line 267 of file OmniSciDatabaseMetaData.java.

267  {
268  MAPDLOGGER.debug("Entered");
269  return "";
270  }
ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getFunctionColumns ( String  catalog,
String  schemaPattern,
String  functionNamePattern,
String  columnNamePattern 
) throws SQLException
inline

Definition at line 1910 of file OmniSciDatabaseMetaData.java.

1913  {
1914  MAPDLOGGER.debug("Entered");
1915  throw new UnsupportedOperationException("Not supported yet,"
1916  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1917  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1918  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1919  }
ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getFunctions ( String  catalog,
String  schemaPattern,
String  functionNamePattern 
) throws SQLException
inline

Definition at line 1899 of file OmniSciDatabaseMetaData.java.

1901  {
1902  MAPDLOGGER.debug("Entered");
1903  throw new UnsupportedOperationException("Not supported yet,"
1904  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1905  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1906  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1907  }
String com.omnisci.jdbc.OmniSciDatabaseMetaData.getIdentifierQuoteString ( ) throws SQLException
inline

Definition at line 223 of file OmniSciDatabaseMetaData.java.

223  {
224  MAPDLOGGER.debug("Entered");
225  return " ";
226  }
ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getImportedKeys ( String  catalog,
String  schema,
String  table 
) throws SQLException
inline

Definition at line 1437 of file OmniSciDatabaseMetaData.java.

References com.omnisci.jdbc.OmniSciDatabaseMetaData.createTColumnType(), and com.omnisci.jdbc.OmniSciDatabaseMetaData.getEmptyResultSetWithDesc().

1438  {
1439  MAPDLOGGER.debug("Entered");
1440 
1441  TTypeInfo strTTI =
1442  new TTypeInfo(TDatumType.STR, TEncodingType.NONE, false, false, 0, 0, 0);
1443  TTypeInfo intTTI =
1444  new TTypeInfo(TDatumType.INT, TEncodingType.NONE, false, false, 0, 0, 0);
1445  TTypeInfo smallIntTTI =
1446  new TTypeInfo(TDatumType.SMALLINT, TEncodingType.NONE, false, false, 0, 0, 0);
1447  TColumnType columns[] = {createTColumnType("PKTABLE_CAT", new TTypeInfo(strTTI)),
1448  createTColumnType("PKTABLE_SCHEM", new TTypeInfo(strTTI)),
1449  createTColumnType("PKTABLE_NAME", new TTypeInfo(strTTI)),
1450  createTColumnType("PKCOLUMN_NAME", new TTypeInfo(strTTI)),
1451  createTColumnType("FKTABLE_CAT", new TTypeInfo(strTTI)),
1452  createTColumnType("FKTABLE_SCHEM", new TTypeInfo(strTTI)),
1453  createTColumnType("FKTABLE_NAME", new TTypeInfo(strTTI)),
1454  createTColumnType("FKCOLUMN_NAME", new TTypeInfo(strTTI)),
1455  createTColumnType("KEY_SEQ", new TTypeInfo(smallIntTTI)),
1456  createTColumnType("UPDATE_RULE", new TTypeInfo(smallIntTTI)),
1457  createTColumnType("DELETE_RULE", new TTypeInfo(smallIntTTI)),
1458  createTColumnType("FK_NAME", new TTypeInfo(strTTI)),
1459  createTColumnType("PK_NAME", new TTypeInfo(strTTI)),
1460  createTColumnType("DEFERRABILITY", new TTypeInfo(smallIntTTI))};
1461 
1462  return getEmptyResultSetWithDesc(columns);
1463  }
ResultSet getEmptyResultSetWithDesc(TColumnType columns[])
TColumnType createTColumnType(String colName, TTypeInfo colType)

+ Here is the call graph for this function:

ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getIndexInfo ( String  catalog,
String  schema,
String  table,
boolean  unique,
boolean  approximate 
) throws SQLException
inline

Definition at line 1654 of file OmniSciDatabaseMetaData.java.

References com.omnisci.jdbc.OmniSciDatabaseMetaData.getEmptyResultSet().

1658  {
1659  MAPDLOGGER.debug("Entered");
1660  return getEmptyResultSet();
1661  }

+ Here is the call graph for this function:

int com.omnisci.jdbc.OmniSciDatabaseMetaData.getJDBCMajorVersion ( ) throws SQLException
inline

Definition at line 1836 of file OmniSciDatabaseMetaData.java.

1836  {
1837  MAPDLOGGER.debug("Entered");
1838  return 0;
1839  }
int com.omnisci.jdbc.OmniSciDatabaseMetaData.getJDBCMinorVersion ( ) throws SQLException
inline

Definition at line 1842 of file OmniSciDatabaseMetaData.java.

1842  { // logger.debug("Entered");
1843  MAPDLOGGER.debug("Entered");
1844  return 0;
1845  }
int com.omnisci.jdbc.OmniSciDatabaseMetaData.getMaxBinaryLiteralLength ( ) throws SQLException
inline

Definition at line 615 of file OmniSciDatabaseMetaData.java.

615  {
616  MAPDLOGGER.debug("Entered");
617  return 0;
618  }
int com.omnisci.jdbc.OmniSciDatabaseMetaData.getMaxCatalogNameLength ( ) throws SQLException
inline

Definition at line 693 of file OmniSciDatabaseMetaData.java.

693  {
694  MAPDLOGGER.debug("Entered");
695  return 0;
696  }
int com.omnisci.jdbc.OmniSciDatabaseMetaData.getMaxCharLiteralLength ( ) throws SQLException
inline

Definition at line 621 of file OmniSciDatabaseMetaData.java.

621  {
622  MAPDLOGGER.debug("Entered");
623  return 0;
624  }
int com.omnisci.jdbc.OmniSciDatabaseMetaData.getMaxColumnNameLength ( ) throws SQLException
inline

Definition at line 627 of file OmniSciDatabaseMetaData.java.

627  {
628  MAPDLOGGER.debug("Entered");
629  return 0;
630  }
int com.omnisci.jdbc.OmniSciDatabaseMetaData.getMaxColumnsInGroupBy ( ) throws SQLException
inline

Definition at line 633 of file OmniSciDatabaseMetaData.java.

633  {
634  MAPDLOGGER.debug("Entered");
635  return 0;
636  }
int com.omnisci.jdbc.OmniSciDatabaseMetaData.getMaxColumnsInIndex ( ) throws SQLException
inline

Definition at line 639 of file OmniSciDatabaseMetaData.java.

639  {
640  MAPDLOGGER.debug("Entered");
641  return 0;
642  }
int com.omnisci.jdbc.OmniSciDatabaseMetaData.getMaxColumnsInOrderBy ( ) throws SQLException
inline

Definition at line 645 of file OmniSciDatabaseMetaData.java.

645  {
646  MAPDLOGGER.debug("Entered");
647  return 0;
648  }
int com.omnisci.jdbc.OmniSciDatabaseMetaData.getMaxColumnsInSelect ( ) throws SQLException
inline

Definition at line 651 of file OmniSciDatabaseMetaData.java.

651  {
652  MAPDLOGGER.debug("Entered");
653  return 0;
654  }
int com.omnisci.jdbc.OmniSciDatabaseMetaData.getMaxColumnsInTable ( ) throws SQLException
inline

Definition at line 657 of file OmniSciDatabaseMetaData.java.

657  {
658  MAPDLOGGER.debug("Entered");
659  return 0;
660  }
int com.omnisci.jdbc.OmniSciDatabaseMetaData.getMaxConnections ( ) throws SQLException
inline

Definition at line 663 of file OmniSciDatabaseMetaData.java.

663  {
664  MAPDLOGGER.debug("Entered");
665  return 0;
666  }
int com.omnisci.jdbc.OmniSciDatabaseMetaData.getMaxCursorNameLength ( ) throws SQLException
inline

Definition at line 669 of file OmniSciDatabaseMetaData.java.

669  {
670  MAPDLOGGER.debug("Entered");
671  return 0;
672  }
int com.omnisci.jdbc.OmniSciDatabaseMetaData.getMaxIndexLength ( ) throws SQLException
inline

Definition at line 675 of file OmniSciDatabaseMetaData.java.

675  {
676  MAPDLOGGER.debug("Entered");
677  return 0;
678  }
int com.omnisci.jdbc.OmniSciDatabaseMetaData.getMaxProcedureNameLength ( ) throws SQLException
inline

Definition at line 687 of file OmniSciDatabaseMetaData.java.

687  {
688  MAPDLOGGER.debug("Entered");
689  return 0;
690  }
int com.omnisci.jdbc.OmniSciDatabaseMetaData.getMaxRowSize ( ) throws SQLException
inline

Definition at line 699 of file OmniSciDatabaseMetaData.java.

699  {
700  MAPDLOGGER.debug("Entered");
701  return 0;
702  }
int com.omnisci.jdbc.OmniSciDatabaseMetaData.getMaxSchemaNameLength ( ) throws SQLException
inline

Definition at line 681 of file OmniSciDatabaseMetaData.java.

681  {
682  MAPDLOGGER.debug("Entered");
683  return 0;
684  }
int com.omnisci.jdbc.OmniSciDatabaseMetaData.getMaxStatementLength ( ) throws SQLException
inline

Definition at line 711 of file OmniSciDatabaseMetaData.java.

711  {
712  MAPDLOGGER.debug("Entered");
713  return 0;
714  }
int com.omnisci.jdbc.OmniSciDatabaseMetaData.getMaxStatements ( ) throws SQLException
inline

Definition at line 717 of file OmniSciDatabaseMetaData.java.

717  {
718  MAPDLOGGER.debug("Entered");
719  return 0;
720  }
int com.omnisci.jdbc.OmniSciDatabaseMetaData.getMaxTableNameLength ( ) throws SQLException
inline

Definition at line 723 of file OmniSciDatabaseMetaData.java.

723  {
724  MAPDLOGGER.debug("Entered");
725  return 0;
726  }
int com.omnisci.jdbc.OmniSciDatabaseMetaData.getMaxTablesInSelect ( ) throws SQLException
inline

Definition at line 729 of file OmniSciDatabaseMetaData.java.

729  {
730  MAPDLOGGER.debug("Entered");
731  return 0;
732  }
int com.omnisci.jdbc.OmniSciDatabaseMetaData.getMaxUserNameLength ( ) throws SQLException
inline

Definition at line 735 of file OmniSciDatabaseMetaData.java.

735  {
736  MAPDLOGGER.debug("Entered");
737  return 0;
738  }
String com.omnisci.jdbc.OmniSciDatabaseMetaData.getNumericFunctions ( ) throws SQLException
inline

Definition at line 235 of file OmniSciDatabaseMetaData.java.

235  {
236  MAPDLOGGER.debug("Entered");
237  return "ACOS(float), ACOS(number), ASIN, ATAN2, CEIL, COS, COT, DEGREES, EXP, FLOOR, LN, LOG, PI(), POWER, SQRT"
238  + ", RADIANS, ROUND, SIN, TAN, ATAN, ABS, MOD SIGN, TRUNCATE";
239  }
ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getPrimaryKeys ( String  catalog,
String  schema,
String  table 
) throws SQLException
inline

Definition at line 1416 of file OmniSciDatabaseMetaData.java.

References com.omnisci.jdbc.OmniSciDatabaseMetaData.createTColumnType(), and com.omnisci.jdbc.OmniSciDatabaseMetaData.getEmptyResultSetWithDesc().

1417  {
1418  MAPDLOGGER.debug("Entered");
1419 
1420  TTypeInfo strTTI =
1421  new TTypeInfo(TDatumType.STR, TEncodingType.NONE, false, false, 0, 0, 0);
1422  TTypeInfo intTTI =
1423  new TTypeInfo(TDatumType.INT, TEncodingType.NONE, false, false, 0, 0, 0);
1424  TTypeInfo smallIntTTI =
1425  new TTypeInfo(TDatumType.SMALLINT, TEncodingType.NONE, false, false, 0, 0, 0);
1426  TColumnType columns[] = {createTColumnType("TABLE_CAT", new TTypeInfo(strTTI)),
1427  createTColumnType("TABLE_SCHEM", new TTypeInfo(strTTI)),
1428  createTColumnType("TABLE_NAME", new TTypeInfo(strTTI)),
1429  createTColumnType("COLUMN_NAME", new TTypeInfo(strTTI)),
1430  createTColumnType("KEY_SEQ", new TTypeInfo(smallIntTTI)),
1431  createTColumnType("PK_NAME", new TTypeInfo(strTTI))};
1432 
1433  return getEmptyResultSetWithDesc(columns);
1434  }
ResultSet getEmptyResultSetWithDesc(TColumnType columns[])
TColumnType createTColumnType(String colName, TTypeInfo colType)

+ Here is the call graph for this function:

ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getProcedureColumns ( String  catalog,
String  schemaPattern,
String  procedureNamePattern,
String  columnNamePattern 
) throws SQLException
inline

Definition at line 797 of file OmniSciDatabaseMetaData.java.

800  {
801  MAPDLOGGER.debug("Entered");
802  throw new UnsupportedOperationException("Not supported yet,"
803  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
804  + " class:" + new Throwable().getStackTrace()[0].getClassName()
805  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
806  }
ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getProcedures ( String  catalog,
String  schemaPattern,
String  procedureNamePattern 
) throws SQLException
inline

Definition at line 784 of file OmniSciDatabaseMetaData.java.

786  {
787  MAPDLOGGER.debug("Entered");
788  return null;
789  // throw new UnsupportedOperationException("Not supported yet," + " line:" + new
790  // Throwable().getStackTrace()[0].
791  // getLineNumber() + " class:" + new
792  // Throwable().getStackTrace()[0].getClassName() + " method:" + new
793  // Throwable(). getStackTrace()[0].getMethodName());
794  }
String com.omnisci.jdbc.OmniSciDatabaseMetaData.getProcedureTerm ( ) throws SQLException
inline

Definition at line 441 of file OmniSciDatabaseMetaData.java.

441  {
442  MAPDLOGGER.debug("Entered");
443  return "N/A";
444  }
ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getPseudoColumns ( String  catalog,
String  schemaPattern,
String  tableNamePattern,
String  columnNamePattern 
) throws SQLException
inline

Definition at line 1922 of file OmniSciDatabaseMetaData.java.

1925  {
1926  MAPDLOGGER.debug("Entered");
1927  throw new UnsupportedOperationException("Not supported yet,"
1928  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1929  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1930  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1931  }
int com.omnisci.jdbc.OmniSciDatabaseMetaData.getResultSetHoldability ( ) throws SQLException
inline

Definition at line 1818 of file OmniSciDatabaseMetaData.java.

1818  {
1819  MAPDLOGGER.debug("Entered");
1820  return ResultSet.CLOSE_CURSORS_AT_COMMIT;
1821  }
RowIdLifetime com.omnisci.jdbc.OmniSciDatabaseMetaData.getRowIdLifetime ( ) throws SQLException
inline

Definition at line 1866 of file OmniSciDatabaseMetaData.java.

1866  {
1867  MAPDLOGGER.debug("Entered");
1868  return RowIdLifetime.ROWID_VALID_OTHER;
1869  }
ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getSchemas ( ) throws SQLException
inline

Definition at line 949 of file OmniSciDatabaseMetaData.java.

References com.omnisci.jdbc.OmniSciDatabaseMetaData.createTColumnType(), and run_benchmark_import.result.

Referenced by com.omnisci.jdbc.OmniSciDatabaseMetaData.getCatalogs(), and com.omnisci.jdbc.OmniSciDatabaseMetaData.getSchemas().

949  {
950  MAPDLOGGER.debug("Entered");
951 
952  List<TDBInfo> databases = null;
953 
954  try {
955  databases = con.client.get_databases(con.session);
956  } catch (TException ex) {
957  throw new SQLException("get_database failed " + ex.toString());
958  }
959 
960  // process info from databses into the resultset, then place in regular return from
961  // MapD
962  TTypeInfo strTTI =
963  new TTypeInfo(TDatumType.STR, TEncodingType.NONE, false, false, 0, 0, 0);
964  TColumnType columns[] = {createTColumnType("TABLE_SCHEM", new TTypeInfo(strTTI)),
965  createTColumnType("TABLE_CATALOG", new TTypeInfo(strTTI))};
966  // create component to contain the meta data for the rows
967  List<TColumnType> rowDesc = new ArrayList();
968  for (TColumnType col : columns) {
969  rowDesc.add(col);
970  }
971 
972  // Now add some actual details for schema name
973  List<String> schemaList = new ArrayList();
974  List<Boolean> nullList = new ArrayList();
975  List<Boolean> catalogNullList = new ArrayList();
976 
977  for (TDBInfo x : databases) {
978  schemaList.add(x.db_name);
979  nullList.add(false);
980  catalogNullList.add(true);
981  }
982 
983  TColumnData colData = new TColumnData();
984  colData.setStr_col(schemaList);
985 
986  TColumn schemaCol = new TColumn(colData, nullList);
987  TColumn catalogCol = new TColumn(null, catalogNullList);
988 
989  List<TColumn> columnsList = new ArrayList();
990  columnsList.add(schemaCol);
991  columnsList.add(catalogCol);
992 
993  // create a rowset for the result
994  TRowSet rowSet = new TRowSet(rowDesc, null, columnsList, true);
995 
996  TQueryResult result = new TQueryResult(
997  rowSet, 0, 0, null, null, true, com.omnisci.thrift.server.TQueryType.UNKNOWN);
998 
999  OmniSciResultSet schemas = new OmniSciResultSet(result, "getSchemas");
1000  return schemas;
1001  }
TColumnType createTColumnType(String colName, TTypeInfo colType)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getSchemas ( String  catalog,
String  schemaPattern 
) throws SQLException
inline

Definition at line 1872 of file OmniSciDatabaseMetaData.java.

References com.omnisci.jdbc.OmniSciDatabaseMetaData.getSchemas().

1872  {
1873  MAPDLOGGER.debug("Entered");
1874  return getSchemas();
1875  }

+ Here is the call graph for this function:

String com.omnisci.jdbc.OmniSciDatabaseMetaData.getSchemaTerm ( ) throws SQLException
inline

Definition at line 435 of file OmniSciDatabaseMetaData.java.

435  {
436  MAPDLOGGER.debug("Entered");
437  return "Database";
438  }
String com.omnisci.jdbc.OmniSciDatabaseMetaData.getSearchStringEscape ( ) throws SQLException
inline

Definition at line 261 of file OmniSciDatabaseMetaData.java.

261  {
262  MAPDLOGGER.debug("Entered");
263  return "\\";
264  }
String com.omnisci.jdbc.OmniSciDatabaseMetaData.getSQLKeywords ( ) throws SQLException
inline

Definition at line 229 of file OmniSciDatabaseMetaData.java.

229  {
230  MAPDLOGGER.debug("Entered");
231  return "";
232  }
int com.omnisci.jdbc.OmniSciDatabaseMetaData.getSQLStateType ( ) throws SQLException
inline

Definition at line 1848 of file OmniSciDatabaseMetaData.java.

1848  {
1849  MAPDLOGGER.debug("Entered");
1850  return 0;
1851  }
String com.omnisci.jdbc.OmniSciDatabaseMetaData.getStringFunctions ( ) throws SQLException
inline

Definition at line 242 of file OmniSciDatabaseMetaData.java.

242  {
243  MAPDLOGGER.debug("Entered");
244  return "CHAR_LENGTH, CHAR, KEY_FOR_STRING";
245  }
ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getSuperTables ( String  catalog,
String  schemaPattern,
String  tableNamePattern 
) throws SQLException
inline

Definition at line 1789 of file OmniSciDatabaseMetaData.java.

1791  {
1792  MAPDLOGGER.debug("Entered");
1793  throw new UnsupportedOperationException("Not supported yet,"
1794  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1795  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1796  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1797  }
ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getSuperTypes ( String  catalog,
String  schemaPattern,
String  typeNamePattern 
) throws SQLException
inline

Definition at line 1778 of file OmniSciDatabaseMetaData.java.

1780  {
1781  MAPDLOGGER.debug("Entered");
1782  throw new UnsupportedOperationException("Not supported yet,"
1783  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1784  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1785  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1786  }
String com.omnisci.jdbc.OmniSciDatabaseMetaData.getSystemFunctions ( ) throws SQLException
inline

Definition at line 248 of file OmniSciDatabaseMetaData.java.

248  {
249  MAPDLOGGER.debug("Entered");
250  return "";
251  }
ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getTablePrivileges ( String  catalog,
String  schemaPattern,
String  tableNamePattern 
) throws SQLException
inline

Definition at line 1336 of file OmniSciDatabaseMetaData.java.

References com.omnisci.jdbc.OmniSciDatabaseMetaData.createTColumnType(), run_benchmark_import.result, com.omnisci.jdbc.OmniSciDatabaseMetaData.tablePermProcess(), run_benchmark_import.tables, and run_benchmark_import.type.

1338  {
1339  MAPDLOGGER.debug("Entered");
1340 
1341  String modifiedTablePattern =
1342  (tableNamePattern == null) ? null : tableNamePattern.replaceAll("%", ".*");
1343 
1344  MAPDLOGGER.debug("TablePattern " + tableNamePattern + " modifiedTableNamePattern "
1345  + modifiedTablePattern);
1346 
1347  // declare the columns in the result set
1348  final TTypeInfo strTTI =
1349  new TTypeInfo(TDatumType.STR, TEncodingType.NONE, false, false, 0, 0, 0);
1350  final TDatumType datumType = strTTI.type;
1351 
1352  Map<String, OmniSciData> dataMap = new HashMap() {
1353  {
1354  put("TABLE_CAT", new OmniSciData(datumType));
1355  put("TABLE_SCHEM", new OmniSciData(datumType));
1356  put("TABLE_NAME", new OmniSciData(datumType));
1357  put("GRANTOR", new OmniSciData(datumType));
1358  put("GRANTEE", new OmniSciData(datumType));
1359  put("PRIVILEGE", new OmniSciData(datumType));
1360  put("IS_GRANTABLE", new OmniSciData(datumType));
1361  }
1362  };
1363 
1364  try {
1365  // Get all the tables and then pattern match them in tablePermProcess
1366  List<String> tables = con.client.get_tables(con.session);
1367  tablePermProcess(tables, dataMap, modifiedTablePattern);
1368  } catch (TException ex) {
1369  throw new SQLException("get_privileges failed " + ex.toString());
1370  }
1371 
1372  // create component to contain the meta data for the rows
1373  // and create a container to store the data and the nul indicators
1374  // List<TColumnType> rowDesc = new ArrayList(columns.length);
1375 
1376  List<TColumnType> rowDesc = new ArrayList(dataMap.size());
1377  List<TColumn> columnsList = new ArrayList(dataMap.size());
1378 
1379  for (Map.Entry<String, OmniSciData> pair : dataMap.entrySet()) {
1380  columnsList.add(pair.getValue().getTColumn());
1381  rowDesc.add(createTColumnType(pair.getKey(), new TTypeInfo(strTTI)));
1382  }
1383 
1384  // create a rowset for the result
1385  TRowSet rowSet = new TRowSet(rowDesc, null, columnsList, true);
1386 
1387  TQueryResult result = new TQueryResult(
1388  rowSet, 0, 0, null, null, true, com.omnisci.thrift.server.TQueryType.UNKNOWN);
1389 
1390  OmniSciResultSet cols = new OmniSciResultSet(result, "getPrivileges");
1391  return cols;
1392  }
TColumnType createTColumnType(String colName, TTypeInfo colType)
void tablePermProcess(List< String > tables, Map< String, OmniSciData > dataMap, String tableNamePattern)

+ Here is the call graph for this function:

ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getTables ( String  catalog,
String  schemaPattern,
String  tableNamePattern,
String[]  types 
) throws SQLException
inline

Definition at line 856 of file OmniSciDatabaseMetaData.java.

References generate_TableFunctionsFactory_init.add, com.omnisci.jdbc.OmniSciDatabaseMetaData.createTColumnData(), com.omnisci.jdbc.OmniSciDatabaseMetaData.createTColumnType(), run_benchmark_import.result, and run_benchmark_import.tables.

858  {
859  MAPDLOGGER.debug("Entered");
860 
861  List<String> tables;
862  try {
863  tables = con.client.get_tables(con.session);
864  } catch (TException ex) {
865  throw new SQLException("get_tables failed " + ex.toString());
866  }
867 
868  List<String> views;
869  try {
870  views = con.client.get_views(con.session);
871  } catch (TException ex) {
872  throw new SQLException("get_views failed " + ex.toString());
873  }
874 
875  TTypeInfo strTTI =
876  new TTypeInfo(TDatumType.STR, TEncodingType.NONE, false, false, 0, 0, 0);
877  TColumnType columns[] = {createTColumnType("TABLE_CAT", new TTypeInfo(strTTI)),
878  createTColumnType("TABLE_SCHEM", new TTypeInfo(strTTI)),
879  createTColumnType("TABLE_NAME", new TTypeInfo(strTTI)),
880  createTColumnType("TABLE_TYPE", new TTypeInfo(strTTI)),
881  createTColumnType("REMARKS", new TTypeInfo(strTTI)),
882  createTColumnType("TYPE_CAT", new TTypeInfo(strTTI)),
883  createTColumnType("TYPE_SCHEM", new TTypeInfo(strTTI)),
884  createTColumnType("TYPE_NAME", new TTypeInfo(strTTI)),
885  createTColumnType("SELF_REFERENCING_COL_NAME", new TTypeInfo(strTTI)),
886  createTColumnType("REF_GENERATION", new TTypeInfo(strTTI))};
887 
888  Map<String, ArrayList<String>> dataMap = new HashMap(columns.length);
889  Map<String, ArrayList<Boolean>> nullMap = new HashMap(columns.length);
890 
891  // create component to contain the meta data for the rows
892  // and create a container to store the data and the nul indicators
893  List<TColumnType> rowDesc = new ArrayList(columns.length);
894  for (TColumnType col : columns) {
895  rowDesc.add(col);
896  dataMap.put(col.col_name, new ArrayList());
897  nullMap.put(col.col_name, new ArrayList());
898  }
899  if (schemaPattern == null
900  || schemaPattern.toLowerCase().equals(con.getCatalog().toLowerCase())) {
901  // Now add some actual details for table name
902  for (String x : tables) {
903  dataMap.get("TABLE_NAME").add(x);
904  nullMap.get("TABLE_NAME").add(false);
905  nullMap.get("TABLE_SCHEM").add(true);
906  nullMap.get("TABLE_CAT").add(true);
907  if (views.contains(x) == true) {
908  dataMap.get("TABLE_TYPE").add("VIEW");
909  } else {
910  dataMap.get("TABLE_TYPE").add("TABLE");
911  }
912  nullMap.get("TABLE_TYPE").add(false);
913  nullMap.get("REMARKS").add(true);
914  nullMap.get("TYPE_CAT").add(true);
915  nullMap.get("TYPE_SCHEM").add(true);
916  nullMap.get("TYPE_NAME").add(true);
917  nullMap.get("SELF_REFERENCING_COL_NAME").add(true);
918  nullMap.get("REF_GENERATION").add(true);
919  }
920  }
921  List<TColumn> columnsList = new ArrayList(columns.length);
922 
923  for (TColumnType col : columns) {
924  TColumn schemaCol =
925  createTColumnData(dataMap.get(col.col_name), nullMap.get(col.col_name));
926  columnsList.add(schemaCol);
927  }
928 
929  // create a rowset for the result
930  TRowSet rowSet = new TRowSet(rowDesc, null, columnsList, true);
931 
932  TQueryResult result = new TQueryResult(
933  rowSet, 0, 0, null, null, true, com.omnisci.thrift.server.TQueryType.UNKNOWN);
934 
935  OmniSciResultSet tab = new OmniSciResultSet(result, "GetTables");
936  return tab;
937  }
TColumn createTColumnData(Object data, List< Boolean > nullsList)
TColumnType createTColumnType(String colName, TTypeInfo colType)

+ Here is the call graph for this function:

ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getTableTypes ( ) throws SQLException
inline

Definition at line 1010 of file OmniSciDatabaseMetaData.java.

References generate_TableFunctionsFactory_init.add, com.omnisci.jdbc.OmniSciDatabaseMetaData.createTColumnType(), and run_benchmark_import.result.

1010  {
1011  MAPDLOGGER.debug("Entered");
1012 
1013  TTypeInfo strTTI =
1014  new TTypeInfo(TDatumType.STR, TEncodingType.NONE, false, false, 0, 0, 0);
1015  TColumnType columns[] = {createTColumnType("TABLE_TYPE", new TTypeInfo(strTTI))};
1016 
1017  Map<String, OmniSciData> dataMap = new HashMap(columns.length);
1018 
1019  // create component to contain the meta data for the rows
1020  // and create a container to store the data and the nul indicators
1021  List<TColumnType> rowDesc = new ArrayList(columns.length);
1022  for (TColumnType col : columns) {
1023  rowDesc.add(col);
1024  dataMap.put(col.col_name, new OmniSciData(col.col_type.type));
1025  }
1026 
1027  // Now add some actual details for table name
1028  dataMap.get("TABLE_TYPE").add("TABLE");
1029  dataMap.get("TABLE_TYPE").add("VIEW");
1030 
1031  List<TColumn> columnsList = new ArrayList(columns.length);
1032 
1033  for (TColumnType col : columns) {
1034  TColumn schemaCol = dataMap.get(col.col_name).getTColumn();
1035  columnsList.add(schemaCol);
1036  }
1037 
1038  // create a rowset for the result
1039  TRowSet rowSet = new TRowSet(rowDesc, null, columnsList, true);
1040 
1041  TQueryResult result = new TQueryResult(
1042  rowSet, 0, 0, null, null, true, com.omnisci.thrift.server.TQueryType.UNKNOWN);
1043 
1044  OmniSciResultSet tab = new OmniSciResultSet(result, "getTableTypes");
1045 
1046  // logger.info("Dump result "+ result.toString());
1047  return tab;
1048  }
TColumnType createTColumnType(String colName, TTypeInfo colType)

+ Here is the call graph for this function:

String com.omnisci.jdbc.OmniSciDatabaseMetaData.getTimeDateFunctions ( ) throws SQLException
inline

Definition at line 254 of file OmniSciDatabaseMetaData.java.

254  {
255  MAPDLOGGER.debug("Entered");
256  // return "NOW,CURDATE,SECOND,HOUR,YEAR,EXTRACT,QUARTER,WEEK,MONTH,DATETRUNC";
257  return "DATE_TRUNC, NOW, EXTRACT";
258  }
ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getTypeInfo ( ) throws SQLException
inline

Definition at line 1560 of file OmniSciDatabaseMetaData.java.

References com.omnisci.jdbc.OmniSciDatabaseMetaData.createTColumnType(), and run_benchmark_import.result.

1560  {
1561  MAPDLOGGER.debug("Entered");
1562 
1563  // declare the columns in the result set
1564  TTypeInfo strTTI =
1565  new TTypeInfo(TDatumType.STR, TEncodingType.NONE, false, false, 0, 0, 0);
1566  TTypeInfo intTTI =
1567  new TTypeInfo(TDatumType.INT, TEncodingType.NONE, false, false, 0, 0, 0);
1568  TTypeInfo smallIntTTI =
1569  new TTypeInfo(TDatumType.SMALLINT, TEncodingType.NONE, false, false, 0, 0, 0);
1570  TTypeInfo boolTTI =
1571  new TTypeInfo(TDatumType.BOOL, TEncodingType.NONE, false, false, 0, 0, 0);
1572  TColumnType columns[] = {createTColumnType("TYPE_NAME", new TTypeInfo(strTTI)),
1573  createTColumnType("DATA_TYPE", new TTypeInfo(intTTI)),
1574  createTColumnType("PRECISION", new TTypeInfo(intTTI)),
1575  createTColumnType("LITERAL_PREFIX", new TTypeInfo(strTTI)),
1576  createTColumnType("LITERAL_SUFFIX", new TTypeInfo(strTTI)),
1577  createTColumnType("CREATE_PARAMS", new TTypeInfo(strTTI)),
1578  createTColumnType("NULLABLE", new TTypeInfo(smallIntTTI)),
1579  createTColumnType("CASE_SENSITIVE", new TTypeInfo(boolTTI)),
1580  createTColumnType("SEARCHABLE", new TTypeInfo(smallIntTTI)),
1581  createTColumnType("UNSIGNED_ATTRIBUTE", new TTypeInfo(boolTTI)),
1582  createTColumnType("FIXED_PREC_SCALE", new TTypeInfo(boolTTI)),
1583  createTColumnType("AUTO_INCREMENT", new TTypeInfo(boolTTI)),
1584  createTColumnType("LOCAL_TYPE_NAME", new TTypeInfo(strTTI)),
1585  createTColumnType("MINIMUM_SCALE", new TTypeInfo(smallIntTTI)),
1586  createTColumnType("MAXIMUM_SCALE", new TTypeInfo(smallIntTTI)),
1587  createTColumnType("SQL_DATA_TYPE", new TTypeInfo(intTTI)),
1588  createTColumnType("SQL_DATETIME_SUB", new TTypeInfo(intTTI)),
1589  createTColumnType("NUM_PREC_RADIX", new TTypeInfo(intTTI))};
1590 
1591  Map<String, OmniSciData> dataMap = new HashMap(columns.length);
1592 
1593  // create component to contain the meta data for the rows
1594  // and create a container to store the data and the nul indicators
1595  List<TColumnType> rowDesc = new ArrayList(columns.length);
1596  for (TColumnType col : columns) {
1597  rowDesc.add(col);
1598  dataMap.put(col.col_name, new OmniSciData(col.col_type.type));
1599  }
1600  // TODO this is currently a work in progress need to add actual details here
1601  // Now add some actual details for table name
1602  dataMap.get("TYPE_NAME").setNull(true); // String => Type name
1603  dataMap.get("DATA_TYPE").setNull(true); // int => SQL data type from java.sql.Types
1604  dataMap.get("PRECISION").setNull(true); // int => maximum precision
1605  dataMap.get("LITERAL_PREFIX").setNull(true); //.setNull(true);// String => prefix used
1606  // to quote a literal (may be null)
1607  dataMap.get("LITERAL_SUFFIX").setNull(true); //.setNull(true);// String => suffix used
1608  // to quote a literal (may be null)
1609  dataMap.get("CREATE_PARAMS")
1610  .setNull(
1611  true); // String => parameters used in creating the type (may be null)
1612  dataMap.get("NULLABLE").setNull(true); // short => can you use NULL for this type.
1613  // typeNoNulls - does not allow NULL values
1614  // typeNullable - allows NULL values
1615  // typeNullableUnknown - nullability unknown
1616  dataMap.get("CASE_SENSITIVE").setNull(true); // boolean=> is it case sensitive.
1617  dataMap.get("SEARCHABLE")
1618  .setNull(true); // short => can you use "WHERE" based on this type:
1619  // typePredNone - No support
1620  // typePredChar - Only supported with WHERE .. LIKE
1621  // typePredBasic - Supported except for WHERE .. LIKE
1622  // typeSearchable - Supported for all WHERE ..
1623  dataMap.get("UNSIGNED_ATTRIBUTE").setNull(true); // boolean => is it unsigned.
1624  dataMap.get("FIXED_PREC_SCALE").setNull(true); // boolean => can it be a money value.
1625  dataMap.get("AUTO_INCREMENT")
1626  .setNull(false); // boolean => can it be used for an auto-increment value.
1627  dataMap.get("LOCAL_TYPE_NAME")
1628  .setNull(true); // String => localized version of type name (may be null)
1629  dataMap.get("MINIMUM_SCALE").setNull(true); // short => minimum scale supported
1630  dataMap.get("MAXIMUM_SCALE").setNull(true); // short => maximum scale supported
1631  dataMap.get("SQL_DATA_TYPE").setNull(true); // int => unused
1632  dataMap.get("SQL_DATETIME_SUB").setNull(true); // int => unused
1633  dataMap.get("NUM_PREC_RADIX").setNull(true); //
1634 
1635  List<TColumn> columnsList = new ArrayList(columns.length);
1636 
1637  for (TColumnType col : columns) {
1638  TColumn schemaCol = dataMap.get(col.col_name).getTColumn();
1639  // logger.info("Tcolumn is "+ schemaCol.toString());
1640  columnsList.add(schemaCol);
1641  }
1642 
1643  // create a rowset for the result
1644  TRowSet rowSet = new TRowSet(rowDesc, null, columnsList, true);
1645 
1646  TQueryResult result = new TQueryResult(
1647  rowSet, 0, 0, null, null, true, com.omnisci.thrift.server.TQueryType.UNKNOWN);
1648 
1649  OmniSciResultSet cols = new OmniSciResultSet(result, "getTypeInfo");
1650  return cols;
1651  }
TColumnType createTColumnType(String colName, TTypeInfo colType)

+ Here is the call graph for this function:

ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getUDTs ( String  catalog,
String  schemaPattern,
String  typeNamePattern,
int[]  types 
) throws SQLException
inline

Definition at line 1737 of file OmniSciDatabaseMetaData.java.

1739  {
1740  MAPDLOGGER.debug("Entered");
1741  throw new UnsupportedOperationException("Not supported yet,"
1742  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1743  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1744  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1745  }
String com.omnisci.jdbc.OmniSciDatabaseMetaData.getURL ( ) throws SQLException
inline

Definition at line 86 of file OmniSciDatabaseMetaData.java.

References setup.url.

86  {
87  MAPDLOGGER.debug("Entered");
88  return con.url;
89  }
string url
Definition: setup.py:48
String com.omnisci.jdbc.OmniSciDatabaseMetaData.getUserName ( ) throws SQLException
inline

Definition at line 92 of file OmniSciDatabaseMetaData.java.

References com.omnisci.jdbc.Options.user.

92  {
93  MAPDLOGGER.debug("Entered");
94  return (String) con.cP.get(Options.user);
95  }
ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getVersionColumns ( String  catalog,
String  schema,
String  table 
) throws SQLException
inline

Definition at line 1406 of file OmniSciDatabaseMetaData.java.

1407  {
1408  MAPDLOGGER.debug("Entered");
1409  throw new UnsupportedOperationException("Not supported yet,"
1410  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1411  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1412  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1413  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.insertsAreDetected ( int  type) throws SQLException
inline

Definition at line 1725 of file OmniSciDatabaseMetaData.java.

1725  {
1726  MAPDLOGGER.debug("Entered");
1727  return false;
1728  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.isCatalogAtStart ( ) throws SQLException
inline

Definition at line 453 of file OmniSciDatabaseMetaData.java.

453  {
454  MAPDLOGGER.debug("Entered");
455  return true;
456  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.isReadOnly ( ) throws SQLException
inline

Definition at line 98 of file OmniSciDatabaseMetaData.java.

98  {
99  MAPDLOGGER.debug("Entered");
100  return true;
101  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.isWrapperFor ( Class<?>  iface) throws SQLException
inline

Definition at line 1946 of file OmniSciDatabaseMetaData.java.

1946  {
1947  MAPDLOGGER.debug("Entered");
1948  return false;
1949  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.locatorsUpdateCopy ( ) throws SQLException
inline

Definition at line 1854 of file OmniSciDatabaseMetaData.java.

1854  {
1855  MAPDLOGGER.debug("Entered");
1856  return false;
1857  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.nullPlusNonNullIsNull ( ) throws SQLException
inline

Definition at line 291 of file OmniSciDatabaseMetaData.java.

291  {
292  MAPDLOGGER.debug("Entered");
293  return true;
294  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.nullsAreSortedAtEnd ( ) throws SQLException
inline

Definition at line 122 of file OmniSciDatabaseMetaData.java.

122  {
123  MAPDLOGGER.debug("Entered");
124  return true;
125  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.nullsAreSortedAtStart ( ) throws SQLException
inline

Definition at line 116 of file OmniSciDatabaseMetaData.java.

116  {
117  MAPDLOGGER.debug("Entered");
118  return false;
119  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.nullsAreSortedHigh ( ) throws SQLException
inline

Definition at line 104 of file OmniSciDatabaseMetaData.java.

104  {
105  MAPDLOGGER.debug("Entered");
106  return true;
107  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.nullsAreSortedLow ( ) throws SQLException
inline

Definition at line 110 of file OmniSciDatabaseMetaData.java.

110  {
111  MAPDLOGGER.debug("Entered");
112  return false;
113  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.othersDeletesAreVisible ( int  type) throws SQLException
inline

Definition at line 1701 of file OmniSciDatabaseMetaData.java.

1701  {
1702  MAPDLOGGER.debug("Entered");
1703  return false;
1704  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.othersInsertsAreVisible ( int  type) throws SQLException
inline

Definition at line 1707 of file OmniSciDatabaseMetaData.java.

1707  {
1708  MAPDLOGGER.debug("Entered");
1709  return false;
1710  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.othersUpdatesAreVisible ( int  type) throws SQLException
inline

Definition at line 1695 of file OmniSciDatabaseMetaData.java.

1695  {
1696  MAPDLOGGER.debug("Entered");
1697  return false;
1698  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.ownDeletesAreVisible ( int  type) throws SQLException
inline

Definition at line 1683 of file OmniSciDatabaseMetaData.java.

1683  {
1684  MAPDLOGGER.debug("Entered");
1685  return false;
1686  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.ownInsertsAreVisible ( int  type) throws SQLException
inline

Definition at line 1689 of file OmniSciDatabaseMetaData.java.

1689  {
1690  MAPDLOGGER.debug("Entered");
1691  return false;
1692  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.ownUpdatesAreVisible ( int  type) throws SQLException
inline

Definition at line 1677 of file OmniSciDatabaseMetaData.java.

1677  {
1678  MAPDLOGGER.debug("Entered");
1679  return false;
1680  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.storesLowerCaseIdentifiers ( ) throws SQLException
inline

Definition at line 187 of file OmniSciDatabaseMetaData.java.

187  {
188  MAPDLOGGER.debug("Entered");
189  return false;
190  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.storesLowerCaseQuotedIdentifiers ( ) throws SQLException
inline

Definition at line 211 of file OmniSciDatabaseMetaData.java.

211  {
212  MAPDLOGGER.debug("Entered");
213  return false;
214  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.storesMixedCaseIdentifiers ( ) throws SQLException
inline

Definition at line 193 of file OmniSciDatabaseMetaData.java.

193  {
194  MAPDLOGGER.debug("Entered");
195  return true;
196  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.storesMixedCaseQuotedIdentifiers ( ) throws SQLException
inline

Definition at line 217 of file OmniSciDatabaseMetaData.java.

217  {
218  MAPDLOGGER.debug("Entered");
219  return false;
220  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.storesUpperCaseIdentifiers ( ) throws SQLException
inline

Definition at line 181 of file OmniSciDatabaseMetaData.java.

181  {
182  MAPDLOGGER.debug("Entered");
183  return false;
184  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.storesUpperCaseQuotedIdentifiers ( ) throws SQLException
inline

Definition at line 205 of file OmniSciDatabaseMetaData.java.

205  {
206  MAPDLOGGER.debug("Entered");
207  return false;
208  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsAlterTableWithAddColumn ( ) throws SQLException
inline

Definition at line 273 of file OmniSciDatabaseMetaData.java.

273  {
274  MAPDLOGGER.debug("Entered");
275  return true;
276  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsAlterTableWithDropColumn ( ) throws SQLException
inline

Definition at line 279 of file OmniSciDatabaseMetaData.java.

279  {
280  MAPDLOGGER.debug("Entered");
281  return true;
282  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsANSI92EntryLevelSQL ( ) throws SQLException
inline

Definition at line 393 of file OmniSciDatabaseMetaData.java.

393  {
394  MAPDLOGGER.debug("Entered");
395  return true;
396  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsANSI92FullSQL ( ) throws SQLException
inline

Definition at line 405 of file OmniSciDatabaseMetaData.java.

405  {
406  MAPDLOGGER.debug("Entered");
407  return false;
408  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsANSI92IntermediateSQL ( ) throws SQLException
inline

Definition at line 399 of file OmniSciDatabaseMetaData.java.

399  {
400  MAPDLOGGER.debug("Entered");
401  return false;
402  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsBatchUpdates ( ) throws SQLException
inline

Definition at line 1731 of file OmniSciDatabaseMetaData.java.

1731  {
1732  MAPDLOGGER.debug("Entered");
1733  return true;
1734  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsCatalogsInDataManipulation ( ) throws SQLException
inline

Definition at line 495 of file OmniSciDatabaseMetaData.java.

495  {
496  MAPDLOGGER.debug("Entered");
497  return false;
498  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsCatalogsInIndexDefinitions ( ) throws SQLException
inline

Definition at line 513 of file OmniSciDatabaseMetaData.java.

513  {
514  MAPDLOGGER.debug("Entered");
515  return false;
516  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsCatalogsInPrivilegeDefinitions ( ) throws SQLException
inline

Definition at line 519 of file OmniSciDatabaseMetaData.java.

519  {
520  MAPDLOGGER.debug("Entered");
521  return false;
522  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsCatalogsInProcedureCalls ( ) throws SQLException
inline

Definition at line 501 of file OmniSciDatabaseMetaData.java.

501  {
502  MAPDLOGGER.debug("Entered");
503  return false;
504  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsCatalogsInTableDefinitions ( ) throws SQLException
inline

Definition at line 507 of file OmniSciDatabaseMetaData.java.

507  {
508  MAPDLOGGER.debug("Entered");
509  return false;
510  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsColumnAliasing ( ) throws SQLException
inline

Definition at line 285 of file OmniSciDatabaseMetaData.java.

285  {
286  MAPDLOGGER.debug("Entered");
287  return true;
288  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsConvert ( ) throws SQLException
inline

Definition at line 297 of file OmniSciDatabaseMetaData.java.

297  {
298  MAPDLOGGER.debug("Entered");
299  return false;
300  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsConvert ( int  fromType,
int  toType 
) throws SQLException
inline

Definition at line 303 of file OmniSciDatabaseMetaData.java.

303  {
304  MAPDLOGGER.debug("Entered");
305  return false;
306  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsCoreSQLGrammar ( ) throws SQLException
inline

Definition at line 381 of file OmniSciDatabaseMetaData.java.

381  {
382  MAPDLOGGER.debug("Entered");
383  return true;
384  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsCorrelatedSubqueries ( ) throws SQLException
inline

Definition at line 573 of file OmniSciDatabaseMetaData.java.

573  {
574  MAPDLOGGER.debug("Entered");
575  return false;
576  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsDataDefinitionAndDataManipulationTransactions ( ) throws SQLException
inline

Definition at line 759 of file OmniSciDatabaseMetaData.java.

760  {
761  MAPDLOGGER.debug("Entered");
762  return false;
763  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsDataManipulationTransactionsOnly ( ) throws SQLException
inline

Definition at line 766 of file OmniSciDatabaseMetaData.java.

766  {
767  MAPDLOGGER.debug("Entered");
768  return false;
769  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsDifferentTableCorrelationNames ( ) throws SQLException
inline

Definition at line 315 of file OmniSciDatabaseMetaData.java.

315  {
316  MAPDLOGGER.debug("Entered");
317  return true;
318  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsExpressionsInOrderBy ( ) throws SQLException
inline

Definition at line 321 of file OmniSciDatabaseMetaData.java.

321  {
322  MAPDLOGGER.debug("Entered");
323  return true;
324  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsExtendedSQLGrammar ( ) throws SQLException
inline

Definition at line 387 of file OmniSciDatabaseMetaData.java.

387  {
388  MAPDLOGGER.debug("Entered");
389  return true;
390  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsFullOuterJoins ( ) throws SQLException
inline

Definition at line 423 of file OmniSciDatabaseMetaData.java.

423  {
424  MAPDLOGGER.debug("Entered");
425  return false;
426  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsGetGeneratedKeys ( ) throws SQLException
inline

Definition at line 1772 of file OmniSciDatabaseMetaData.java.

1772  {
1773  MAPDLOGGER.debug("Entered");
1774  return false;
1775  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsGroupBy ( ) throws SQLException
inline

Definition at line 333 of file OmniSciDatabaseMetaData.java.

333  {
334  MAPDLOGGER.debug("Entered");
335  return true;
336  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsGroupByBeyondSelect ( ) throws SQLException
inline

Definition at line 345 of file OmniSciDatabaseMetaData.java.

345  {
346  MAPDLOGGER.debug("Entered");
347  return true;
348  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsGroupByUnrelated ( ) throws SQLException
inline

Definition at line 339 of file OmniSciDatabaseMetaData.java.

339  {
340  MAPDLOGGER.debug("Entered");
341  return true;
342  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsIntegrityEnhancementFacility ( ) throws SQLException
inline

Definition at line 411 of file OmniSciDatabaseMetaData.java.

411  {
412  MAPDLOGGER.debug("Entered");
413  return false;
414  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsLikeEscapeClause ( ) throws SQLException
inline

Definition at line 351 of file OmniSciDatabaseMetaData.java.

351  {
352  MAPDLOGGER.debug("Entered");
353  return false;
354  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsLimitedOuterJoins ( ) throws SQLException
inline

Definition at line 429 of file OmniSciDatabaseMetaData.java.

429  {
430  MAPDLOGGER.debug("Entered");
431  return true;
432  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsMinimumSQLGrammar ( ) throws SQLException
inline

Definition at line 375 of file OmniSciDatabaseMetaData.java.

375  {
376  MAPDLOGGER.debug("Entered");
377  return true;
378  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsMixedCaseIdentifiers ( ) throws SQLException
inline

Definition at line 175 of file OmniSciDatabaseMetaData.java.

175  {
176  MAPDLOGGER.debug("Entered");
177  return true;
178  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsMixedCaseQuotedIdentifiers ( ) throws SQLException
inline

Definition at line 199 of file OmniSciDatabaseMetaData.java.

199  {
200  MAPDLOGGER.debug("Entered");
201  return true;
202  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsMultipleOpenResults ( ) throws SQLException
inline

Definition at line 1766 of file OmniSciDatabaseMetaData.java.

1766  {
1767  MAPDLOGGER.debug("Entered");
1768  return false;
1769  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsMultipleResultSets ( ) throws SQLException
inline

Definition at line 357 of file OmniSciDatabaseMetaData.java.

357  {
358  MAPDLOGGER.debug("Entered");
359  return false;
360  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsMultipleTransactions ( ) throws SQLException
inline

Definition at line 363 of file OmniSciDatabaseMetaData.java.

363  {
364  MAPDLOGGER.debug("Entered");
365  return false;
366  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsNamedParameters ( ) throws SQLException
inline

Definition at line 1760 of file OmniSciDatabaseMetaData.java.

1760  {
1761  MAPDLOGGER.debug("Entered");
1762  return false;
1763  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsNonNullableColumns ( ) throws SQLException
inline

Definition at line 369 of file OmniSciDatabaseMetaData.java.

369  {
370  MAPDLOGGER.debug("Entered");
371  return true;
372  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsOpenCursorsAcrossCommit ( ) throws SQLException
inline

Definition at line 591 of file OmniSciDatabaseMetaData.java.

591  {
592  MAPDLOGGER.debug("Entered");
593  return false;
594  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsOpenCursorsAcrossRollback ( ) throws SQLException
inline

Definition at line 597 of file OmniSciDatabaseMetaData.java.

597  {
598  MAPDLOGGER.debug("Entered");
599  return false;
600  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsOpenStatementsAcrossCommit ( ) throws SQLException
inline

Definition at line 603 of file OmniSciDatabaseMetaData.java.

603  {
604  MAPDLOGGER.debug("Entered");
605  return false;
606  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsOpenStatementsAcrossRollback ( ) throws SQLException
inline

Definition at line 609 of file OmniSciDatabaseMetaData.java.

609  {
610  MAPDLOGGER.debug("Entered");
611  return false;
612  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsOrderByUnrelated ( ) throws SQLException
inline

Definition at line 327 of file OmniSciDatabaseMetaData.java.

327  {
328  MAPDLOGGER.debug("Entered");
329  return true;
330  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsOuterJoins ( ) throws SQLException
inline

Definition at line 417 of file OmniSciDatabaseMetaData.java.

417  {
418  MAPDLOGGER.debug("Entered");
419  return false;
420  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsPositionedDelete ( ) throws SQLException
inline

Definition at line 525 of file OmniSciDatabaseMetaData.java.

525  {
526  MAPDLOGGER.debug("Entered");
527  return false;
528  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsPositionedUpdate ( ) throws SQLException
inline

Definition at line 531 of file OmniSciDatabaseMetaData.java.

531  {
532  MAPDLOGGER.debug("Entered");
533  return false;
534  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsResultSetConcurrency ( int  type,
int  concurrency 
) throws SQLException
inline

Definition at line 1670 of file OmniSciDatabaseMetaData.java.

1671  {
1672  MAPDLOGGER.debug("Entered");
1673  return false;
1674  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsResultSetHoldability ( int  holdability) throws SQLException
inline

Definition at line 1812 of file OmniSciDatabaseMetaData.java.

1812  {
1813  MAPDLOGGER.debug("Entered");
1814  return false;
1815  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsResultSetType ( int  type) throws SQLException
inline

Definition at line 1664 of file OmniSciDatabaseMetaData.java.

1664  {
1665  MAPDLOGGER.debug("Entered");
1666  return false;
1667  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsSavepoints ( ) throws SQLException
inline

Definition at line 1754 of file OmniSciDatabaseMetaData.java.

1754  {
1755  MAPDLOGGER.debug("Entered");
1756  return false;
1757  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsSchemasInDataManipulation ( ) throws SQLException
inline

Definition at line 465 of file OmniSciDatabaseMetaData.java.

465  {
466  MAPDLOGGER.debug("Entered");
467  return false;
468  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsSchemasInIndexDefinitions ( ) throws SQLException
inline

Definition at line 483 of file OmniSciDatabaseMetaData.java.

483  {
484  MAPDLOGGER.debug("Entered");
485  return false;
486  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsSchemasInPrivilegeDefinitions ( ) throws SQLException
inline

Definition at line 489 of file OmniSciDatabaseMetaData.java.

489  {
490  MAPDLOGGER.debug("Entered");
491  return false;
492  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsSchemasInProcedureCalls ( ) throws SQLException
inline

Definition at line 471 of file OmniSciDatabaseMetaData.java.

471  {
472  MAPDLOGGER.debug("Entered");
473  return false;
474  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsSchemasInTableDefinitions ( ) throws SQLException
inline

Definition at line 477 of file OmniSciDatabaseMetaData.java.

477  {
478  MAPDLOGGER.debug("Entered");
479  return false;
480  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsSelectForUpdate ( ) throws SQLException
inline

Definition at line 537 of file OmniSciDatabaseMetaData.java.

537  {
538  MAPDLOGGER.debug("Entered");
539  return false;
540  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsStatementPooling ( ) throws SQLException
inline

Definition at line 1860 of file OmniSciDatabaseMetaData.java.

1860  {
1861  MAPDLOGGER.debug("Entered");
1862  return false;
1863  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsStoredFunctionsUsingCallSyntax ( ) throws SQLException
inline

Definition at line 1878 of file OmniSciDatabaseMetaData.java.

1878  {
1879  MAPDLOGGER.debug("Entered");
1880  return false;
1881  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsStoredProcedures ( ) throws SQLException
inline

Definition at line 543 of file OmniSciDatabaseMetaData.java.

543  {
544  MAPDLOGGER.debug("Entered");
545  return false;
546  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsSubqueriesInComparisons ( ) throws SQLException
inline

Definition at line 549 of file OmniSciDatabaseMetaData.java.

549  {
550  MAPDLOGGER.debug("Entered");
551  return true;
552  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsSubqueriesInExists ( ) throws SQLException
inline

Definition at line 555 of file OmniSciDatabaseMetaData.java.

555  {
556  MAPDLOGGER.debug("Entered");
557  return true;
558  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsSubqueriesInIns ( ) throws SQLException
inline

Definition at line 561 of file OmniSciDatabaseMetaData.java.

561  {
562  MAPDLOGGER.debug("Entered");
563  return true;
564  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsSubqueriesInQuantifieds ( ) throws SQLException
inline

Definition at line 567 of file OmniSciDatabaseMetaData.java.

567  {
568  MAPDLOGGER.debug("Entered");
569  return true;
570  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsTableCorrelationNames ( ) throws SQLException
inline

Definition at line 309 of file OmniSciDatabaseMetaData.java.

309  {
310  MAPDLOGGER.debug("Entered");
311  return true;
312  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsTransactionIsolationLevel ( int  level) throws SQLException
inline

Definition at line 753 of file OmniSciDatabaseMetaData.java.

753  {
754  MAPDLOGGER.debug("Entered");
755  return false;
756  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsTransactions ( ) throws SQLException
inline

Definition at line 747 of file OmniSciDatabaseMetaData.java.

747  {
748  MAPDLOGGER.debug("Entered");
749  return false;
750  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsUnion ( ) throws SQLException
inline

Definition at line 579 of file OmniSciDatabaseMetaData.java.

579  {
580  MAPDLOGGER.debug("Entered");
581  return false;
582  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsUnionAll ( ) throws SQLException
inline

Definition at line 585 of file OmniSciDatabaseMetaData.java.

585  {
586  MAPDLOGGER.debug("Entered");
587  return false;
588  }
void com.omnisci.jdbc.OmniSciDatabaseMetaData.tablePermProcess ( List< String >  tables,
Map< String, OmniSciData dataMap,
String  tableNamePattern 
) throws TException
inlineprivate

Definition at line 1280 of file OmniSciDatabaseMetaData.java.

References generate_TableFunctionsFactory_init.add, field(), test_readcsv.table, TableDBObjectType, and run_benchmark_import.tables.

Referenced by com.omnisci.jdbc.OmniSciDatabaseMetaData.getTablePrivileges().

1282  {
1283  for (String table : tables) {
1284  if (tableNamePattern != null && !table.matches(tableNamePattern)) {
1285  continue;
1286  }
1287  List<TDBObject> db_objects = con.client.get_db_object_privs(
1288  con.session, table, TDBObjectType.TableDBObjectType);
1289 
1290  // check if the table matches the input pattern
1291  for (TDBObject db_object : db_objects) {
1292  // If the user is a super user then the objectName will be super
1293  // and needs to be changed to the table name.
1294  if (db_object.objectName.equalsIgnoreCase("super")) {
1295  db_object.objectName = table;
1296  }
1297  // A bunch of db objects come back. Any with a different name throw away
1298  if (!db_object.objectName.equalsIgnoreCase(table)) {
1299  continue;
1300  }
1301 
1302  // Create set of table permissions based ont he db_object. This seems to
1303  // be the only way - though being hardwired on the number of privs is not great.
1304  TTablePermissions tt = new TTablePermissions(db_object.privs.get(0),
1305  db_object.privs.get(1),
1306  db_object.privs.get(2),
1307  db_object.privs.get(3),
1308  db_object.privs.get(4),
1309  db_object.privs.get(5),
1310  db_object.privs.get(6),
1311  db_object.privs.get(7));
1312 
1313  int ordinal = 1;
1314  for (TTablePermissions._Fields field = tt.fieldForId(ordinal); field != null;
1315  field = tt.fieldForId(++ordinal)) {
1316  Boolean x = (Boolean) tt.getFieldValue(field);
1317  if (x == false) {
1318  continue;
1319  }
1320  // standardise the fieldName upper case and remove trailing '_'. create_ =>
1321  // CREATE
1322  dataMap.get("PRIVILEGE")
1323  .add(field.getFieldName().toUpperCase().replace("_", ""));
1324  dataMap.get("TABLE_CAT").setNull(true);
1325  dataMap.get("TABLE_SCHEM").setNull(true);
1326  dataMap.get("TABLE_NAME").add(db_object.objectName);
1327  dataMap.get("GRANTOR").setNull(true);
1328  dataMap.get("GRANTEE").add(db_object.grantee);
1329  dataMap.get("IS_GRANTABLE").add("NO");
1330  }
1331  }
1332  }
1333  }
const rapidjson::Value & field(const rapidjson::Value &obj, const char field[]) noexcept
Definition: JsonAccessors.h:31

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 1940 of file OmniSciDatabaseMetaData.java.

1940  {
1941  MAPDLOGGER.debug("Entered");
1942  return null;
1943  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.updatesAreDetected ( int  type) throws SQLException
inline

Definition at line 1713 of file OmniSciDatabaseMetaData.java.

1713  {
1714  MAPDLOGGER.debug("Entered");
1715  return false;
1716  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.usesLocalFilePerTable ( ) throws SQLException
inline

Definition at line 169 of file OmniSciDatabaseMetaData.java.

169  {
170  MAPDLOGGER.debug("Entered");
171  return false;
172  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.usesLocalFiles ( ) throws SQLException
inline

Definition at line 163 of file OmniSciDatabaseMetaData.java.

163  {
164  MAPDLOGGER.debug("Entered");
165  return false;
166  }

Member Data Documentation

OmniSciConnection com.omnisci.jdbc.OmniSciDatabaseMetaData.con = null
package
int com.omnisci.jdbc.OmniSciDatabaseMetaData.databaseMajorVersion = 0
package
int com.omnisci.jdbc.OmniSciDatabaseMetaData.databaseMinorVersion = 0
package
String com.omnisci.jdbc.OmniSciDatabaseMetaData.databaseVersion = null
package
final Logger com.omnisci.jdbc.OmniSciDatabaseMetaData.MAPDLOGGER = LoggerFactory.getLogger(OmniSciDatabaseMetaData.class)
staticpackage

Definition at line 48 of file OmniSciDatabaseMetaData.java.


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