public class View extends TableDerived
Title: Dataspace Framework
Description: Dataspace underlying provider implementation
Copyright: Copyright (c) 2010
Company: StreamScape Technologies
SchemaObject.ConstraintTypes, SchemaObject.Deferable, SchemaObject.Nullability, SchemaObject.ParameterModes, SchemaObject.ReferentialAction, SchemaObject.ViewCheckModes
queryExpression, view
checkConstraints, colDefaults, colGenerated, columnList, defaultRanges, dfetchMonitor, emptyArray, emptyCollectionArray, fkConstraints, fkMainConstraints, identityColumn, identitySequence, tableSchemaChangeTimestamp, triggerList, triggerLists
CHANGE_SET_TABLE, colTypes, columnCount, database, fullIndex, FUNCTION_TABLE, INFO_SCHEMA_TABLE, isSessionBased, isTemp, isView, JOURNAL_FILE_QUEUE, LOGGED_TABLE, MEMORY_TABLE, persistenceId, persistenceScope, PERSISTENT_TABLE, RESULT_TABLE, SCOPE_FULL, SCOPE_SESSION, SCOPE_STATEMENT, SCOPE_TRANSACTION, SEMAGRAPH, SNAPSHOT, store, SYSTEM_SUBQUERY, SYSTEM_TABLE, TEMP_TEXT_TABLE, TEXT_TABLE, TRANSIENT_TABLE, TRANSITION_TABLE, VIEW_TABLE
ACTOR, ASPECTS, ASSERTION, CATALOG, CHARSET, COLLATION, COLLECTION, COLUMN, CONNECTION_FACTORY, CONSTRAINT, CURSOR, DOMAIN, EVENT_PROTOTYPE, FACETS, FILE_DESCRIPTOR, FULL_TEXT_INDEX, FUNCTION, GRANTEE, INDEX, JOB, LABEL, PARAMETER, PROCEDURE, REFERENCE_LINK, REPLICA, REPLICATION_SOURCE, ROUTINE, SCHEMA, SEMANTIC_TYPE, SEQUENCE, SERVER, SPECIFIC_ROUTINE, SUBQUERY, TABLE, TIMER, TRANSIENT_VAR, TRANSITION, TRIGGER, TYPE, VARIABLE, VIEW, WRAPPER
Constructor and Description |
---|
View(DataspaceStore db,
NameManager.ObjectName name,
NameManager.ObjectName[] columnNames,
int check) |
Modifier and Type | Method and Description |
---|---|
DataspaceStateHolder |
aggregateStateHolder() |
void |
collectAllFunctionExpressions(com.streamscape.ds.lib.OrderedHashSet collector) |
void |
compile(com.streamscape.ds.session.Session session,
SchemaObject parentObject)
Compiles the query expression and sets up the columns.
|
long |
getChangeTimestamp() |
int |
getCheckOption() |
com.streamscape.ds.lib.OrderedHashSet |
getComponents() |
int |
getObjectType() |
com.streamscape.ds.lib.OrderedHashSet |
getReferences() |
java.lang.String |
getSQL(java.lang.String name) |
DataspaceStateHolder |
getStateHolder() |
java.lang.String |
getStatement()
Returns the query expression for the view.
|
com.streamscape.ds.parser.expression.SubQuery[] |
getSubqueries() |
Table |
getSubqueryTable() |
int[] |
getUpdatableColumns() |
boolean |
isInsertable() |
boolean |
isTriggerDeletable() |
boolean |
isTriggerInsertable() |
boolean |
isTriggerUpdatable() |
boolean |
isUpdatable() |
void |
recompileView(com.streamscape.ds.session.Session session) |
void |
removeTrigger(com.streamscape.ds.trigger.TriggerDef td)
Drops a trigger.
|
void |
setDataReadOnly(boolean value)
Overridden to disable SET TABLE READONLY DDL for View objects.
|
void |
setStatement(java.lang.String sql) |
getBaseTable, getBaseTableColumnMap, getId, getQueryExpression, getSubQuery, isWritable
addColumn, addColumnNoCheck, addConstraint, addFullTextIndex, addTrigger, addTriggerSQL, checkDataReadOnly, clearAllData, clearAllData, collectFKReadLocks, collectFKWriteLocks, compareRows, convertColumnListToRowMetaData, createIndexForColumns, createPrimaryKey, createPrimaryKey, createPrimaryKeyConstraint, dropReplicationSource, enforceRowConstraints, enforceTypeLimits, findColumn, fireTriggers, fireTriggers, fireTriggers, fireWindowTriggers, getBestRowIdentifiers, getCatalogName, getClusteredIndex, getColumn, getColumn, getColumnCheckList, getColumnIndex, getColumnIndexes, getColumnIndexes, getColumnListSQL, getColumnListWithTypeSQL, getColumnMap, getColumnNameList, getColumnNames, getColumnNameSet, getColumnNameSet, getColumnNameSet, getCommentsSQL, getConstraint, getConstraints, getDeleteRowFromLog, getDependentExternalConstraints, getFKConstraints, getFullIndexForColumns, getFullTextIndexes, getIdentityColumnIndex, getIndex, getIndexForColumn, getIndexForColumns, getIndexForColumns, getIndexRootsArray, getIndexRootsSQL, getNewRowData, getNextIdentity, getNotNullConstraintForColumn, getObjectName, getOwner, getPrimaryConstraint, getReferencesForDependents, getReplicationSource, getRowMetaData, getRowStore, getSchemaName, getSQL, getSQL, getSQLForClustered, getSQLForCollection, getSQLForReadOnly, getSQLForTextSource, getTrigger, getTriggerIndex, getTriggers, getUniqueConstraintForColumns, getUniqueConstraintForIndex, getUniqueNotNullColumnGroup, getUniqueOrPKConstraintForIndex, getUniquePKConstraintNames, hasForeignKey, hasGeneratedColumn, hasIdentityColumn, indexTypeForColumn, insertData, insertFromScript, insertIntoTable, insertNoCheckFromLog, insertResult, insertSingleRow, insertSingleRowForUpdate, insertSys, insertSys, isBestRowIdentifiersStrict, isCached, isConnected, isDataReadOnly, isFileBased, isMemory, isReadOnly, isReplicated, isSchemaBaseTable, isSnapshot, isTemp, isText, isView, releaseTriggers, removeConstraint, removeConstraint, removeFullTextIndex, renameColumn, rowIteratorClustered, rowIteratorClustered, setColumnStructures, setColumnTypeVars, setGeneratedColumns, setIdentityColumn, setIndexRoots, setIndexRoots, setName, setReplicationSource, systemSetIdentityColumn, updateTriggersOrderAndRemoveNulls, verifyConstraintsIntegrity
createAndAddIndexStructure, createIndex, createIndexStructure, createPrimaryIndex, dropIndex, duplicate, getColumnCount, getColumnTypes, getDataColumnCount, getDataScopeString, getEmptyRowData, getFullIndex, getIndex, getIndexCount, getIndexList, getNewColumnCheckList, getPersistenceId, getPrimaryIndex, getPrimaryKey, getPrimaryKeyTypes, getSampleCount, getSampleCountAsString, getTableType, hasLobColumn, hasPrimaryKey, isDropped, isEmpty, isLogged, isTransactional, onCommitPreserve, releaseRowStore, rowIterator, rowIterator, setBestRowIdentifiers, setDropped, setHasLobColumn, setIndexes, setTransactional
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
aggregateObjectStateHolder, getSQLInSchema, recompileObject
public View(DataspaceStore db, NameManager.ObjectName name, NameManager.ObjectName[] columnNames, int check)
public int getObjectType()
getObjectType
in interface SchemaObject
getObjectType
in class Table
public com.streamscape.ds.lib.OrderedHashSet getReferences()
getReferences
in interface SchemaObject
getReferences
in class Table
public com.streamscape.ds.lib.OrderedHashSet getComponents()
getComponents
in interface SchemaObject
getComponents
in class Table
public void compile(com.streamscape.ds.session.Session session, SchemaObject parentObject)
compile
in interface SchemaObject
compile
in class Table
public DataspaceStateHolder aggregateStateHolder()
public DataspaceStateHolder getStateHolder()
public java.lang.String getSQL(java.lang.String name)
getSQL
in interface SchemaObject
getSQL
in class Table
public int[] getUpdatableColumns()
getUpdatableColumns
in class TableDerived
public long getChangeTimestamp()
getChangeTimestamp
in interface SchemaObject
getChangeTimestamp
in class Table
public boolean isTriggerInsertable()
isTriggerInsertable
in class Table
public boolean isTriggerUpdatable()
isTriggerUpdatable
in class Table
public boolean isTriggerDeletable()
isTriggerDeletable
in class Table
public boolean isInsertable()
isInsertable
in class TableDerived
public boolean isUpdatable()
isUpdatable
in class TableDerived
public void removeTrigger(com.streamscape.ds.trigger.TriggerDef td)
Table
removeTrigger
in class Table
public int getCheckOption()
public java.lang.String getStatement()
public void setStatement(java.lang.String sql)
public void setDataReadOnly(boolean value)
setDataReadOnly
in class Table
public void collectAllFunctionExpressions(com.streamscape.ds.lib.OrderedHashSet collector)
public Table getSubqueryTable()
public com.streamscape.ds.parser.expression.SubQuery[] getSubqueries()
public void recompileView(com.streamscape.ds.session.Session session)
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.