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

Public Member Functions

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

Package Functions

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

Package Attributes

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

Static Package Attributes

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

Private Member Functions

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

Detailed Description

Author
michael

Definition at line 47 of file OmniSciDatabaseMetaData.java.

Constructor & Destructor Documentation

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

Definition at line 55 of file OmniSciDatabaseMetaData.java.

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

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

Member Function Documentation

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

Definition at line 74 of file OmniSciDatabaseMetaData.java.

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

Definition at line 80 of file OmniSciDatabaseMetaData.java.

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

Definition at line 1878 of file OmniSciDatabaseMetaData.java.

1878  {
1879  MAPDLOGGER.debug("Entered");
1880  return false;
1881  }
TColumn com.omnisci.jdbc.OmniSciDatabaseMetaData.createTColumnData ( Object  data,
List< Boolean >  nullsList 
)
inlineprivate

Definition at line 940 of file OmniSciDatabaseMetaData.java.

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

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

+ Here is the caller graph for this function:

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

Definition at line 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  }
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  }
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  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.deletesAreDetected ( int  type) throws SQLException
inline

Definition at line 1713 of file OmniSciDatabaseMetaData.java.

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

Definition at line 706 of file OmniSciDatabaseMetaData.java.

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

Definition at line 1928 of file OmniSciDatabaseMetaData.java.

1928  {
1929  MAPDLOGGER.debug("Entered");
1930  return false;
1931  }
ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getAttributes ( String  catalog,
String  schemaPattern,
String  typeNamePattern,
String  attributeNamePattern 
) throws SQLException
inline

Definition at line 1794 of file OmniSciDatabaseMetaData.java.

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

Definition at line 1390 of file OmniSciDatabaseMetaData.java.

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

Definition at line 1003 of file OmniSciDatabaseMetaData.java.

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

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

+ Here is the call graph for this function:

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  }
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  }
ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getClientInfoProperties ( ) throws SQLException
inline

Definition at line 1884 of file OmniSciDatabaseMetaData.java.

1884  {
1885  MAPDLOGGER.debug("Entered");
1886  throw new UnsupportedOperationException("Not supported yet,"
1887  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1888  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1889  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1890  }
ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getColumnPrivileges ( String  catalog,
String  schema,
String  table,
String  columnNamePattern 
) throws SQLException
inline

Definition at line 1242 of file OmniSciDatabaseMetaData.java.

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

Definition at line 1105 of file OmniSciDatabaseMetaData.java.

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

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

+ Here is the call graph for this function:

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

Definition at line 1742 of file OmniSciDatabaseMetaData.java.

References com.omnisci.jdbc.OmniSciDatabaseMetaData.con.

1742  {
1743  MAPDLOGGER.debug("Entered");
1744  return con;
1745  }
ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getCrossReference ( String  parentCatalog,
String  parentSchema,
String  parentTable,
String  foreignCatalog,
String  foreignSchema,
String  foreignTable 
) throws SQLException
inline

Definition at line 1490 of file OmniSciDatabaseMetaData.java.

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

Definition at line 1818 of file OmniSciDatabaseMetaData.java.

1818  {
1819  MAPDLOGGER.debug("Entered");
1820  return this.databaseMajorVersion;
1821  }
int com.omnisci.jdbc.OmniSciDatabaseMetaData.getDatabaseMinorVersion ( ) throws SQLException
inline

Definition at line 1824 of file OmniSciDatabaseMetaData.java.

1824  {
1825  MAPDLOGGER.debug("Entered");
1826  return this.databaseMinorVersion;
1827  }
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  }
String com.omnisci.jdbc.OmniSciDatabaseMetaData.getDatabaseProductVersion ( ) throws SQLException
inline

Definition at line 134 of file OmniSciDatabaseMetaData.java.

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

Definition at line 742 of file OmniSciDatabaseMetaData.java.

742  {
743  MAPDLOGGER.debug("Entered");
744  return Connection.TRANSACTION_NONE;
745  }
int com.omnisci.jdbc.OmniSciDatabaseMetaData.getDriverMajorVersion ( )
inline

Definition at line 154 of file OmniSciDatabaseMetaData.java.

References com.omnisci.jdbc.OmniSciDriver.DriverMajorVersion.

