|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.javatools.db.AbstractDBObject oracle.javatools.db.AbstractBuildableObject oracle.javatools.db.AbstractSchemaObject oracle.javatools.db.Relation oracle.javatools.db.View
public class View
Represents a database View. Both declarative and non-declarative views are supported - the difference being their SQLQuery object (which is either just a wrapper for text, or a full parse tree depending on whether we can support the view syntax).
Nested Class Summary |
---|
Nested classes/interfaces inherited from class oracle.javatools.db.AbstractDBObject |
---|
AbstractDBObject.ChildSupport |
Field Summary | |
---|---|
static java.lang.String |
CHECK_OPTION
|
static java.lang.String |
READ_ONLY
|
static java.lang.String |
TYPE
|
Fields inherited from interface oracle.javatools.db.DBObject |
---|
COMMENT |
Constructor Summary | |
---|---|
View()
Creates a new View. |
|
View(java.lang.String name,
Schema schema)
Constructs a new View in the specified schema with the specified name. |
Method Summary | |
---|---|
DBObject |
copyTo(DBObject target,
DBObject copyParent,
IDPolicy idPolicy)
Internal copy method used by the API to perform copy operations. |
protected void |
copyToImpl(View copy,
DBObject copyParent,
IDPolicy idPolicy)
|
boolean |
equals(java.lang.Object target)
|
protected boolean |
equalsImpl(View target)
|
protected void |
getOwnedObjectsImpl(java.util.Collection<DBObject> objs,
java.lang.String... types)
Implementation first checks that the object has been built - then returns the collection from suprt.getOwnedObjectsImpl(). |
java.lang.String |
getQueryRestriction()
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()
Convinience 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)
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. |
Methods inherited from class oracle.javatools.db.Relation |
---|
addColumn, addColumn, addConstraint, getColumn, getColumns, getConstraint, getConstraints, removeColumn, removeConstraint, setColumns, setConstraints |
Methods inherited from class oracle.javatools.db.AbstractSchemaObject |
---|
addObjectListener, copyToImpl, equalsImpl, getParent, getSchema, removeObjectListener, setSchema |
Methods inherited from class oracle.javatools.db.AbstractBuildableObject |
---|
addObjectListener, checkInit, checkInit, checkInitEx, copyToImpl, equalsImpl, fireObjectUpdated, getProperties, getProperty, getProperty, getReferenceIDsImpl, needsInitialization, removeObjectListener, setProperties, setProperty |
Methods inherited from class oracle.javatools.db.AbstractDBObject |
---|
changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyToImpl, equalsImpl, findOwnedObject, findOwnedObject, findOwnedObject, getChildSupport, getID, getName, getOwnedObjects, getOwnedObjects, getReferenceIDs, hashCode, includeOwnedObject, includesType, includesType, removeThisAsParent, replaceReferenceIDs, setID, setName, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.javatools.db.DBObject |
---|
copyTo, copyTo, copyTo, findOwnedObject, findOwnedObject, getID, getName, getOwnedObjects, getOwnedObjects, getParent, getReferenceIDs, replaceReferenceIDs, setID, setName |
Methods inherited from interface oracle.javatools.util.DynamicPropertySet |
---|
getProperties, getProperty, getProperty, setProperties, setProperty |
Methods inherited from interface oracle.javatools.db.SystemObject |
---|
addObjectListener, fireObjectUpdated, removeObjectListener |
Field Detail |
---|
public static final java.lang.String TYPE
public static final java.lang.String READ_ONLY
public static final java.lang.String CHECK_OPTION
Constructor Detail |
---|
public View()
public View(java.lang.String name, Schema schema)
name
- a string containing the name of the viewschema
- the schema containing the viewMethod Detail |
---|
public DBObject copyTo(DBObject target, DBObject copyParent, IDPolicy idPolicy)
AbstractDBObject
This method does not fix internal reference ids on copy. That is done by
the calling DBObject.copyTo(DBObject, IDPolicy)
method.
copyTo
in class AbstractDBObject
DBObject.copyTo(java.lang.Object)
,
DBObject.copyTo(DBObject, boolean)
,
AbstractDBObject.copyToImpl(oracle.javatools.db.AbstractDBObject, oracle.javatools.db.DBObject, oracle.javatools.db.IDPolicy)
protected void copyToImpl(View copy, DBObject copyParent, IDPolicy idPolicy)
public boolean equals(java.lang.Object target)
equals
in class java.lang.Object
protected boolean equalsImpl(View target)
public java.lang.String getViewText()
public void setViewText(java.lang.String text)
public SQLQuery getSQLQuery()
getSQLQuery
in interface SQLQueryOwner
public void setSQLQuery(SQLQuery query)
setSQLQuery
in interface SQLQueryOwner
public boolean isDeclarative()
isDeclarative
in interface SQLQueryOwner
public java.lang.String getType()
DBObject
getType
in interface DBObject
protected void getOwnedObjectsImpl(java.util.Collection<DBObject> objs, java.lang.String... types)
AbstractBuildableObject
getOwnedObjectsImpl
in class Relation
objs
- a Collection of the apppropriate children.types
- a vararg of the type(s) to search forAbstractDBObject.includesType(java.lang.String, java.lang.String...)
public java.lang.String getQueryRestriction()
public void setQueryRestriction(java.lang.String restriction)
public boolean isForceOnCreate()
public void setForceOnCreate(boolean force)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |