public class View extends Relation implements SQLQueryOwner
| Modifier and Type | Class and Description | 
|---|---|
| static class  | View.RestrictionThe restriction on the query for this view | 
AbstractDBObject.ChildSupport, AbstractDBObject.ListenerSupport| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | CHECK_OPTIONDeprecated. 
 use  #Restriction | 
| static java.lang.String | READ_ONLYDeprecated. 
 use  #Restriction | 
| static java.lang.String | TYPE | 
| Constructor and Description | 
|---|
| View()Creates a new View. | 
| View(java.lang.String name,
    Schema schema)Constructs a new View in the specified schema with the specified name. | 
| Modifier and Type | Method and Description | 
|---|---|
| Column[] | getColumns()Retrieves the list of columns contained in this relation. | 
| java.lang.String | getQueryRestriction()Deprecated.  | 
| View.Restriction | getRestriction()Gets the query restriction for this view. | 
| SQLQuery | getSQLQuery()Returns this view's query. | 
| java.lang.String | getType()Returns the type of this object. | 
| java.lang.String | getViewText()Convenience method that returns the view's query in text format. | 
| boolean | isDeclarative()Convinience method to check whether this view has a declarative query. | 
| boolean | isForceOnCreate()Returns true if this view should include the FORCE option on create. | 
| void | setForceOnCreate(boolean force)Sets whether this view should include the FORCE option on create. | 
| void | setQueryRestriction(java.lang.String restriction)Deprecated. 
 | 
| void | setRestriction(View.Restriction restriction)Sets the query restriction for this view. | 
| void | setSQLQuery(SQLQuery query)Sets this view's query. | 
| void | setViewText(java.lang.String text)Convinience method that sets the view's query to a NonDeclarativeSQLQuery
 from the given text. | 
addColumn, addColumn, addConstraint, getColumn, getConstraint, getConstraints, getOwnedObjectsImpl, removeColumn, removeConstraint, setColumns, setConstraintsgetSchema, setSchemacheckInit, checkInit, copyToImpl, getProperties, getReferenceIDsImpl, needsInitialization, processPropertyChange, setIDaddObjectListener, addObjectListener, addObjectListener, changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, equals, equalsImpl, findOwnedObject, findOwnedObject, findOwnedObject, findOwnedObject, findParent, fireObjectUpdated, firePropertyChanged, getChildSupport, getChildSupport, getID, getName, getOwnedObjects, getOwnedObjects, getParent, getProperty, getProperty, getReferenceIDs, hashCode, includeOwnedObject, includesType, includesType, removeObjectListener, removeObjectListener, removeObjectListener, removeOwnedObject, removeThisAsParent, replaceReferenceIDs, setName, setProperties, setProperty, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddObjectListener, copyTo, copyTo, copyTo, equals, findOwnedObject, findOwnedObject, findOwnedObject, getID, getName, getOwnedObjects, getOwnedObjects, getParent, getProperties, getProperty, getProperty, getReferenceIDs, hashCode, removeObjectListener, removeOwnedObject, replaceReferenceIDs, setID, setName, setProperties, setPropertyaddObjectListener, removeObjectListeneraddObjectListener, fireObjectUpdated, removeObjectListenerpublic static final java.lang.String TYPE
@Deprecated public static final java.lang.String READ_ONLY
#Restriction@Deprecated public static final java.lang.String CHECK_OPTION
#Restrictionpublic View()
public View(java.lang.String name,
            Schema schema)
name - a string containing the name of the viewschema - the schema containing the viewpublic java.lang.String getViewText()
public void setViewText(java.lang.String text)
public SQLQuery getSQLQuery()
getSQLQuery in interface SQLQueryOwnerpublic void setSQLQuery(SQLQuery query)
setSQLQuery in interface SQLQueryOwnerpublic Column[] getColumns()
RelationgetColumns in class Relationpublic boolean isDeclarative()
isDeclarative in interface SQLQueryOwnerpublic java.lang.String getType()
DBObjectpublic View.Restriction getRestriction()
public void setRestriction(View.Restriction restriction)
@Deprecated public java.lang.String getQueryRestriction()
@Deprecated public void setQueryRestriction(java.lang.String restriction)
setRestriction(oracle.javatools.db.View.Restriction)java.lang.IllegalArgumentException - if the string parameter is not
 recognized as a valid Restriction.public boolean isForceOnCreate()
public void setForceOnCreate(boolean force)