154  {
156  }
static final int DriverMajorVersion
int com.omnisci.jdbc.OmniSciDatabaseMetaData.getDriverMinorVersion ( )
inline

Definition at line 159 of file OmniSciDatabaseMetaData.java.

References com.omnisci.jdbc.OmniSciDriver.DriverMinorVersion.

159  {
161  }
static final int DriverMinorVersion
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  }
String com.omnisci.jdbc.OmniSciDatabaseMetaData.getDriverVersion ( ) throws SQLException
inline

Definition at line 147 of file OmniSciDatabaseMetaData.java.

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

147  { // logger.debug("Entered");
148  MAPDLOGGER.debug("Entered");
149  return Integer.toString(OmniSciDriver.DriverMajorVersion) + "."
150  + Integer.toString(OmniSciDriver.DriverMinorVersion);
151  }
static final int DriverMajorVersion
ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getEmptyResultSet ( )
inline

Definition at line 1252 of file OmniSciDatabaseMetaData.java.

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

1252  {
1253  return new OmniSciResultSet();
1254  }

+ Here is the caller graph for this function:

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

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

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

+ Here is the caller graph for this function:

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

Definition at line 1461 of file OmniSciDatabaseMetaData.java.

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

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

+ Here is the call graph for this function:

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

Definition at line 268 of file OmniSciDatabaseMetaData.java.

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

Definition at line 1904 of file OmniSciDatabaseMetaData.java.

1907  {
1908  MAPDLOGGER.debug("Entered");
1909  throw new UnsupportedOperationException("Not supported yet,"
1910  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1911  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1912  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1913  }
ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getFunctions ( String  catalog,
String  schemaPattern,
String  functionNamePattern 
) throws SQLException
inline

Definition at line 1893 of file OmniSciDatabaseMetaData.java.

1895  {
1896  MAPDLOGGER.debug("Entered");
1897  throw new UnsupportedOperationException("Not supported yet,"
1898  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1899  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1900  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1901  }
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  }
ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getImportedKeys ( String  catalog,
String  schema,
String  table 
) throws SQLException
inline

Definition at line 1432 of file OmniSciDatabaseMetaData.java.

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

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

+ Here is the call graph for this function:

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

Definition at line 1648 of file OmniSciDatabaseMetaData.java.

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

1652  {
1653  MAPDLOGGER.debug("Entered");
1654  return getEmptyResultSet();
1655  }

+ Here is the call graph for this function:

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

Definition at line 1830 of file OmniSciDatabaseMetaData.java.

1830  {
1831  MAPDLOGGER.debug("Entered");
1832  return 0;
1833  }
int com.omnisci.jdbc.OmniSciDatabaseMetaData.getJDBCMinorVersion ( ) throws SQLException
inline

Definition at line 1836 of file OmniSciDatabaseMetaData.java.

1836  { // logger.debug("Entered");
1837  MAPDLOGGER.debug("Entered");
1838  return 0;
1839  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getPrimaryKeys ( String  catalog,
String  schema,
String  table 
) throws SQLException
inline

Definition at line 1411 of file OmniSciDatabaseMetaData.java.

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

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

+ Here is the call graph for this function:

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

Definition at line 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  }
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  }
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  }
ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getPseudoColumns ( String  catalog,
String  schemaPattern,
String  tableNamePattern,
String  columnNamePattern 
) throws SQLException
inline

Definition at line 1916 of file OmniSciDatabaseMetaData.java.

1919  {
1920  MAPDLOGGER.debug("Entered");
1921  throw new UnsupportedOperationException("Not supported yet,"
1922  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1923  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1924  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1925  }
int com.omnisci.jdbc.OmniSciDatabaseMetaData.getResultSetHoldability ( ) throws SQLException
inline

Definition at line 1812 of file OmniSciDatabaseMetaData.java.

1812  {
1813  MAPDLOGGER.debug("Entered");
1814  return ResultSet.CLOSE_CURSORS_AT_COMMIT;
1815  }
RowIdLifetime com.omnisci.jdbc.OmniSciDatabaseMetaData.getRowIdLifetime ( ) throws SQLException
inline

Definition at line 1860 of file OmniSciDatabaseMetaData.java.

1860  {
1861  MAPDLOGGER.debug("Entered");
1862  return RowIdLifetime.ROWID_VALID_OTHER;
1863  }
ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getSchemas ( ) throws SQLException
inline

Definition at line 949 of file OmniSciDatabaseMetaData.java.

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

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

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 1866 of file OmniSciDatabaseMetaData.java.

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

1866  {
1867  MAPDLOGGER.debug("Entered");
1868  return getSchemas();
1869  }

+ Here is the call graph for this function:

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  }
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  }
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  }
int com.omnisci.jdbc.OmniSciDatabaseMetaData.getSQLStateType ( ) throws SQLException
inline

