|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.cjdbc.common.sql.schema.DatabaseProcedure
Represents a procedure
Field Summary | |
private java.lang.String |
name
|
(package private) java.util.ArrayList |
parameters
|
static int |
ProcedureNoResult
Does not return a result |
static int |
ProcedureResultUnknown
May return a result |
static int |
ProcedureReturnsResult
Returns a result |
private int |
procedureType
|
private java.lang.String |
remarks
|
Constructor Summary | |
DatabaseProcedure(java.lang.String name,
java.lang.String remarks,
int procedureType)
|
Method Summary | |
void |
addParameter(DatabaseProcedureParameter param)
Add a parameter to this procedure |
boolean |
equals(java.lang.Object other)
Two DatabaseProcedure are considered equal if they have the
same name and the same parameters. |
java.lang.String |
getName()
|
java.util.ArrayList |
getParameters()
|
int |
getProcedureType()
|
java.lang.String |
getRemarks()
|
static java.lang.String |
getTypeFromInt(int type)
Convert type from integer to string |
static int |
getTypeFromString(java.lang.String type)
Convert type from string to integer |
java.lang.String |
getXml()
Get xml information about this procedure. |
void |
mergeParameters(DatabaseProcedure procedure)
Merges this procedure parameters with the given procedure's parameters. |
void |
setName(java.lang.String name)
|
void |
setParameters(java.util.ArrayList parameters)
|
void |
setProcedureType(int procedureType)
|
void |
setRemarks(java.lang.String remarks)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int ProcedureResultUnknown
public static final int ProcedureNoResult
public static final int ProcedureReturnsResult
java.util.ArrayList parameters
private java.lang.String name
private java.lang.String remarks
private int procedureType
Constructor Detail |
public DatabaseProcedure(java.lang.String name, java.lang.String remarks, int procedureType)
name
- of the procedureremarks
- of the procedureprocedureType
- see above typesMethod Detail |
public static int getTypeFromString(java.lang.String type)
type
- as a string
public static java.lang.String getTypeFromInt(int type)
type
- as an int
public void addParameter(DatabaseProcedureParameter param)
param
- to addpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- The name to set.public java.util.ArrayList getParameters()
public void setParameters(java.util.ArrayList parameters)
parameters
- The parameters to set.public int getProcedureType()
public void setProcedureType(int procedureType)
procedureType
- The procedureType to set.public java.lang.String getRemarks()
public void setRemarks(java.lang.String remarks)
remarks
- The remarks to set.public void mergeParameters(DatabaseProcedure procedure) throws java.sql.SQLException
procedure
- the procedure to merge
java.sql.SQLException
- if the schemas conflictpublic boolean equals(java.lang.Object other)
DatabaseProcedure
are considered equal if they have the
same name and the same parameters.
other
- the object to compare with
true
if the DatabaseProcedures are equalpublic java.lang.String getXml()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |