OmniSciDB  f632821e96
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

◆ OmniSciDatabaseMetaData()

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

Definition at line 55 of file OmniSciDatabaseMetaData.java.

References com.omnisci.jdbc.OmniSciConnection.client.

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

◆ allProceduresAreCallable()

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  }

◆ allTablesAreSelectable()

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  }

◆ autoCommitFailureClosesAllResultSets()

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

Definition at line 1885 of file OmniSciDatabaseMetaData.java.

1885  {
1886  MAPDLOGGER.debug("Entered");
1887  return false;
1888  }

◆ createTColumnData()

TColumn com.omnisci.jdbc.OmniSciDatabaseMetaData.createTColumnData ( Object  data,
List< Boolean >  nullsList 
)
inlineprivate

Definition at line 941 of file OmniSciDatabaseMetaData.java.

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

941  {
942  TColumnData colData = new TColumnData();
943  colData.setStr_col((List<String>) data);
944 
945  TColumn col = new TColumn(colData, nullsList);
946  return col;
947  }
+ Here is the caller graph for this function:

◆ createTColumnType() [1/2]

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

◆ createTColumnType() [2/2]

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

Definition at line 817 of file OmniSciDatabaseMetaData.java.

817  {
818  TColumnType ct = new TColumnType();
819  ct.col_name = colName;
820  ct.col_type = colType;
821  ct.is_reserved_keyword = irk;
822  ct.is_system = false;
823  ct.is_physical = false;
824  return ct;
825  }

◆ dataDefinitionCausesTransactionCommit()

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

Definition at line 773 of file OmniSciDatabaseMetaData.java.

773  {
774  MAPDLOGGER.debug("Entered");
775  return false;
776  }

◆ dataDefinitionIgnoredInTransactions()

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

Definition at line 779 of file OmniSciDatabaseMetaData.java.

779  {
780  MAPDLOGGER.debug("Entered");
781  return false;
782  }

◆ deletesAreDetected()

boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.deletesAreDetected ( int  type) throws SQLException
inline

Definition at line 1720 of file OmniSciDatabaseMetaData.java.

1720  {
1721  MAPDLOGGER.debug("Entered");
1722  return false;
1723  }

◆ doesMaxRowSizeIncludeBlobs()

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

Definition at line 706 of file OmniSciDatabaseMetaData.java.

706  {
707  MAPDLOGGER.debug("Entered");
708  return false;
709  }

◆ generatedKeyAlwaysReturned()

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

Definition at line 1935 of file OmniSciDatabaseMetaData.java.

1935  {
1936  MAPDLOGGER.debug("Entered");
1937  return false;
1938  }

◆ getAttributes()

ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getAttributes ( String  catalog,
String  schemaPattern,
String  typeNamePattern,
String  attributeNamePattern 
) throws SQLException
inline

Definition at line 1801 of file OmniSciDatabaseMetaData.java.