Definition at line 1842 of file OmniSciDatabaseMetaData.java.

1842  {
1843  MAPDLOGGER.debug("Entered");
1844  return 0;
1845  }
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  }
ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getSuperTables ( String  catalog,
String  schemaPattern,
String  tableNamePattern 
) throws SQLException
inline

Definition at line 1783 of file OmniSciDatabaseMetaData.java.

1785  {
1786  MAPDLOGGER.debug("Entered");
1787  throw new UnsupportedOperationException("Not supported yet,"
1788  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1789  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1790  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1791  }
ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getSuperTypes ( String  catalog,
String  schemaPattern,
String  typeNamePattern 
) throws SQLException
inline

Definition at line 1772 of file OmniSciDatabaseMetaData.java.

1774  {
1775  MAPDLOGGER.debug("Entered");
1776  throw new UnsupportedOperationException("Not supported yet,"
1777  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1778  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1779  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1780  }
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  }
ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getTablePrivileges ( String  catalog,
String  schemaPattern,
String  tableNamePattern 
) throws SQLException
inline

Definition at line 1332 of file OmniSciDatabaseMetaData.java.

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

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

+ Here is the call graph for this function:

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

Definition at line 857 of file OmniSciDatabaseMetaData.java.

References com.omnisci.jdbc.OmniSciDatabaseMetaData.createTColumnData(), com.omnisci.jdbc.OmniSciDatabaseMetaData.createTColumnType(), run_benchmark_import.result, Experimental.String, 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(rowSet, 0, 0, null);
934 
935  OmniSciResultSet tab = new OmniSciResultSet(result, "GetTables");
936  return tab;
937  }
TColumn createTColumnData(Object data, List< Boolean > nullsList)
TColumnType createTColumnType(String colName, TTypeInfo colType)

+ Here is the call graph for this function:

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

Definition at line 1009 of file OmniSciDatabaseMetaData.java.

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

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

+ Here is the call graph for this function:

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

Definition at line 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  }
ResultSet com.omnisci.jdbc.OmniSciDatabaseMetaData.getTypeInfo ( ) throws SQLException
inline

Definition at line 1555 of file OmniSciDatabaseMetaData.java.

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

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

+ Here is the call graph for this function:

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

Definition at line 1731 of file OmniSciDatabaseMetaData.java.

1733  {
1734  MAPDLOGGER.debug("Entered");
1735  throw new UnsupportedOperationException("Not supported yet,"
1736  + " line:" + new Throwable().getStackTrace()[0].getLineNumber()
1737  + " class:" + new Throwable().getStackTrace()[0].getClassName()
1738  + " method:" + new Throwable().getStackTrace()[0].getMethodName());
1739  }
String com.omnisci.jdbc.OmniSciDatabaseMetaData.getURL ( ) throws SQLException
inline

Definition at line 86 of file OmniSciDatabaseMetaData.java.

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

Definition at line 92 of file OmniSciDatabaseMetaData.java.

References Experimental.String, and com.omnisci.jdbc.Connection_enums.user.

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

Definition at line 1401 of file OmniSciDatabaseMetaData.java.

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

Definition at line 1719 of file OmniSciDatabaseMetaData.java.

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

Definition at line 454 of file OmniSciDatabaseMetaData.java.

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

Definition at line 98 of file OmniSciDatabaseMetaData.java.

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

Definition at line 1940 of file OmniSciDatabaseMetaData.java.

