Skip navigation links
oracle.javatools.db
Class SpecPlSql
java.lang.Object
oracle.javatools.db.AbstractDBObject
oracle.javatools.db.AbstractBuildableObject
oracle.javatools.db.AbstractSystemObject
oracle.javatools.db.AbstractSchemaObject
oracle.javatools.db.PlSql
oracle.javatools.db.SpecPlSql
- All Implemented Interfaces:
- DBObject, SchemaObject, SourceObject, SystemObject, Copyable, DynamicPropertySet
- Direct Known Subclasses:
- ComplexType, Package
-
public abstract class SpecPlSql
- extends PlSql
Extension of PlSql for objects that have a spec and body. The spec can be declaratively represented by methods and attributes.
- Since:
- 10.1.3
Methods inherited from class oracle.javatools.db.AbstractDBObject |
changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, equals, findOwnedObject, findOwnedObject, findOwnedObject, getChildSupport, getID, getName, getOwnedObjects, getOwnedObjects, getProperty, getReferenceIDs, hashCode, includeOwnedObject, includesType, includesType, removeThisAsParent, replaceReferenceIDs, setID, setName, setProperties, 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, getType, replaceReferenceIDs, setID, setName |
SpecPlSql
protected SpecPlSql()
SpecPlSql
protected SpecPlSql(java.lang.String name,
Schema schema)
copyToImpl
protected void copyToImpl(AbstractDBObject copy,
DBObject copyParent,
IDPolicy idPolicy)
- Description copied from class:
AbstractDBObject
- Implementation method for making a copy of this object. To add custom copyTo logic, a subclass must override this method (exactly), and must call back to the super implementation.
-
- Overrides:
copyToImpl
in class PlSql
-
- Parameters:
copy
- the copy being created of this object
copyParent
- if this object is being copied underneath a parent, this parameter is the copy of the parent of this object, which will therefore need to be the parent of the copy of this object.
idPolicy
- the policy for copying the object's ID.
equalsImpl
protected boolean equalsImpl(AbstractDBObject target)
- Description copied from class:
AbstractDBObject
- Equals implementation for testing equality with another AbstractDBObject. Override this method (with exact signature) to customise the equality comparison.
-
- Overrides:
equalsImpl
in class PlSql
setAttributes
public void setAttributes(PlSqlAttribute[] newAttribs)
- Sets the entire list of attributes, replacing any that have previously been added. This method does not update the underlying PL/SQL. It is only intended to be used at build time by the Object Type Builder.
-
- Parameters:
newAttribs
- an array containing the new list of attributes
getAttributes
public PlSqlAttribute[] getAttributes()
- Retrieves the list of attributes contained in this object type. This method does not update the underlying PL/SQL. It is only intended to be used at build time by the Object Type Builder.
-
- Returns:
- an array containing the list of attributes
addAttribute
public void addAttribute(PlSqlAttribute att)
- Adds one attribute to this object type. This method does not update the underlying PL/SQL. It is only intended to be used at build time by the Object Type Builder.
-
- Parameters:
att
- the new attribute to add
addAttribute
public void addAttribute(int index,
PlSqlAttribute att)
- Adds one attribute to this object type at the given index. Shift the attribute at that position (and any subsequent attributes) down one place. This method does not update the underlying PL/SQL. It is only intended to be used at build time by the Object Type Builder.
-
- Parameters:
index
- the index to add the new attribute at
att
- the new attribute to add
getAttribute
public PlSqlAttribute getAttribute(java.lang.String name)
- Retrieves one attribute by name.
-
- Parameters:
a
- string containing the desired attribute name
- Returns:
- The attribute requested or
null
removeAttribute
public void removeAttribute(PlSqlAttribute att)
- Removes an attribute from this object type. This method does not update the underlying PL/SQL. It is only intended to be used at build time by the Object Type Builder.
-
- Parameters:
att
- the attribute to remove
setMethods
public void setMethods(PlSqlMethod[] newMethods)
- Sets the entire list of methods, replacing any that have previously been added. This method does not update the underlying PL/SQL. It is only intended to be used at build time by the Object Type Builder.
-
- Parameters:
newMethods
- an array containing the new list of methods
getMethods
public PlSqlMethod[] getMethods()
- Retrieves the list of methods contained in this object type.
-
- Returns:
- an array containing the list of methods
addMethod
public void addMethod(PlSqlMethod method)
- Adds one method to this object type. This method does not update the underlying PL/SQL. It is only intended to be used at build time by the Object Type Builder.
-
- Parameters:
att
- the new method to add
addMethod
public void addMethod(int index,
PlSqlMethod method)
- Adds one method to this object type at the given index. Shift the method at that position (and any subsequent methods) down one place. This method does not update the underlying PL/SQL. It is only intended to be used at build time by the Object Type Builder.
-
- Parameters:
index
- the index to add the new method at
method
- the new method to add
getMethod
public PlSqlMethod getMethod(java.lang.String name)
- Retrieves one method by name.
-
- Parameters:
a
- string containing the desired method name
- Returns:
- The method requested or
null
removeMethod
public void removeMethod(PlSqlMethod method)
- Removes an method from this object type. This method does not update the underlying PL/SQL. It is only intended to be used at build time by the Object Type Builder.
-
- Parameters:
method
- the method to remove
getBodySource
public java.lang.String getBodySource()
setBodySource
public void setBodySource(java.lang.String body)
getBodySourceInterrogator
public PlSqlInterrogator getBodySourceInterrogator()
Skip navigation links
Copyright © 1997, 2015, Oracle. All rights reserved.