public class ProcedureModel extends java.lang.Object implements SQLMetaModel
Class is read-only, use SquelerDDL:ProcedureDDL for changing columns
SQLMetaData,
SQLRecord,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FUNCTION
constant for a model defined as function
|
static java.lang.String |
PACKAGE
constant for a model defined as package
|
static java.lang.String |
PACKAGE_BODY
constant for a model defined as package body
|
static java.lang.String |
PROCEDURE
constant for a model defined as procedure
|
| Modifier | Constructor and Description |
|---|---|
protected |
ProcedureModel()
Constructor
only used by ProcedureDDL
|
|
ProcedureModel(SQLRecord record)
Create a ProcedureModel on the basis of this SQLRecord
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCatalog()
get the Catalog for this ProcedureModel
|
java.lang.String |
getName()
get the name for this model's instance
|
java.util.List |
getParameters()
get the parameters for this ProcedureModel
|
SQLRecord |
getRecord()
the record which defines all the values for the model
|
ParameterModel |
getReturnValue()
get the return value for this ProcedureModel
|
java.lang.String |
getSchema()
get the Schema for this ProcedureModel
|
java.lang.String |
getType()
get the type of Object defined by the meta model
|
int |
hashCode() |
void |
setParameters(java.util.List list)
set the parameters for this ProcedureModel
|
void |
setReturnValue(ParameterModel model)
set the return value for this ProcedureModel
|
java.lang.String |
toString() |
public static final java.lang.String PROCEDURE
public static final java.lang.String FUNCTION
public static final java.lang.String PACKAGE
public static final java.lang.String PACKAGE_BODY
protected ProcedureModel()
public ProcedureModel(SQLRecord record)
If the PROCEDURE_TYPE of this SQLRecord equals
DatabaseMetaData.procedureReturnsResult type
is set to FUNCTION
record - SQLRecord, the record containing the
information on this columnpublic java.lang.String getName()
This is equal to the name of the table,column, etc.
getName in interface SQLMetaModelpublic SQLRecord getRecord()
getRecord in interface SQLMetaModelpublic java.lang.String getType()
returned value depends on the model: TABLE,COLUMN,INDEX
getType in interface SQLMetaModelpublic java.util.List getParameters()
public void setParameters(java.util.List list)
list - List of ParameterModelpublic ParameterModel getReturnValue()
public void setReturnValue(ParameterModel model)
model - ParameterModelpublic java.lang.String getCatalog()
public java.lang.String getSchema()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object