1940  {
1941  MAPDLOGGER.debug("Entered");
1942  return false;
1943  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.locatorsUpdateCopy ( ) throws SQLException
inline

Definition at line 1848 of file OmniSciDatabaseMetaData.java.

1848  {
1849  MAPDLOGGER.debug("Entered");
1850  return false;
1851  }
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  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.nullsAreSortedAtEnd ( ) throws SQLException
inline

Definition at line 122 of file OmniSciDatabaseMetaData.java.

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

Definition at line 116 of file OmniSciDatabaseMetaData.java.

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

Definition at line 104 of file OmniSciDatabaseMetaData.java.

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

Definition at line 110 of file OmniSciDatabaseMetaData.java.

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

Definition at line 1695 of file OmniSciDatabaseMetaData.java.

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

Definition at line 1701 of file OmniSciDatabaseMetaData.java.

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

Definition at line 1689 of file OmniSciDatabaseMetaData.java.

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

Definition at line 1677 of file OmniSciDatabaseMetaData.java.

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

Definition at line 1683 of file OmniSciDatabaseMetaData.java.

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

Definition at line 1671 of file OmniSciDatabaseMetaData.java.

1671  {
1672  MAPDLOGGER.debug("Entered");
1673  return false;
1674  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsBatchUpdates ( ) throws SQLException
inline

Definition at line 1725 of file OmniSciDatabaseMetaData.java.

1725  {
1726  MAPDLOGGER.debug("Entered");
1727  return true;
1728  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsGetGeneratedKeys ( ) throws SQLException
inline

Definition at line 1766 of file OmniSciDatabaseMetaData.java.

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

Definition at line 334 of file OmniSciDatabaseMetaData.java.

334  {
335  MAPDLOGGER.debug("Entered");
336  return true;
337  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsMultipleOpenResults ( ) throws SQLException
inline

Definition at line 1760 of file OmniSciDatabaseMetaData.java.

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

Definition at line 358 of file OmniSciDatabaseMetaData.java.

358  {
359  MAPDLOGGER.debug("Entered");
360  return false;
361  }
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  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsNamedParameters ( ) throws SQLException
inline

Definition at line 1754 of file OmniSciDatabaseMetaData.java.

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

Definition at line 370 of file OmniSciDatabaseMetaData.java.

370  {
371  MAPDLOGGER.debug("Entered");
372  return true;
373  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsResultSetConcurrency ( int  type,
int  concurrency 
) throws SQLException
inline

Definition at line 1664 of file OmniSciDatabaseMetaData.java.

1665  {
1666  MAPDLOGGER.debug("Entered");
1667  return false;
1668  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsResultSetHoldability ( int  holdability) throws SQLException
inline

Definition at line 1806 of file OmniSciDatabaseMetaData.java.

1806  {
1807  MAPDLOGGER.debug("Entered");
1808  return false;
1809  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsResultSetType ( int  type) throws SQLException
inline

Definition at line 1658 of file OmniSciDatabaseMetaData.java.

1658  {
1659  MAPDLOGGER.debug("Entered");
1660  return false;
1661  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsSavepoints ( ) throws SQLException
inline

Definition at line 1748 of file OmniSciDatabaseMetaData.java.

1748  {
1749  MAPDLOGGER.debug("Entered");
1750  return false;
1751  }
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  }
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  }
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  }
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  }
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  }
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  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.supportsStatementPooling ( ) throws SQLException
inline

Definition at line 1854 of file OmniSciDatabaseMetaData.java.

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

Definition at line 1872 of file OmniSciDatabaseMetaData.java.

1872  {
1873  MAPDLOGGER.debug("Entered");
1874  return false;
1875  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
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  }
void com.omnisci.jdbc.OmniSciDatabaseMetaData.tablePermProcess ( List< String >  tables,
Map< String, OmniSciData dataMap,
String  tableNamePattern 
) throws TException
inlineprivate

Definition at line 1276 of file OmniSciDatabaseMetaData.java.

References field(), Experimental.String, TableDBObjectType, and run_benchmark_import.tables.

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

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 1934 of file OmniSciDatabaseMetaData.java.

1934  {
1935  MAPDLOGGER.debug("Entered");
1936  return null;
1937  }
boolean com.omnisci.jdbc.OmniSciDatabaseMetaData.updatesAreDetected ( int  type) throws SQLException
inline

Definition at line 1707 of file OmniSciDatabaseMetaData.java.

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

Definition at line 170 of file OmniSciDatabaseMetaData.java.

170  {
171  MAPDLOGGER.debug("Entered");
172  return false;
173  }
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

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

Definition at line 48 of file OmniSciDatabaseMetaData.java.


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