public void run() { ISQLConnection con = _session.getSQLConnection(); if (con != null) { _dmd = con.getSQLMetaData(); } } });
public SchemaInfoUpdateCheck(ISession session) { _session = session; _dmd = _session.getSQLConnection().getSQLMetaData(); }
public SchemaInfoUpdateCheck(ISession session) { _session = session; _dmd = _session.getSQLConnection().getSQLMetaData(); }
private boolean fulfillsPlatformDependendMatches(ITableInfo iTableInfo, String catalog) { if(SQLDatabaseMetaData.DriverMatch.isComHttxDriver(_session.getSQLConnection())) { return ( iTableInfo.getCatalogName()==null && "\".\"".equals(catalog)); } else { return false; } }
public void run() { session.getSQLConnection().setCommitOnClose( props.getCommitOnClosingConnection()); } });
public void execute() throws BaseException { try { _session.getSQLConnection().setCatalog(_catalog); } catch (SQLException ex) { throw new BaseException(ex); } } }
public String[] getAllowedSchemas(ISession session) { String[] allowedSchemas = _allowedSchemasBySessionID.get(session.getIdentifier()); if(null == allowedSchemas) { allowedSchemas = getAllowedSchemas(session.getSQLConnection(), session.getAlias()); _allowedSchemasBySessionID.put(session.getIdentifier(), allowedSchemas); } return allowedSchemas; }
public String[] getAllowedSchemas(ISession session) { String[] allowedSchemas = _allowedSchemasBySessionID.get(session.getIdentifier()); if(null == allowedSchemas) { allowedSchemas = getAllowedSchemas(session.getSQLConnection(), session.getAlias()); _allowedSchemasBySessionID.put(session.getIdentifier(), allowedSchemas); } return allowedSchemas; }
protected PreparedStatement createStatement() throws SQLException { ISession session = getSession(); PreparedStatement pstmt = session.getSQLConnection().prepareStatement(SQL); IDatabaseObjectInfo doi = getDatabaseObjectInfo(); pstmt.setString(1, doi.getSchemaName()); pstmt.setString(2, doi.getSimpleName()); return pstmt; } }
protected int getFirstColumnType(ITableInfo ti) throws SQLException { TableColumnInfo[] infos = _session.getSQLConnection().getSQLMetaData().getColumnInfo(ti); return infos[0].getDataType(); }
/** * Create the <TT>IDataSet</TT> to be displayed in this tab. */ protected IDataSet createDataSet() throws DataSetException { // Dont need to close the ResultSet as DatabaseTypesDataSet // will do so when its finished with it. final ISession session = getSession(); return session.getSQLConnection().getSQLMetaData().getTypesDataSet(); } }
public void run() { try { _tableTypes = _session.getSQLConnection().getSQLMetaData().getTableTypes(); } catch (SQLException ex) { s_log.debug("DBMS doesn't support 'getTableTypes()", ex); } }
public void run() { try { _tableTypes = _session.getSQLConnection().getSQLMetaData().getTableTypes(); } catch (SQLException ex) { s_log.debug("DBMS doesn't support 'getTableTypes()", ex); } }
/** * Create the <TT>IDataSet</TT> to be displayed in this tab. */ protected IDataSet createDataSet() throws DataSetException { // Dont need to close the ResultSet as DatabaseTypesDataSet // will do so when its finished with it. final ISession session = getSession(); return session.getSQLConnection().getSQLMetaData().getTypesDataSet(); } }
/** * Create the <TT>IDataSet</TT> to be displayed in this tab. */ protected IDataSet createDataSet() throws DataSetException { final ISQLConnection conn = getSession().getSQLConnection(); SQLDatabaseMetaData md = conn.getSQLMetaData(); return md.getColumns(getTableInfo(), columnIndices, true); } }
/** * Create the <TT>IDataSet</TT> to be displayed in this tab. */ protected IDataSet createDataSet() throws DataSetException { final SQLDatabaseMetaData md = getSession().getSQLConnection().getSQLMetaData(); ITableInfo ti = getTableInfo(); return md.getTablePrivilegesDataSet(ti, columnIndices, true); } }
/** * Create the <TT>IDataSet</TT> to be displayed in this tab. */ protected IDataSet createDataSet() throws DataSetException { final ISession session = getSession(); final ISQLConnection conn = session.getSQLConnection(); return new JavabeanDataSet(new ConnectionInfo(conn, session)); }
/** * Create the <TT>IDataSet</TT> to be displayed in this tab. */ protected IDataSet createDataSet() throws DataSetException { final ISQLConnection conn = getSession().getSQLConnection(); return conn.getSQLMetaData().getProcedureColumnsDataSet(getProcedureInfo()); } }
/** * Create the <TT>IDataSet</TT> to be displayed in this tab. */ protected IDataSet createDataSet() throws DataSetException { final SQLDatabaseMetaData md = getSession().getSQLConnection().getSQLMetaData(); ITableInfo ti = getTableInfo(); return md.getTablePrivilegesDataSet(ti, columnIndices, true); } }
public void reconnected(SessionEvent evt) { if (null != _session && _session.getIdentifier().equals(evt.getSession().getIdentifier())) { _dmd = _session.getSQLConnection().getSQLMetaData(); if (null != _dmd) { s_log.info(s_stringMgr.getString("SchemaInfo.SuccessfullyRestoredDatabaseMetaData")); } } }