|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.brains2b.sql.meta.ProcedureModel
public class ProcedureModel
Wrapper around a procedure definition from DatabaseMetaData
Class is read-only, use SquelerDDL:ProcedureDDL for changing columns
SQLMetaData
,
SQLRecord
Field Summary | |
---|---|
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 |
Constructor Summary | |
---|---|
protected |
ProcedureModel()
Constructor only used by ProcedureDDL |
|
ProcedureModel(SQLRecord record)
Create a ProcedureModel on the basis of this SQLRecord |
Method Summary | |
---|---|
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 |
protected void |
setParameters(java.util.List list)
set the parameters for this ProcedureModel |
protected void |
setReturnValue(ParameterModel model)
set the return value for this ProcedureModel |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
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 columnMethod Detail |
---|
public java.lang.String getName()
This is equal to the name of the table,column, etc.
getName
in interface SQLMetaModel
public SQLRecord getRecord()
getRecord
in interface SQLMetaModel
public java.lang.String getType()
returned value depends on the model: TABLE,COLUMN,INDEX
getType
in interface SQLMetaModel
public java.util.List getParameters()
protected void setParameters(java.util.List list)
list
- List of ParameterModelpublic ParameterModel getReturnValue()
protected 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.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |