Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

oracle.javatools.db
Class ViewColumn

java.lang.Object
  extended by oracle.javatools.db.AbstractDBObject
      extended by oracle.javatools.db.AbstractChildDBObject
          extended by oracle.javatools.db.Column
              extended by oracle.javatools.db.ViewColumn
All Implemented Interfaces:
ChildDBObject, DBObject, Copyable, DynamicPropertySet

public class ViewColumn
extends Column

Custom Column for Views to use when they have a DeclarativeSQLQuery. A View Column wraps a SelectObject from the View's DeclarativeSQLQuery.

getOwnedObjects() does NOT return the SelectObject - the column doesn't own the SelectObject, the query does.


Nested Class Summary
 
Nested classes/interfaces inherited from class oracle.javatools.db.AbstractDBObject
AbstractDBObject.ChildSupport
 
Field Summary
 
Fields inherited from class oracle.javatools.db.Column
AUTO_GENERATED_SEQUENCE, AUTO_GENERATED_SEQUENCE_TRIGGER, TYPE
 
Fields inherited from interface oracle.javatools.db.DBObject
COMMENT
 
Constructor Summary
ViewColumn()
           
ViewColumn(DBObjectID selectID)
          Creates a new ViewColumn based on the given SelectObject).
 
Method Summary
 DBObject copyTo(DBObject target, DBObject copyParent, IDPolicy idPolicy)
          Internal copy method used by the API to perform copy operations.
protected  void copyToImpl(ViewColumn copy, DBObject copyParent, IDPolicy idPolicy)
           
 boolean equals(java.lang.Object target)
           
 boolean equalsImpl(ViewColumn copy)
           
 java.lang.String getName()
          Overridden from DBObject - if the ViewColumn has no name specifically set the name of the select object is used (alias, or expression if no alias).
protected  void getReferenceIDsImpl(java.util.Collection<DBObjectID> refs)
          Used by the final getReferenceID() implementation.
 DBObjectID getSelectObjectID()
          Returns the SelectObject that this ViewColumn wraps.
 boolean isAsterisk()
           
 boolean replaceReferenceIDs(java.util.Map<DBObjectID,DBObjectID> idMap)
          Override in subclasses to replace reference IDs as appropriate.
 void setSelectObjectID(DBObjectID selectID)
          Sets the SelectObject that this ViewColumn wraps.
 
Methods inherited from class oracle.javatools.db.Column
copyToImpl, equalsImpl, getDataTypeUsage, getDefault, getOwnedObjectsImpl, getPrecision, getRelation, getScale, getType, isNotNull, setDataTypeUsage, setDefault, setNotNull, setPrecision, setRelation, setScale
 
Methods inherited from class oracle.javatools.db.AbstractChildDBObject
copyToImpl, findParent, getParent, setParent
 
Methods inherited from class oracle.javatools.db.AbstractDBObject
changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyToImpl, equalsImpl, findOwnedObject, findOwnedObject, findOwnedObject, getChildSupport, getID, getOwnedObjects, getOwnedObjects, getProperties, getProperty, getProperty, getReferenceIDs, hashCode, includeOwnedObject, includesType, includesType, removeThisAsParent, setID, setName, setProperties, setProperty, 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, getOwnedObjects, getOwnedObjects, getReferenceIDs, setID, setName
 
Methods inherited from interface oracle.javatools.util.DynamicPropertySet
getProperties, getProperty, getProperty, setProperties, setProperty
 

Constructor Detail

ViewColumn

public ViewColumn()

ViewColumn

public ViewColumn(DBObjectID selectID)
Creates a new ViewColumn based on the given SelectObject).

Method Detail

getSelectObjectID

public DBObjectID getSelectObjectID()
Returns the SelectObject that this ViewColumn wraps.


setSelectObjectID

public void setSelectObjectID(DBObjectID selectID)
Sets the SelectObject that this ViewColumn wraps.


getName

public java.lang.String getName()
Overridden from DBObject - if the ViewColumn has no name specifically set the name of the select object is used (alias, or expression if no alias).

Specified by:
getName in interface DBObject
Overrides:
getName in class AbstractDBObject
Returns:
a string containing the name of this object.

getReferenceIDsImpl

protected void getReferenceIDsImpl(java.util.Collection<DBObjectID> refs)
Description copied from class: AbstractDBObject
Used by the final getReferenceID() implementation. The list should not contain null values, or be null. Subclasses should start with super.getReferenceIDsImpl() and then add to the passed list as appopriate.

Overrides:
getReferenceIDsImpl in class Column
Parameters:
refs - the collection of ids this object references

equals

public boolean equals(java.lang.Object target)
Overrides:
equals in class Column

equalsImpl

public boolean equalsImpl(ViewColumn copy)

copyTo

public DBObject copyTo(DBObject target,
                       DBObject copyParent,
                       IDPolicy idPolicy)
Description copied from class: AbstractDBObject
Internal copy method used by the API to perform copy operations. All objects must implement this method if they are instantiable objects. Abstract objects (e.g. Relation) must NOT implement this method. The implementation should delegate to the copyToImpl method to copy the actual properties.

This method does not fix internal reference ids on copy. That is done by the calling DBObject.copyTo(DBObject, IDPolicy) method.

Overrides:
copyTo in class Column
See Also:
DBObject.copyTo(java.lang.Object), DBObject.copyTo(DBObject, boolean), AbstractDBObject.copyToImpl(oracle.javatools.db.AbstractDBObject, oracle.javatools.db.DBObject, oracle.javatools.db.IDPolicy)

copyToImpl

protected void copyToImpl(ViewColumn copy,
                          DBObject copyParent,
                          IDPolicy idPolicy)

replaceReferenceIDs

public boolean replaceReferenceIDs(java.util.Map<DBObjectID,DBObjectID> idMap)
Description copied from class: AbstractDBObject
Override in subclasses to replace reference IDs as appropriate. Always call super in the overridden implementation to make sure the default implementation (which checks the property map) is called.

Specified by:
replaceReferenceIDs in interface DBObject
Overrides:
replaceReferenceIDs in class Column
Parameters:
idMap - key = old DBObjectID, value = new DBObjectID
Returns:
true if any ids were replaced.

isAsterisk

public boolean isAsterisk()

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

Copyright © 1997, 2010, Oracle. All rights reserved.