1804  {
1805  MAPDLOGGER.debug("Entered");
1806  throw new UnsupportedOperationException("Not supported yet,"
1807  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1808  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1809  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1810  }

◆ getBestRowIdentifier()

ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getBestRowIdentifier ( String  catalog,
String  schema,
String  table,
int  scope,
boolean  nullable 
) throws SQLException
inline

Definition at line 1396 of file OmniSciDatabaseMetaData.java.

1398  {
1399  MAPDLOGGER.debug("Entered");
1400  throw new UnsupportedOperationException("Not supported yet,"
1401  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1402  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1403  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1404  }

◆ getCatalogs()

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

Definition at line 1005 of file OmniSciDatabaseMetaData.java.

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

1005  {
1006  MAPDLOGGER.debug("Entered");
1007  return getSchemas();
1008  }
+ Here is the call graph for this function:

◆ getCatalogSeparator()

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

Definition at line 460 of file OmniSciDatabaseMetaData.java.

460  {
461  MAPDLOGGER.debug("Entered");
462  return ".";
463  }

◆ getCatalogTerm()

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

Definition at line 448 of file OmniSciDatabaseMetaData.java.

448  {
449  MAPDLOGGER.debug("Entered");
450  return "N/A";
451  }

◆ getClientInfoProperties()

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

Definition at line 1891 of file OmniSciDatabaseMetaData.java.

1891  {
1892  MAPDLOGGER.debug("Entered");
1893  throw new UnsupportedOperationException("Not supported yet,"
1894  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1895  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1896  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1897  }

◆ getColumnPrivileges()

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

Definition at line 1246 of file OmniSciDatabaseMetaData.java.

1248  {
1249  MAPDLOGGER.debug("Entered");
1250  throw new UnsupportedOperationException("Not supported yet,"
1251  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1252  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1253  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1254  }

◆ getColumns()

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

Definition at line 1108 of file OmniSciDatabaseMetaData.java.

References com.omnisci.jdbc.OmniSciConnection.client, com.omnisci.jdbc.OmniSciDatabaseMetaData.createTColumnType(), run_benchmark_import.result, com.omnisci.jdbc.OmniSciConnection.session, run_benchmark_import.tables, and com.omnisci.jdbc.OmniSciType.toJava().

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

◆ getConnection()

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

Definition at line 1749 of file OmniSciDatabaseMetaData.java.

References com.omnisci.jdbc.OmniSciDatabaseMetaData.con.

1749  {
1750  MAPDLOGGER.debug("Entered");
1751  return con;
1752  }

◆ getCrossReference()

ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getCrossReference ( String  parentCatalog,
String  parentSchema,
String  parentTable,
String  foreignCatalog,
String  foreignSchema,
String  foreignTable 
) throws SQLException
inline

Definition at line 1496 of file OmniSciDatabaseMetaData.java.

1501  {
1502  MAPDLOGGER.debug("Entered");
1503  throw new UnsupportedOperationException("Not supported yet,"
1504  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1505  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1506  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1507  }

◆ getDatabaseMajorVersion()

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

◆ getDatabaseMinorVersion()

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

◆ getDatabaseProductName()

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

Definition at line 128 of file OmniSciDatabaseMetaData.java.

128  {
129  MAPDLOGGER.debug("Entered");
130  return "MapD DB";
131  }

◆ getDatabaseProductVersion()

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

Definition at line 134 of file OmniSciDatabaseMetaData.java.

References com.omnisci.jdbc.OmniSciDatabaseMetaData.databaseVersion.

135  { // logger.debug("Entered");
136  MAPDLOGGER.debug("Entered");
137  return this.databaseVersion;
138  }

◆ getDefaultTransactionIsolation()

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

Definition at line 742 of file OmniSciDatabaseMetaData.java.

742  {
743  MAPDLOGGER.debug("Entered");
744  return Connection.TRANSACTION_NONE;
745  }

◆ getDriverMajorVersion()

int com.omnisci.jdbc.OmniSciDatabaseMetaData.getDriverMajorVersion ( )
inline

Definition at line 154 of file OmniSciDatabaseMetaData.java.

References com.omnisci.jdbc.OmniSciDriver.DriverMajorVersion.

154  {
155  return OmniSciDriver.DriverMajorVersion;
156  }

◆ getDriverMinorVersion()

int com.omnisci.jdbc.OmniSciDatabaseMetaData.getDriverMinorVersion ( )
inline

Definition at line 159 of file OmniSciDatabaseMetaData.java.

References com.omnisci.jdbc.OmniSciDriver.DriverMinorVersion.

159  {
160  return OmniSciDriver.DriverMinorVersion;
161  }

◆ getDriverName()

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

Definition at line 141 of file OmniSciDatabaseMetaData.java.

141  {
142  MAPDLOGGER.debug("Entered");
143  return "MapD Basic JDBC Driver";
144  }

◆ getDriverVersion()

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

Definition at line 147 of file OmniSciDatabaseMetaData.java.

References com.omnisci.jdbc.OmniSciDriver.DriverMajorVersion, and com.omnisci.jdbc.OmniSciDriver.DriverMinorVersion.

147  { // logger.debug("Entered");
148  MAPDLOGGER.debug("Entered");
149  return Integer.toString(OmniSciDriver.DriverMajorVersion) + "."
150  + Integer.toString(OmniSciDriver.DriverMinorVersion);
151  }

◆ getEmptyResultSet()

ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getEmptyResultSet ( )
inline

Definition at line 1256 of file OmniSciDatabaseMetaData.java.

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

1256  {
1257  return new OmniSciResultSet();
1258  }
+ Here is the caller graph for this function:

◆ getEmptyResultSetWithDesc()

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

Definition at line 1261 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().

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

◆ getExportedKeys()

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

Definition at line 1467 of file OmniSciDatabaseMetaData.java.

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

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

◆ getExtraNameCharacters()

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

Definition at line 268 of file OmniSciDatabaseMetaData.java.

268  {
269  MAPDLOGGER.debug("Entered");
270  return "";
271  }

◆ getFunctionColumns()

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

Definition at line 1911 of file OmniSciDatabaseMetaData.java.

1914  {
1915  MAPDLOGGER.debug("Entered");
1916  throw new UnsupportedOperationException("Not supported yet,"
1917  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1918  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1919  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1920  }

◆ getFunctions()

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

Definition at line 1900 of file OmniSciDatabaseMetaData.java.

1902  {
1903  MAPDLOGGER.debug("Entered");
1904  throw new UnsupportedOperationException("Not supported yet,"
1905  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1906  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1907  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1908  }

◆ getIdentifierQuoteString()

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

Definition at line 224 of file OmniSciDatabaseMetaData.java.

224  {
225  MAPDLOGGER.debug("Entered");
226  return " ";
227  }

◆ getImportedKeys()

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

Definition at line 1438 of file OmniSciDatabaseMetaData.java.

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

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

◆ getIndexInfo()

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

Definition at line 1655 of file OmniSciDatabaseMetaData.java.

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

1659  {
1660  MAPDLOGGER.debug("Entered");
1661  return getEmptyResultSet();
1662  }
+ Here is the call graph for this function:

◆ getJDBCMajorVersion()

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

Definition at line 1837 of file OmniSciDatabaseMetaData.java.

1837  {
1838  MAPDLOGGER.debug("Entered");
1839  return 0;
1840  }

◆ getJDBCMinorVersion()

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

Definition at line 1843 of file OmniSciDatabaseMetaData.java.

1843  { // logger.debug("Entered");
1844  MAPDLOGGER.debug("Entered");
1845  return 0;
1846  }

◆ getMaxBinaryLiteralLength()

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

Definition at line 616 of file OmniSciDatabaseMetaData.java.

616  {
617  MAPDLOGGER.debug("Entered");
618  return 0;
619  }

◆ getMaxCatalogNameLength()

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

Definition at line 694 of file OmniSciDatabaseMetaData.java.

694  {
695  MAPDLOGGER.debug("Entered");
696  return 0;
697  }

◆ getMaxCharLiteralLength()

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

Definition at line 622 of file OmniSciDatabaseMetaData.java.

622  {
623  MAPDLOGGER.debug("Entered");
624  return 0;
625  }

◆ getMaxColumnNameLength()

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

Definition at line 628 of file OmniSciDatabaseMetaData.java.

628  {
629  MAPDLOGGER.debug("Entered");
630  return 0;
631  }

◆ getMaxColumnsInGroupBy()

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

Definition at line 634 of file OmniSciDatabaseMetaData.java.

634  {
635  MAPDLOGGER.debug("Entered");
636  return 0;
637  }

◆ getMaxColumnsInIndex()

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

Definition at line 640 of file OmniSciDatabaseMetaData.java.

640  {
641  MAPDLOGGER.debug("Entered");
642  return 0;
643  }

◆ getMaxColumnsInOrderBy()

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

Definition at line 646 of file OmniSciDatabaseMetaData.java.

646  {
647  MAPDLOGGER.debug("Entered");
648  return 0;
649  }

◆ getMaxColumnsInSelect()

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

Definition at line 652 of file OmniSciDatabaseMetaData.java.

652  {
653  MAPDLOGGER.debug("Entered");
654  return 0;
655  }

◆ getMaxColumnsInTable()

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

Definition at line 658 of file OmniSciDatabaseMetaData.java.

658  {
659  MAPDLOGGER.debug("Entered");
660  return 0;
661  }

◆ getMaxConnections()

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

Definition at line 664 of file OmniSciDatabaseMetaData.java.

664  {
665  MAPDLOGGER.debug("Entered");
666  return 0;
667  }

◆ getMaxCursorNameLength()

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

Definition at line 670 of file OmniSciDatabaseMetaData.java.

670  {
671  MAPDLOGGER.debug("Entered");
672  return 0;
673  }

◆ getMaxIndexLength()

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

Definition at line 676 of file OmniSciDatabaseMetaData.java.

676  {
677  MAPDLOGGER.debug("Entered");
678  return 0;
679  }

◆ getMaxProcedureNameLength()

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

Definition at line 688 of file OmniSciDatabaseMetaData.java.

688  {
689  MAPDLOGGER.debug("Entered");
690  return 0;
691  }

◆ getMaxRowSize()

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

Definition at line 700 of file OmniSciDatabaseMetaData.java.

700  {
701  MAPDLOGGER.debug("Entered");
702  return 0;
703  }

◆ getMaxSchemaNameLength()

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

Definition at line 682 of file OmniSciDatabaseMetaData.java.

682  {
683  MAPDLOGGER.debug("Entered");
684  return 0;
685  }

◆ getMaxStatementLength()

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

Definition at line 712 of file OmniSciDatabaseMetaData.java.

712  {
713  MAPDLOGGER.debug("Entered");
714  return 0;
715  }

◆ getMaxStatements()

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

Definition at line 718 of file OmniSciDatabaseMetaData.java.

718  {
719  MAPDLOGGER.debug("Entered");
720  return 0;
721  }

◆ getMaxTableNameLength()

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

Definition at line 724 of file OmniSciDatabaseMetaData.java.

724  {
725  MAPDLOGGER.debug("Entered");
726  return 0;
727  }

◆ getMaxTablesInSelect()

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

Definition at line 730 of file OmniSciDatabaseMetaData.java.

730  {
731  MAPDLOGGER.debug("Entered");
732  return 0;
733  }

◆ getMaxUserNameLength()

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

Definition at line 736 of file OmniSciDatabaseMetaData.java.

736  {
737  MAPDLOGGER.debug("Entered");
738  return 0;
739  }

◆ getNumericFunctions()

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

Definition at line 236 of file OmniSciDatabaseMetaData.java.

236  {
237  MAPDLOGGER.debug("Entered");
238  return "ACOS(float), ACOS(number), ASIN, ATAN2, CEIL, COS, COT, DEGREES, EXP, FLOOR, LN, LOG, PI(), POWER, SQRT"
239  + ", RADIANS, ROUND, SIN, TAN, ATAN, ABS, MOD SIGN, TRUNCATE";
240  }

◆ getPrimaryKeys()

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

Definition at line 1417 of file OmniSciDatabaseMetaData.java.

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

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

◆ getProcedureColumns()

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

Definition at line 798 of file OmniSciDatabaseMetaData.java.

801  {
802  MAPDLOGGER.debug("Entered");
803  throw new UnsupportedOperationException("Not supported yet,"
804  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
805  + " class:" + new Throwable().getStackTrace()[0].getClassName()
806  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
807  }

◆ getProcedures()

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

Definition at line 785 of file OmniSciDatabaseMetaData.java.

787  {
788  MAPDLOGGER.debug("Entered");
789  return null;
790  // throw new UnsupportedOperationException("Not supported yet," + " line:" + new
791  // Throwable().getStackTrace()[0].
792  // getLineNumber() + " class:" + new
793  // Throwable().getStackTrace()[0].getClassName() + " method:" + new
794  // Throwable(). getStackTrace()[0].getMethodName());
795  }

◆ getProcedureTerm()

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

Definition at line 442 of file OmniSciDatabaseMetaData.java.

442  {
443  MAPDLOGGER.debug("Entered");
444  return "N/A";
445  }

◆ getPseudoColumns()

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

Definition at line 1923 of file OmniSciDatabaseMetaData.java.

1926  {
1927  MAPDLOGGER.debug("Entered");
1928  throw new UnsupportedOperationException("Not supported yet,"
1929  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1930  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1931  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1932  }

◆ getResultSetHoldability()

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

Definition at line 1819 of file OmniSciDatabaseMetaData.java.

1819  {
1820  MAPDLOGGER.debug("Entered");
1821  return ResultSet.CLOSE_CURSORS_AT_COMMIT;
1822  }

◆ getRowIdLifetime()

RowIdLifetime com.omnisci.jdbc.OmniSciDatabaseMetaData.getRowIdLifetime ( ) throws SQLException
inline

Definition at line 1867 of file OmniSciDatabaseMetaData.java.

1867  {
1868  MAPDLOGGER.debug("Entered");
1869  return RowIdLifetime.ROWID_VALID_OTHER;
1870  }

◆ getSchemas() [1/2]

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

Definition at line 950 of file OmniSciDatabaseMetaData.java.

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

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

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

◆ getSchemas() [2/2]

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

Definition at line 1873 of file OmniSciDatabaseMetaData.java.

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

1873  {
1874  MAPDLOGGER.debug("Entered");
1875  return getSchemas();
1876  }
+ Here is the call graph for this function:

◆ getSchemaTerm()

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

Definition at line 436 of file OmniSciDatabaseMetaData.java.

436  {
437  MAPDLOGGER.debug("Entered");
438  return "Database";
439  }

◆ getSearchStringEscape()

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

Definition at line 262 of file OmniSciDatabaseMetaData.java.

262  {
263  MAPDLOGGER.debug("Entered");
264  return "\\";
265  }

◆ getSQLKeywords()

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

Definition at line 230 of file OmniSciDatabaseMetaData.java.

230  {
231  MAPDLOGGER.debug("Entered");
232  return "";
233  }

◆ getSQLStateType()

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

Definition at line 1849 of file OmniSciDatabaseMetaData.java.

1849  {
1850  MAPDLOGGER.debug("Entered");
1851  return 0;
1852  }

◆ getStringFunctions()

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

Definition at line 243 of file OmniSciDatabaseMetaData.java.

243  {
244  MAPDLOGGER.debug("Entered");
245  return "CHAR_LENGTH, CHAR, KEY_FOR_STRING";
246  }

◆ getSuperTables()

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

Definition at line 1790 of file OmniSciDatabaseMetaData.java.

1792  {
1793  MAPDLOGGER.debug("Entered");
1794  throw new UnsupportedOperationException("Not supported yet,"
1795  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1796  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1797  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1798  }

◆ getSuperTypes()

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

Definition at line 1779 of file OmniSciDatabaseMetaData.java.

1781  {
1782  MAPDLOGGER.debug("Entered");
1783  throw new UnsupportedOperationException("Not supported yet,"
1784  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1785  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1786  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1787  }

◆ getSystemFunctions()

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

Definition at line 249 of file OmniSciDatabaseMetaData.java.

249  {
250  MAPDLOGGER.debug("Entered");
251  return "";
252  }

◆ getTablePrivileges()

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

Definition at line 1337 of file OmniSciDatabaseMetaData.java.

References com.omnisci.jdbc.OmniSciConnection.client, com.omnisci.jdbc.OmniSciDatabaseMetaData.createTColumnType(), run_benchmark_import.result, com.omnisci.jdbc.OmniSciConnection.session, com.omnisci.jdbc.OmniSciDatabaseMetaData.tablePermProcess(), and run_benchmark_import.tables.

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

◆ getTables()

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

Definition at line 857 of file OmniSciDatabaseMetaData.java.

References com.omnisci.jdbc.OmniSciConnection.client, com.omnisci.jdbc.OmniSciDatabaseMetaData.createTColumnData(), com.omnisci.jdbc.OmniSciDatabaseMetaData.createTColumnType(), com.omnisci.jdbc.OmniSciConnection.getCatalog(), run_benchmark_import.result, com.omnisci.jdbc.OmniSciConnection.session, and run_benchmark_import.tables.

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

◆ getTableTypes()

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

Definition at line 1011 of file OmniSciDatabaseMetaData.java.

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

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

◆ getTimeDateFunctions()

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

Definition at line 255 of file OmniSciDatabaseMetaData.java.

255  {
256  MAPDLOGGER.debug("Entered");
257  // return "NOW,CURDATE,SECOND,HOUR,YEAR,EXTRACT,QUARTER,WEEK,MONTH,DATETRUNC";
258  return "DATE_TRUNC, NOW, EXTRACT";
259  }

◆ getTypeInfo()

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

Definition at line 1561 of file OmniSciDatabaseMetaData.java.

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

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

◆ getUDTs()

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

Definition at line 1738 of file OmniSciDatabaseMetaData.java.

1740  {
1741  MAPDLOGGER.debug("Entered");
1742  throw new UnsupportedOperationException("Not supported yet,"
1743  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1744  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1745  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1746  }

◆ getURL()

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

◆ getUserName()

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

Definition at line 92 of file OmniSciDatabaseMetaData.java.

References com.omnisci.jdbc.OmniSciConnection.cP, and com.omnisci.jdbc.Connection_enums.user.

92  {
93  MAPDLOGGER.debug("Entered");
94  return (String) con.cP.get(Connection_enums.user);
95  }

◆ getVersionColumns()

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

Definition at line 1407 of file OmniSciDatabaseMetaData.java.

1408  {
1409  MAPDLOGGER.debug("Entered");
1410  throw new UnsupportedOperationException("Not supported yet,"
1411  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1412  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1413  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1414  }

◆ insertsAreDetected()

boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.insertsAreDetected ( int  type) throws SQLException
inline

Definition at line 1726 of file OmniSciDatabaseMetaData.java.

1726  {
1727  MAPDLOGGER.debug("Entered");
1728  return false;
1729  }

◆ isCatalogAtStart()

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

Definition at line 454 of file OmniSciDatabaseMetaData.java.

454  {
455  MAPDLOGGER.debug("Entered");
456  return true;
457  }

◆ isReadOnly()

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  }

◆ isWrapperFor()

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

Definition at line 1947 of file OmniSciDatabaseMetaData.java.

1947  {
1948  MAPDLOGGER.debug("Entered");
1949  return false;
1950  }

◆ locatorsUpdateCopy()

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

Definition at line 1855 of file OmniSciDatabaseMetaData.java.

1855  {
1856  MAPDLOGGER.debug("Entered");
1857  return false;
1858  }

◆ nullPlusNonNullIsNull()

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

Definition at line 292 of file OmniSciDatabaseMetaData.java.

292  {
293  MAPDLOGGER.debug("Entered");
294  return true;
295  }

◆ nullsAreSortedAtEnd()

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  }

◆ nullsAreSortedAtStart()

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  }

◆ nullsAreSortedHigh()

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  }

◆ nullsAreSortedLow()

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  }

◆ othersDeletesAreVisible()

boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.othersDeletesAreVisible ( int  type) throws SQLException
inline

Definition at line 1702 of file OmniSciDatabaseMetaData.java.

1702  {
1703  MAPDLOGGER.debug("Entered");
1704  return false;
1705  }

◆ othersInsertsAreVisible()

boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.othersInsertsAreVisible ( int  type) throws SQLException
inline

Definition at line 1708 of file OmniSciDatabaseMetaData.java.

1708  {
1709  MAPDLOGGER.debug("Entered");
1710  return false;
1711  }

◆ othersUpdatesAreVisible()

boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.othersUpdatesAreVisible ( int  type) throws SQLException
inline

Definition at line 1696 of file OmniSciDatabaseMetaData.java.

1696  {
1697  MAPDLOGGER.debug("Entered");
1698  return false;
1699  }

◆ ownDeletesAreVisible()

boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.ownDeletesAreVisible ( int  type) throws SQLException
inline

Definition at line 1684 of file OmniSciDatabaseMetaData.java.

1684  {
1685  MAPDLOGGER.debug("Entered");
1686  return false;
1687  }

◆ ownInsertsAreVisible()

boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.ownInsertsAreVisible ( int  type) throws SQLException
inline

Definition at line 1690 of file OmniSciDatabaseMetaData.java.

1690  {
1691  MAPDLOGGER.debug("Entered");
1692  return false;
1693  }

◆ ownUpdatesAreVisible()

boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.ownUpdatesAreVisible ( int  type) throws SQLException
inline

Definition at line 1678 of file OmniSciDatabaseMetaData.java.

1678  {
1679  MAPDLOGGER.debug("Entered");
1680  return false;
1681  }

◆ storesLowerCaseIdentifiers()

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

Definition at line 188 of file OmniSciDatabaseMetaData.java.

188  {
189  MAPDLOGGER.debug("Entered");
190  return false;
191  }

◆ storesLowerCaseQuotedIdentifiers()

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

Definition at line 212 of file OmniSciDatabaseMetaData.java.

212  {
213  MAPDLOGGER.debug("Entered");
214  return false;
215  }

◆ storesMixedCaseIdentifiers()

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

Definition at line 194 of file OmniSciDatabaseMetaData.java.

194  {
195  MAPDLOGGER.debug("Entered");
196  return true;
197  }

◆ storesMixedCaseQuotedIdentifiers()

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

Definition at line 218 of file OmniSciDatabaseMetaData.java.

218  {
219  MAPDLOGGER.debug("Entered");
220  return false;
221  }

◆ storesUpperCaseIdentifiers()

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

Definition at line 182 of file OmniSciDatabaseMetaData.java.

182  {
183  MAPDLOGGER.debug("Entered");
184  return false;
185  }

◆ storesUpperCaseQuotedIdentifiers()

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

Definition at line 206 of file OmniSciDatabaseMetaData.java.

206  {
207  MAPDLOGGER.debug("Entered");
208  return false;
209  }

◆ supportsAlterTableWithAddColumn()

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

Definition at line 274 of file OmniSciDatabaseMetaData.java.

274  {
275  MAPDLOGGER.debug("Entered");
276  return false;
277  }

◆ supportsAlterTableWithDropColumn()

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

Definition at line 280 of file OmniSciDatabaseMetaData.java.

280  {
281  MAPDLOGGER.debug("Entered");
282  return false;
283  }

◆ supportsANSI92EntryLevelSQL()

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

Definition at line 394 of file OmniSciDatabaseMetaData.java.

394  {
395  MAPDLOGGER.debug("Entered");
396  return true;
397  }

◆ supportsANSI92FullSQL()

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

Definition at line 406 of file OmniSciDatabaseMetaData.java.

406  {
407  MAPDLOGGER.debug("Entered");
408  return false;
409  }

◆ supportsANSI92IntermediateSQL()

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

Definition at line 400 of file OmniSciDatabaseMetaData.java.

400  {
401  MAPDLOGGER.debug("Entered");
402  return false;
403  }

◆ supportsBatchUpdates()

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

Definition at line 1732 of file OmniSciDatabaseMetaData.java.

1732  {
1733  MAPDLOGGER.debug("Entered");
1734  return true;
1735  }

◆ supportsCatalogsInDataManipulation()

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

Definition at line 496 of file OmniSciDatabaseMetaData.java.

496  {
497  MAPDLOGGER.debug("Entered");
498  return false;
499  }

◆ supportsCatalogsInIndexDefinitions()

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

Definition at line 514 of file OmniSciDatabaseMetaData.java.

514  {
515  MAPDLOGGER.debug("Entered");
516  return false;
517  }

◆ supportsCatalogsInPrivilegeDefinitions()

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

Definition at line 520 of file OmniSciDatabaseMetaData.java.

520  {
521  MAPDLOGGER.debug("Entered");
522  return false;
523  }

◆ supportsCatalogsInProcedureCalls()

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

Definition at line 502 of file OmniSciDatabaseMetaData.java.

502  {
503  MAPDLOGGER.debug("Entered");
504  return false;
505  }

◆ supportsCatalogsInTableDefinitions()

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

Definition at line 508 of file OmniSciDatabaseMetaData.java.

508  {
509  MAPDLOGGER.debug("Entered");
510  return false;
511  }

◆ supportsColumnAliasing()

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

Definition at line 286 of file OmniSciDatabaseMetaData.java.

286  {
287  MAPDLOGGER.debug("Entered");
288  return true;
289  }

◆ supportsConvert() [1/2]

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

Definition at line 298 of file OmniSciDatabaseMetaData.java.

298  {
299  MAPDLOGGER.debug("Entered");
300  return false;
301  }

◆ supportsConvert() [2/2]

boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsConvert ( int  fromType,
int  toType 
) throws SQLException
inline

Definition at line 304 of file OmniSciDatabaseMetaData.java.

304  {
305  MAPDLOGGER.debug("Entered");
306  return false;
307  }

◆ supportsCoreSQLGrammar()

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

Definition at line 382 of file OmniSciDatabaseMetaData.java.

382  {
383  MAPDLOGGER.debug("Entered");
384  return true;
385  }

◆ supportsCorrelatedSubqueries()

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

Definition at line 574 of file OmniSciDatabaseMetaData.java.

574  {
575  MAPDLOGGER.debug("Entered");
576  return false;
577  }

◆ supportsDataDefinitionAndDataManipulationTransactions()

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

Definition at line 760 of file OmniSciDatabaseMetaData.java.

761  {
762  MAPDLOGGER.debug("Entered");
763  return false;
764  }

◆ supportsDataManipulationTransactionsOnly()

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

Definition at line 767 of file OmniSciDatabaseMetaData.java.

767  {
768  MAPDLOGGER.debug("Entered");
769  return false;
770  }

◆ supportsDifferentTableCorrelationNames()

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

Definition at line 316 of file OmniSciDatabaseMetaData.java.

316  {
317  MAPDLOGGER.debug("Entered");
318  return false;
319  }

◆ supportsExpressionsInOrderBy()

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

Definition at line 322 of file OmniSciDatabaseMetaData.java.

322  {
323  MAPDLOGGER.debug("Entered");
324  return false;
325  }

◆ supportsExtendedSQLGrammar()

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

Definition at line 388 of file OmniSciDatabaseMetaData.java.

388  {
389  MAPDLOGGER.debug("Entered");
390  return true;
391  }

◆ supportsFullOuterJoins()

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

Definition at line 424 of file OmniSciDatabaseMetaData.java.

424  {
425  MAPDLOGGER.debug("Entered");
426  return false;
427  }

◆ supportsGetGeneratedKeys()

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

Definition at line 1773 of file OmniSciDatabaseMetaData.java.

1773  {
1774  MAPDLOGGER.debug("Entered");
1775  return false;
1776  }

◆ supportsGroupBy()

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

Definition at line 334 of file OmniSciDatabaseMetaData.java.

334  {
335  MAPDLOGGER.debug("Entered");
336  return true;
337  }

◆ supportsGroupByBeyondSelect()

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

Definition at line 346 of file OmniSciDatabaseMetaData.java.

346  {
347  MAPDLOGGER.debug("Entered");
348  return true;
349  }

◆ supportsGroupByUnrelated()

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

Definition at line 340 of file OmniSciDatabaseMetaData.java.

340  {
341  MAPDLOGGER.debug("Entered");
342  return true;
343  }

◆ supportsIntegrityEnhancementFacility()

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

Definition at line 412 of file OmniSciDatabaseMetaData.java.

412  {
413  MAPDLOGGER.debug("Entered");
414  return false;
415  }

◆ supportsLikeEscapeClause()

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

Definition at line 352 of file OmniSciDatabaseMetaData.java.

352  {
353  MAPDLOGGER.debug("Entered");
354  return false;
355  }

◆ supportsLimitedOuterJoins()

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

Definition at line 430 of file OmniSciDatabaseMetaData.java.

430  {
431  MAPDLOGGER.debug("Entered");
432  return true;
433  }

◆ supportsMinimumSQLGrammar()

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

Definition at line 376 of file OmniSciDatabaseMetaData.java.

376  {
377  MAPDLOGGER.debug("Entered");
378  return true;
379  }

◆ supportsMixedCaseIdentifiers()

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

Definition at line 176 of file OmniSciDatabaseMetaData.java.

176  {
177  MAPDLOGGER.debug("Entered");
178  return true;
179  }

◆ supportsMixedCaseQuotedIdentifiers()

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

Definition at line 200 of file OmniSciDatabaseMetaData.java.

200  {
201  MAPDLOGGER.debug("Entered");
202  return true;
203  }

◆ supportsMultipleOpenResults()

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

Definition at line 1767 of file OmniSciDatabaseMetaData.java.

1767  {
1768  MAPDLOGGER.debug("Entered");
1769  return false;
1770  }

◆ supportsMultipleResultSets()

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

Definition at line 358 of file OmniSciDatabaseMetaData.java.

358  {
359  MAPDLOGGER.debug("Entered");
360  return false;
361  }

◆ supportsMultipleTransactions()

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

Definition at line 364 of file OmniSciDatabaseMetaData.java.

364  {
365  MAPDLOGGER.debug("Entered");
366  return false;
367  }

◆ supportsNamedParameters()

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

Definition at line 1761 of file OmniSciDatabaseMetaData.java.

1761  {
1762  MAPDLOGGER.debug("Entered");
1763  return false;
1764  }

◆ supportsNonNullableColumns()

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

Definition at line 370 of file OmniSciDatabaseMetaData.java.

370  {
371  MAPDLOGGER.debug("Entered");
372  return true;
373  }

◆ supportsOpenCursorsAcrossCommit()

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

Definition at line 592 of file OmniSciDatabaseMetaData.java.

592  {
593  MAPDLOGGER.debug("Entered");
594  return false;
595  }

◆ supportsOpenCursorsAcrossRollback()

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

Definition at line 598 of file OmniSciDatabaseMetaData.java.

598  {
599  MAPDLOGGER.debug("Entered");
600  return false;
601  }

◆ supportsOpenStatementsAcrossCommit()

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

Definition at line 604 of file OmniSciDatabaseMetaData.java.

604  {
605  MAPDLOGGER.debug("Entered");
606  return false;
607  }

◆ supportsOpenStatementsAcrossRollback()

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

Definition at line 610 of file OmniSciDatabaseMetaData.java.

610  {
611  MAPDLOGGER.debug("Entered");
612  return false;
613  }

◆ supportsOrderByUnrelated()

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

Definition at line 328 of file OmniSciDatabaseMetaData.java.

328  {
329  MAPDLOGGER.debug("Entered");
330  return true;
331  }

◆ supportsOuterJoins()

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

Definition at line 418 of file OmniSciDatabaseMetaData.java.

418  {
419  MAPDLOGGER.debug("Entered");
420  return false;
421  }

◆ supportsPositionedDelete()

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

Definition at line 526 of file OmniSciDatabaseMetaData.java.

526  {
527  MAPDLOGGER.debug("Entered");
528  return false;
529  }

◆ supportsPositionedUpdate()

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

Definition at line 532 of file OmniSciDatabaseMetaData.java.

532  {
533  MAPDLOGGER.debug("Entered");
534  return false;
535  }

◆ supportsResultSetConcurrency()

boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsResultSetConcurrency ( int  type,
int  concurrency 
) throws SQLException
inline

Definition at line 1671 of file OmniSciDatabaseMetaData.java.

1672  {
1673  MAPDLOGGER.debug("Entered");
1674  return false;
1675  }

◆ supportsResultSetHoldability()

boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsResultSetHoldability ( int  holdability) throws SQLException
inline

Definition at line 1813 of file OmniSciDatabaseMetaData.java.

1813  {
1814  MAPDLOGGER.debug("Entered");
1815  return false;
1816  }

◆ supportsResultSetType()

boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsResultSetType ( int  type) throws SQLException
inline

Definition at line 1665 of file OmniSciDatabaseMetaData.java.

1665  {
1666  MAPDLOGGER.debug("Entered");
1667  return false;
1668  }

◆ supportsSavepoints()

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

Definition at line 1755 of file OmniSciDatabaseMetaData.java.

1755  {
1756  MAPDLOGGER.debug("Entered");
1757  return false;
1758  }

◆ supportsSchemasInDataManipulation()

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

Definition at line 466 of file OmniSciDatabaseMetaData.java.

466  {
467  MAPDLOGGER.debug("Entered");
468  return false;
469  }

◆ supportsSchemasInIndexDefinitions()

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

Definition at line 484 of file OmniSciDatabaseMetaData.java.

484  {
485  MAPDLOGGER.debug("Entered");
486  return false;
487  }

◆ supportsSchemasInPrivilegeDefinitions()

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

Definition at line 490 of file OmniSciDatabaseMetaData.java.

490  {
491  MAPDLOGGER.debug("Entered");
492  return false;
493  }

◆ supportsSchemasInProcedureCalls()

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

Definition at line 472 of file OmniSciDatabaseMetaData.java.

472  {
473  MAPDLOGGER.debug("Entered");
474  return false;
475  }

◆ supportsSchemasInTableDefinitions()

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

Definition at line 478 of file OmniSciDatabaseMetaData.java.

478  {
479  MAPDLOGGER.debug("Entered");
480  return false;
481  }

◆ supportsSelectForUpdate()

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

Definition at line 538 of file OmniSciDatabaseMetaData.java.

538  {
539  MAPDLOGGER.debug("Entered");
540  return false;
541  }

◆ supportsStatementPooling()

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

Definition at line 1861 of file OmniSciDatabaseMetaData.java.

1861  {
1862  MAPDLOGGER.debug("Entered");
1863  return false;
1864  }

◆ supportsStoredFunctionsUsingCallSyntax()

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

Definition at line 1879 of file OmniSciDatabaseMetaData.java.

1879  {
1880  MAPDLOGGER.debug("Entered");
1881  return false;
1882  }

◆ supportsStoredProcedures()

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

Definition at line 544 of file OmniSciDatabaseMetaData.java.

544  {
545  MAPDLOGGER.debug("Entered");
546  return false;
547  }

◆ supportsSubqueriesInComparisons()

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

Definition at line 550 of file OmniSciDatabaseMetaData.java.

550  {
551  MAPDLOGGER.debug("Entered");
552  return true;
553  }

◆ supportsSubqueriesInExists()

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

Definition at line 556 of file OmniSciDatabaseMetaData.java.

556  {
557  MAPDLOGGER.debug("Entered");
558  return true;
559  }

◆ supportsSubqueriesInIns()

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

Definition at line 562 of file OmniSciDatabaseMetaData.java.

562  {
563  MAPDLOGGER.debug("Entered");
564  return true;
565  }

◆ supportsSubqueriesInQuantifieds()

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

Definition at line 568 of file OmniSciDatabaseMetaData.java.

568  {
569  MAPDLOGGER.debug("Entered");
570  return true;
571  }

◆ supportsTableCorrelationNames()

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

Definition at line 310 of file OmniSciDatabaseMetaData.java.

310  {
311  MAPDLOGGER.debug("Entered");
312  return false;
313  }

◆ supportsTransactionIsolationLevel()

boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsTransactionIsolationLevel ( int  level) throws SQLException
inline

Definition at line 754 of file OmniSciDatabaseMetaData.java.

754  {
755  MAPDLOGGER.debug("Entered");
756  return false;
757  }

◆ supportsTransactions()

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

Definition at line 748 of file OmniSciDatabaseMetaData.java.

748  {
749  MAPDLOGGER.debug("Entered");
750  return false;
751  }

◆ supportsUnion()

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

Definition at line 580 of file OmniSciDatabaseMetaData.java.

580  {
581  MAPDLOGGER.debug("Entered");
582  return false;
583  }

◆ supportsUnionAll()

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

Definition at line 586 of file OmniSciDatabaseMetaData.java.

586  {
587  MAPDLOGGER.debug("Entered");
588  return false;
589  }

◆ tablePermProcess()

void com.omnisci.jdbc.OmniSciDatabaseMetaData.tablePermProcess ( List< String >  tables,
Map< String, OmniSciData dataMap,
String  tableNamePattern 
) throws TException
inlineprivate

Definition at line 1281 of file OmniSciDatabaseMetaData.java.

References com.omnisci.jdbc.OmniSciConnection.client, field(), com.omnisci.jdbc.OmniSciConnection.session, and run_benchmark_import.tables.

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

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

◆ unwrap()

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

Definition at line 1941 of file OmniSciDatabaseMetaData.java.

1941  {
1942  MAPDLOGGER.debug("Entered");
1943  return null;
1944  }

◆ updatesAreDetected()

boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.updatesAreDetected ( int  type) throws SQLException
inline

Definition at line 1714 of file OmniSciDatabaseMetaData.java.

1714  {
1715  MAPDLOGGER.debug("Entered");
1716  return false;
1717  }

◆ usesLocalFilePerTable()

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

Definition at line 170 of file OmniSciDatabaseMetaData.java.

170  {
171  MAPDLOGGER.debug("Entered");
172  return false;
173  }

◆ usesLocalFiles()

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

Definition at line 164 of file OmniSciDatabaseMetaData.java.

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

Member Data Documentation

◆ con

OmniSciConnection com.omnisci.jdbc.OmniSciDatabaseMetaData.con = null
package

◆ databaseMajorVersion

int com.omnisci.jdbc.OmniSciDatabaseMetaData.databaseMajorVersion = 0
package

◆ databaseMinorVersion

int com.omnisci.jdbc.OmniSciDatabaseMetaData.databaseMinorVersion = 0
package

◆ databaseVersion

String com.omnisci.jdbc.OmniSciDatabaseMetaData.databaseVersion = null
package

◆ MAPDLOGGER

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: