/** * {@inheritDoc} */ @Override public ResultSet getCatalogs() throws SQLException { this.conn.lock(); try { RowSet rs = this.service.getSchemaMetaData(ServiceMetaDataCall.CATALOGS, new ServiceMetaDataArgs() .setDriverType(ClientConfiguration.DRIVER_TYPE)); return new ClientResultSet(this.conn, this.metaAttrs, rs); } catch (GFXDException gfxde) { throw ThriftExceptionUtil.newSQLException(gfxde); } finally { this.conn.unlock(); } }
/** * {@inheritDoc} */ @Override public ResultSet getSchemas() throws SQLException { this.conn.lock(); try { RowSet rs = this.service.getSchemaMetaData(ServiceMetaDataCall.SCHEMAS, new ServiceMetaDataArgs() .setDriverType(ClientConfiguration.DRIVER_TYPE)); return new ClientResultSet(this.conn, this.metaAttrs, rs); } catch (GFXDException gfxde) { throw ThriftExceptionUtil.newSQLException(gfxde); } finally { this.conn.unlock(); } }
/** * {@inheritDoc} */ @Override public ResultSet getTableTypes() throws SQLException { this.conn.lock(); try { RowSet rs = this.service.getSchemaMetaData( ServiceMetaDataCall.TABLETYPES, new ServiceMetaDataArgs() .setDriverType(ClientConfiguration.DRIVER_TYPE)); return new ClientResultSet(this.conn, this.metaAttrs, rs); } catch (GFXDException gfxde) { throw ThriftExceptionUtil.newSQLException(gfxde); } finally { this.conn.unlock(); } }
/** * {@inheritDoc} */ @Override public ResultSet getTypeInfo() throws SQLException { this.conn.lock(); try { RowSet rs = this.service.getSchemaMetaData(ServiceMetaDataCall.TYPEINFO, new ServiceMetaDataArgs() .setDriverType(ClientConfiguration.DRIVER_TYPE)); return new ClientResultSet(this.conn, this.metaAttrs, rs); } catch (GFXDException gfxde) { throw ThriftExceptionUtil.newSQLException(gfxde); } finally { this.conn.unlock(); } }
/** * {@inheritDoc} */ @Override public ResultSet getClientInfoProperties() throws SQLException { this.conn.lock(); try { RowSet rs = this.service.getSchemaMetaData( ServiceMetaDataCall.CLIENTINFOPROPS, new ServiceMetaDataArgs() .setDriverType(ClientConfiguration.DRIVER_TYPE)); return new ClientResultSet(this.conn, this.metaAttrs, rs); } catch (GFXDException gfxde) { throw ThriftExceptionUtil.newSQLException(gfxde); } finally { this.conn.unlock(); } }
/** * {@inheritDoc} */ @Override public ResultSet getSchemas(String catalog, String schemaPattern) throws SQLException { this.conn.lock(); try { RowSet rs = this.service.getSchemaMetaData( ServiceMetaDataCall.SCHEMAS, new ServiceMetaDataArgs().setDriverType( ClientConfiguration.DRIVER_TYPE).setSchema(schemaPattern)); return new ClientResultSet(this.conn, this.metaAttrs, rs); } catch (GFXDException gfxde) { throw ThriftExceptionUtil.newSQLException(gfxde); } finally { this.conn.unlock(); } }
/** * {@inheritDoc} */ @Override public ResultSet getSuperTypes(String catalog, String schemaPattern, String typeNamePattern) throws SQLException { this.conn.lock(); try { RowSet rs = this.service.getSchemaMetaData( ServiceMetaDataCall.SUPERTYPES, new ServiceMetaDataArgs() .setDriverType(ClientConfiguration.DRIVER_TYPE) .setSchema(schemaPattern).setTypeName(typeNamePattern)); return new ClientResultSet(this.conn, this.metaAttrs, rs); } catch (GFXDException gfxde) { throw ThriftExceptionUtil.newSQLException(gfxde); } finally { this.conn.unlock(); } }
/** * {@inheritDoc} */ @Override public ResultSet getSuperTables(String catalog, String schemaPattern, String tableNamePattern) throws SQLException { this.conn.lock(); try { RowSet rs = this.service.getSchemaMetaData( ServiceMetaDataCall.SUPERTABLES, new ServiceMetaDataArgs() .setDriverType(ClientConfiguration.DRIVER_TYPE) .setSchema(schemaPattern).setTable(tableNamePattern)); return new ClientResultSet(this.conn, this.metaAttrs, rs); } catch (GFXDException gfxde) { throw ThriftExceptionUtil.newSQLException(gfxde); } finally { this.conn.unlock(); } }
/** * {@inheritDoc} */ @Override public ResultSet getBestRowIdentifier(String catalog, String schema, String table, int scope, boolean nullable) throws SQLException { this.conn.lock(); try { RowSet rs = this.service.getBestRowIdentifier(new ServiceMetaDataArgs() .setDriverType(ClientConfiguration.DRIVER_TYPE).setSchema(schema) .setTable(table), scope, nullable); return new ClientResultSet(this.conn, this.metaAttrs, rs); } catch (GFXDException gfxde) { throw ThriftExceptionUtil.newSQLException(gfxde); } finally { this.conn.unlock(); } }
/** * {@inheritDoc} */ @Override public ResultSet getIndexInfo(String catalog, String schema, String table, boolean unique, boolean approximate) throws SQLException { this.conn.lock(); try { RowSet rs = this.service.getIndexInfo(new ServiceMetaDataArgs() .setDriverType(ClientConfiguration.DRIVER_TYPE).setSchema(schema) .setTable(table), unique, approximate); return new ClientResultSet(this.conn, this.metaAttrs, rs); } catch (GFXDException gfxde) { throw ThriftExceptionUtil.newSQLException(gfxde); } finally { this.conn.unlock(); } }
/** * {@inheritDoc} */ @Override public ResultSet getPrimaryKeys(String catalog, String schema, String table) throws SQLException { this.conn.lock(); try { RowSet rs = this.service.getSchemaMetaData( ServiceMetaDataCall.PRIMARYKEYS, new ServiceMetaDataArgs() .setDriverType(ClientConfiguration.DRIVER_TYPE).setSchema(schema) .setTable(table)); return new ClientResultSet(this.conn, this.metaAttrs, rs); } catch (GFXDException gfxde) { throw ThriftExceptionUtil.newSQLException(gfxde); } finally { this.conn.unlock(); } }
/** * {@inheritDoc} */ @Override public ResultSet getVersionColumns(String catalog, String schema, String table) throws SQLException { this.conn.lock(); try { RowSet rs = this.service.getSchemaMetaData( ServiceMetaDataCall.VERSIONCOLUMNS, new ServiceMetaDataArgs() .setDriverType(ClientConfiguration.DRIVER_TYPE).setSchema(schema) .setTable(table)); return new ClientResultSet(this.conn, this.metaAttrs, rs); } catch (GFXDException gfxde) { throw ThriftExceptionUtil.newSQLException(gfxde); } finally { this.conn.unlock(); } }
/** * {@inheritDoc} */ @Override public ResultSet getImportedKeys(String catalog, String schema, String table) throws SQLException { this.conn.lock(); try { RowSet rs = this.service.getSchemaMetaData( ServiceMetaDataCall.IMPORTEDKEYS, new ServiceMetaDataArgs() .setDriverType(ClientConfiguration.DRIVER_TYPE).setSchema(schema) .setTable(table)); return new ClientResultSet(this.conn, this.metaAttrs, rs); } catch (GFXDException gfxde) { throw ThriftExceptionUtil.newSQLException(gfxde); } finally { this.conn.unlock(); } }
/** * {@inheritDoc} */ @Override public ResultSet getExportedKeys(String catalog, String schema, String table) throws SQLException { this.conn.lock(); try { RowSet rs = this.service.getSchemaMetaData( ServiceMetaDataCall.EXPORTEDKEYS, new ServiceMetaDataArgs() .setDriverType(ClientConfiguration.DRIVER_TYPE).setSchema(schema) .setTable(table)); return new ClientResultSet(this.conn, this.metaAttrs, rs); } catch (GFXDException gfxde) { throw ThriftExceptionUtil.newSQLException(gfxde); } finally { this.conn.unlock(); } }
/** * {@inheritDoc} */ @Override public ResultSet getFunctions(String catalog, String schemaPattern, String functionNamePattern) throws SQLException { this.conn.lock(); try { RowSet rs = this.service.getSchemaMetaData( ServiceMetaDataCall.FUNCTIONS, new ServiceMetaDataArgs() .setDriverType(ClientConfiguration.DRIVER_TYPE) .setSchema(schemaPattern).setFunctionName(functionNamePattern)); return new ClientResultSet(this.conn, this.metaAttrs, rs); } catch (GFXDException gfxde) { throw ThriftExceptionUtil.newSQLException(gfxde); } finally { this.conn.unlock(); } }
/** * {@inheritDoc} */ @Override public ResultSet getTablePrivileges(String catalog, String schemaPattern, String tableNamePattern) throws SQLException { this.conn.lock(); try { RowSet rs = this.service.getSchemaMetaData( ServiceMetaDataCall.TABLEPRIVILEGES, new ServiceMetaDataArgs() .setDriverType(ClientConfiguration.DRIVER_TYPE) .setSchema(schemaPattern).setTable(tableNamePattern)); return new ClientResultSet(this.conn, this.metaAttrs, rs); } catch (GFXDException gfxde) { throw ThriftExceptionUtil.newSQLException(gfxde); } finally { this.conn.unlock(); } }
/** * {@inheritDoc} */ @Override public ResultSet getProcedures(String catalog, String schemaPattern, String procedureNamePattern) throws SQLException { this.conn.lock(); try { RowSet rs = this.service.getSchemaMetaData( ServiceMetaDataCall.PROCEDURES, new ServiceMetaDataArgs() .setDriverType(ClientConfiguration.DRIVER_TYPE) .setSchema(schemaPattern).setProcedureName(procedureNamePattern)); return new ClientResultSet(this.conn, this.metaAttrs, rs); } catch (GFXDException gfxde) { throw ThriftExceptionUtil.newSQLException(gfxde); } finally { this.conn.unlock(); } }
public ResultSet getPseudoColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException { this.conn.lock(); try { RowSet rs = this.service.getSchemaMetaData( ServiceMetaDataCall.PSEUDOCOLUMNS, new ServiceMetaDataArgs() .setDriverType(ClientConfiguration.DRIVER_TYPE) .setSchema(schemaPattern).setTable(tableNamePattern) .setColumnName(columnNamePattern)); return new ClientResultSet(this.conn, this.metaAttrs, rs); } catch (GFXDException gfxde) { throw ThriftExceptionUtil.newSQLException(gfxde); } finally { this.conn.unlock(); } } }
/** * {@inheritDoc} */ @Override public ResultSet getColumnPrivileges(String catalog, String schema, String table, String columnNamePattern) throws SQLException { this.conn.lock(); try { RowSet rs = this.service.getSchemaMetaData( ServiceMetaDataCall.COLUMNPRIVILEGES, new ServiceMetaDataArgs() .setDriverType(ClientConfiguration.DRIVER_TYPE).setSchema(schema) .setTable(table).setColumnName(columnNamePattern)); return new ClientResultSet(this.conn, this.metaAttrs, rs); } catch (GFXDException gfxde) { throw ThriftExceptionUtil.newSQLException(gfxde); } finally { this.conn.unlock(); } }
/** * {@inheritDoc} */ @Override public ResultSet getAttributes(String catalog, String schemaPattern, String typeNamePattern, String attributeNamePattern) throws SQLException { this.conn.lock(); try { RowSet rs = this.service.getSchemaMetaData( ServiceMetaDataCall.ATTRIBUTES, new ServiceMetaDataArgs() .setDriverType(ClientConfiguration.DRIVER_TYPE) .setSchema(schemaPattern).setTypeName(typeNamePattern) .setAttributeName(attributeNamePattern)); return new ClientResultSet(this.conn, this.metaAttrs, rs); } catch (GFXDException gfxde) { throw ThriftExceptionUtil.newSQLException(gfxde); } finally { this.conn.unlock(); } }