|
Extension SDK 9.0.5 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.jdeveloper.webservices.util.ProgramUnit
ProgramUnit is a data model that stores a description of a PL/SQL program unit. It stores the program unit name and its return type and parameters.
Constructor Summary | |
ProgramUnit()
Default constructor provided to support Object2Dom marshalling. |
|
ProgramUnit(java.lang.String name,
Parameter[] parameters,
Parameter returns)
Create a new program unit description. |
Method Summary | |
boolean |
canBePublished(oracle.jdevimpl.webservices.util.PLSQLJavaTypeMap plsqlToJava,
oracle.jdevimpl.webservices.util.JavaXSDTypeMap javaToXSD,
java.util.Map typesValidated)
Decide whether the program unit has parameters that allow it to be published. |
boolean |
equals(java.lang.Object o2)
|
java.lang.String |
getName()
|
Parameter[] |
getParameters()
|
Parameter |
getReturn()
|
java.lang.String |
getSignature()
Create a string containing the PL/SQL signature of the program unit. |
java.lang.String |
getWhyNotReason()
|
static ProgramUnit |
parse(java.lang.String sig)
Parse the supplied string and create a ProgramUnit from it. |
void |
setCanBePublished(boolean canBePublished)
Control whether or not the program unit can be published. |
void |
setName(java.lang.String name)
Accessor method provided to support Object2Dom marshalling. |
void |
setParameters(Parameter[] parameters)
Accessor method provided to support Object2Dom marshalling. |
void |
setReturn(Parameter returns)
Accessor method provided to support Object2Dom marshalling. |
void |
setWhyNotReason(java.lang.String whyNotReason)
Set the reason why a program unit can't be published. |
boolean |
xsdSignaturesMatch(ProgramUnit other,
oracle.jdevimpl.webservices.util.PLSQLJavaTypeMap plsqlToJava,
oracle.jdevimpl.webservices.util.JavaXSDTypeMap javaToXSD)
Determine whether this program unit and the program unit supplied have the same signature when mapped down into XSD types. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ProgramUnit()
public ProgramUnit(java.lang.String name, Parameter[] parameters, Parameter returns)
name
- Name of the program unit.parameters
- Array of Parameter objects representing the parameters
of the program unit. Null is accepted if the program unit has no
parameters.returns
- Parameter object representing the return type of the
program unit if it is a function. Null is accepted if the program
unit is a procedure.Method Detail |
public void setName(java.lang.String name)
public java.lang.String getName()
public void setParameters(Parameter[] parameters)
public Parameter[] getParameters()
public void setReturn(Parameter returns)
public Parameter getReturn()
public boolean canBePublished(oracle.jdevimpl.webservices.util.PLSQLJavaTypeMap plsqlToJava, oracle.jdevimpl.webservices.util.JavaXSDTypeMap javaToXSD, java.util.Map typesValidated) throws java.sql.SQLException
plsqlToJava
- Type map from PL/SQL types to Java types.typesValidated
- Map of PL/SQL user types that have previously
been validated, to save us re-calculating results we already know.
java.sql.SQLException
- if type-checking on object types fails due to
a problem on the database.public void setCanBePublished(boolean canBePublished)
canBePublished
- Boolean value, true if the program unit should be
allowed to be published, false otherwise.public java.lang.String getWhyNotReason()
public void setWhyNotReason(java.lang.String whyNotReason)
whyNotReason
- The new reason why the program unit can't be
published.
java.lang.IllegalStateException
- if the reason why is removed from a
program unit that can never be published.public java.lang.String getSignature()
public boolean equals(java.lang.Object o2)
public boolean xsdSignaturesMatch(ProgramUnit other, oracle.jdevimpl.webservices.util.PLSQLJavaTypeMap plsqlToJava, oracle.jdevimpl.webservices.util.JavaXSDTypeMap javaToXSD)
other
- Program unit to compare with.plsqlToJava
- Type map from PL/SQL types to Java types.
public static ProgramUnit parse(java.lang.String sig)
sig
- String containing the signature to parse.
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.