| java.lang.Object org.hsqldb.BaseTable org.hsqldb.Table org.hsqldb.View
View | class View extends Table (Code) | | Represents an SQL VIEW based on a SELECT statement.
author: leptipre@users author: fredt@users version: 1.8.0 since: 1.7.0 |
Method Summary | |
void | compile(Session session) Compiles the SELECT statement and sets up the columns. | HsqlName[] | getSchemas() | String | getStatement() Returns the SELECT statement for the view. | boolean | hasColumn(Table table, String colname) Returns true if the view references the named column of the named table,
otherwise false. | boolean | hasSequence(NumberSequence sequence) Returns true if the view references the named SEQUENCE,
otherwise false. | boolean | hasTable(Table table) Returns true if the view references any column of the named table. | boolean | hasView(View view) | void | setDataReadOnly(boolean value) Overridden to disable SET TABLE READONLY DDL for View objects. | static String | trimStatement(String s) Returns the SELECT statement trimmed of any terminating SQL
whitespace, separators or SQL comments. |
compileTimeSchema | HsqlName compileTimeSchema(Code) | | schema at the time of compilation
|
viewSubqueries | SubQuery[] viewSubqueries(Code) | | List of subqueries in this view in order of materialization. Last
element is the view itself.
|
View | View(Session session, Database db, HsqlName name, String definition, HsqlName[] columns) throws HsqlException(Code) | | Constructor.
Parameters: Session - Parameters: db - database Parameters: name - HsqlName of the view Parameters: definition - SELECT statement of the view Parameters: columns - array of HsqlName column names throws: HsqlException - |
getSchemas | HsqlName[] getSchemas()(Code) | | Returns list of schemas
|
getStatement | String getStatement()(Code) | | Returns the SELECT statement for the view.
|
hasColumn | boolean hasColumn(Table table, String colname)(Code) | | Returns true if the view references the named column of the named table,
otherwise false.
|
hasSequence | boolean hasSequence(NumberSequence sequence)(Code) | | Returns true if the view references the named SEQUENCE,
otherwise false.
|
hasTable | boolean hasTable(Table table)(Code) | | Returns true if the view references any column of the named table.
|
setDataReadOnly | void setDataReadOnly(boolean value) throws HsqlException(Code) | | Overridden to disable SET TABLE READONLY DDL for View objects.
|
trimStatement | static String trimStatement(String s) throws HsqlException(Code) | | Returns the SELECT statement trimmed of any terminating SQL
whitespace, separators or SQL comments.
|
Methods inherited from org.hsqldb.Table | void addColumn(Column column) throws HsqlException(Code)(Java Doc) void addColumns(Result.ResultMetaData metadata, int count) throws HsqlException(Code)(Java Doc) void addColumns(Select select) throws HsqlException(Code)(Java Doc) void addConstraint(Constraint c)(Code)(Java Doc) void addTrigger(TriggerDef trigDef)(Code)(Java Doc) static void checkCascadeDelete(Session session, Table table, HashMappedList tableUpdateLists, Row row, boolean delete, HashSet path) throws HsqlException(Code)(Java Doc) static void checkCascadeUpdate(Session session, Table table, HashMappedList tableUpdateLists, Row orow, Object[] nrow, int[] cols, Table ref, HashSet path) throws HsqlException(Code)(Java Doc) void checkColumnInCheckConstraint(String colname) throws HsqlException(Code)(Java Doc) void checkColumnInFKConstraint(int colIndex) throws HsqlException(Code)(Java Doc) void checkColumnInFKConstraint(int colIndex, int actionType) throws HsqlException(Code)(Java Doc) void checkColumnsMatch(int[] col, Table other, int[] othercol) throws HsqlException(Code)(Java Doc) void checkDataReadOnly() throws HsqlException(Code)(Java Doc) void checkDropIndex(String indexname, HashSet ignore, boolean dropPK) throws HsqlException(Code)(Java Doc) void checkRowDataInsert(Session session, Object[] data) throws HsqlException(Code)(Java Doc) void checkRowDataUpdate(Session session, Object[] data, int[] cols) throws HsqlException(Code)(Java Doc) void clearAllRows(Session session)(Code)(Java Doc) static void clearUpdateLists(HashMappedList tableUpdateList)(Code)(Java Doc) void commitRowToStore(Row row)(Code)(Java Doc) public void connect(Session session) throws HsqlException(Code)(Java Doc) Index createIndex(Session session, int[] column, HsqlName name, boolean unique, boolean constraint, boolean forward) throws HsqlException(Code)(Java Doc) Index createIndexStructure(int[] columns, HsqlName name, boolean unique, boolean constraint, boolean forward) throws HsqlException(Code)(Java Doc) int createIndexStructureGetNo(int[] column, HsqlName name, boolean unique, boolean constraint, boolean forward) throws HsqlException(Code)(Java Doc) void createPrimaryIndex(int[] pkcols, HsqlName name) throws HsqlException(Code)(Java Doc) void createPrimaryKey(int[] cols) throws HsqlException(Code)(Java Doc) void createPrimaryKey() throws HsqlException(Code)(Java Doc) void createPrimaryKey(HsqlName indexName, int[] columns, boolean columnsNotNull) throws HsqlException(Code)(Java Doc) int delete(Session session, HsqlArrayList deleteList) throws HsqlException(Code)(Java Doc) public void deleteNoCheckFromLog(Session session, Object[] data) throws HsqlException(Code)(Java Doc) void deleteNoCheckRollback(Session session, Row row, boolean log) throws HsqlException(Code)(Java Doc) public void disconnect(Session session) throws HsqlException(Code)(Java Doc) void drop() throws HsqlException(Code)(Java Doc) void dropIndex(Session session, String indexname) throws HsqlException(Code)(Java Doc) void dropIndexFromRows(Session session, int index) throws HsqlException(Code)(Java Doc) void dropTrigger(String name)(Code)(Java Doc) void dropTriggers()(Code)(Java Doc) protected Table duplicate() throws HsqlException(Code)(Java Doc) void enforceFieldValueLimits(Object[] data, int[] cols) throws HsqlException(Code)(Java Doc) protected void enforceNullConstraints(Object[] data) throws HsqlException(Code)(Java Doc) boolean equals(Session session, String name)(Code)(Java Doc) boolean equals(String name)(Code)(Java Doc) boolean equals(HsqlName name)(Code)(Java Doc) int findColumn(String c)(Code)(Java Doc) void fireAll(Session session, int trigVecIndx, Object[] oldrow, Object[] newrow)(Code)(Java Doc) void fireAll(Session session, int trigVecIndex)(Code)(Java Doc) int[] getBestRowIdentifiers()(Code)(Java Doc) DataFileCache getCache()(Code)(Java Doc) String getCatalogName()(Code)(Java Doc) Column getColumn(int i)(Code)(Java Doc) public int getColumnCount()(Code)(Java Doc) int[] getColumnMap()(Code)(Java Doc) int getColumnNr(String c) throws HsqlException(Code)(Java Doc) public int[] getColumnTypes()(Code)(Java Doc) Constraint getConstraint(String constraintName)(Code)(Java Doc) Constraint getConstraintForColumns(Table tablemain, int[] colmain, int[] colref)(Code)(Java Doc) int getConstraintIndex(String constraintName)(Code)(Java Doc) Constraint[] getConstraints()(Code)(Java Doc) protected String getDataSource()(Code)(Java Doc) public Object[] getEmptyRowData()(Code)(Java Doc) public String getHeader()(Code)(Java Doc) public int getId()(Code)(Java Doc) int getIdentityColumn()(Code)(Java Doc) Index getIndex(int[] exclude, int colIndex)(Code)(Java Doc) Index getIndex(String indexName)(Code)(Java Doc) public Index getIndex(int i)(Code)(Java Doc) public int getIndexCount()(Code)(Java Doc) Index getIndexForColumn(Session session, int column)(Code)(Java Doc) Index getIndexForColumns(boolean[] columnCheck)(Code)(Java Doc) Index getIndexForColumns(int[] col, boolean unique) throws HsqlException(Code)(Java Doc) int getIndexIndex(String indexName)(Code)(Java Doc) String getIndexRoots()(Code)(Java Doc) public int[] getIndexRootsArray()(Code)(Java Doc) final int getIndexType()(Code)(Java Doc) public Index[] getIndexes()(Code)(Java Doc) int getInternalColumnCount()(Code)(Java Doc) public HsqlName getName()(Code)(Java Doc) boolean[] getNewColumnCheckList()(Code)(Java Doc) int[] getNewColumnMap()(Code)(Java Doc) Object[] getNewRowData(Session session, boolean[] exists) throws HsqlException(Code)(Java Doc) int getNextConstraintIndex(int from, int type)(Code)(Java Doc) Constraint getPrimaryConstraint()(Code)(Java Doc) public Index getPrimaryIndex()(Code)(Java Doc) public int[] getPrimaryKey()(Code)(Java Doc) public int[] getPrimaryKeyTypes()(Code)(Java Doc) CachedRow getRow(int pos, Node primarynode) throws HsqlException(Code)(Java Doc) CachedRow getRow(int pos)(Code)(Java Doc) CachedRow getRow(long id)(Code)(Java Doc) public int getRowCount(Session session) throws HsqlException(Code)(Java Doc) public String getSchemaName()(Code)(Java Doc) final public int getTableType()(Code)(Java Doc) Constraint getUniqueConstraintForColumns(int[] cols)(Code)(Java Doc) Index getUniqueConstraintIndexForColumns(int[] col)(Code)(Java Doc) Constraint getUniqueOrPKConstraintForIndex(Index index)(Code)(Java Doc) public boolean hasPrimaryKey()(Code)(Java Doc) void indexRow(Session session, Row row) throws HsqlException(Code)(Java Doc) int insert(Session session, Result ins) throws HsqlException(Code)(Java Doc) void insert(Session session, Object[] data) throws HsqlException(Code)(Java Doc) public void insertData(Session session, Object[] data) throws HsqlException(Code)(Java Doc) public void insertFromScript(Object[] data) throws HsqlException(Code)(Java Doc) protected void insertFromTextSource(CachedRow row) throws HsqlException(Code)(Java Doc) void insertIntoTable(Session session, Result result) throws HsqlException(Code)(Java Doc) public void insertNoCheckFromLog(Session session, Object[] data) throws HsqlException(Code)(Java Doc) void insertNoCheckRollback(Session session, Row row, boolean log) throws HsqlException(Code)(Java Doc) int insertResult(Session session, Result ins) throws HsqlException(Code)(Java Doc) int insertSys(Result ins) throws HsqlException(Code)(Java Doc) public void insertSys(Object[] data) throws HsqlException(Code)(Java Doc) boolean isBestRowIdentifiersStrict()(Code)(Java Doc) public boolean isCached()(Code)(Java Doc) public boolean isConnected()(Code)(Java Doc) public boolean isDataReadOnly()(Code)(Java Doc) protected boolean isDescDataSource()(Code)(Java Doc) public boolean isEmpty(Session session)(Code)(Java Doc) boolean isFileBased()(Code)(Java Doc) boolean isIndexCached()(Code)(Java Doc) boolean isIndexingMutable()(Code)(Java Doc) final public boolean isReadOnly()(Code)(Java Doc) final public boolean isTemp()(Code)(Java Doc) final public boolean isText()(Code)(Java Doc) final boolean isView()(Code)(Java Doc) boolean isWritable()(Code)(Java Doc) HsqlName makeSysPKName() throws HsqlException(Code)(Java Doc) static boolean mergeKeepUpdate(Session session, HashMappedList rowSet, int[] cols, int[] colTypes, Row row, Object[] newData) throws HsqlException(Code)(Java Doc) static void mergeUpdate(HashMappedList rowSet, Row row, Object[] newData, int[] cols)(Code)(Java Doc) void moveData(Session session, Table from, int colindex, int adjust) throws HsqlException(Code)(Java Doc) Table moveDefinition(int[] removeIndex, Column newColumn, int colIndex, int adjust) throws HsqlException(Code)(Java Doc) Table moveDefinitionPK(int[] pkCols, boolean withIdentity) throws HsqlException(Code)(Java Doc) Row newRow(Object[] o) throws HsqlException(Code)(Java Doc) void releaseRowFromStore(Row row) throws HsqlException(Code)(Java Doc) void removeConstraint(String name)(Code)(Java Doc) void removeRowFromStore(Row row) throws HsqlException(Code)(Java Doc) void rename(Session session, String newname, boolean isquoted) throws HsqlException(Code)(Java Doc) void renameColumn(Column column, String newName, boolean isquoted) throws HsqlException(Code)(Java Doc) void resetDefaultsFlag()(Code)(Java Doc) public void resetRowId(Session session) throws HsqlException(Code)(Java Doc) Row restoreRow(Row oldrow) throws HsqlException(Code)(Java Doc) void setBestRowIdentifiers()(Code)(Java Doc) void setColumnTypeVars(int i)(Code)(Java Doc) void setDataReadOnly(boolean value) throws HsqlException(Code)(Java Doc) protected void setDataSource(Session s, String source, boolean isDesc, boolean newFile) throws HsqlException(Code)(Java Doc) void setDefaultExpression(int columnIndex, Expression def)(Code)(Java Doc) public void setHeader(String header) throws HsqlException(Code)(Java Doc) protected void setIdentityColumn(Session session, Object[] data) throws HsqlException(Code)(Java Doc) public void setIndexRoots(int[] roots) throws HsqlException(Code)(Java Doc) void setIndexRoots(String s) throws HsqlException(Code)(Java Doc) protected void setIsReadOnly(boolean newReadOnly)(Code)(Java Doc) int update(Session session, HashMappedList updateList, int[] cols) throws HsqlException(Code)(Java Doc) void updateConstraintsTables(Session session, Table old, int colindex, int adjust) throws HsqlException(Code)(Java Doc) protected void updateIdentityValue(Object[] data) throws HsqlException(Code)(Java Doc) void updateRowSet(Session session, HashMappedList rowSet, int[] cols, boolean nodelete) throws HsqlException(Code)(Java Doc)
|
|
|