|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.access.trans.ProcedureTranslator
public class ProcedureTranslator
Stored procedure query translator.
Field Summary | |
---|---|
protected DbAdapter |
adapter
|
protected List<ProcedureParameter> |
callParams
|
protected Connection |
connection
|
protected EntityResolver |
entityResolver
|
protected ProcedureQuery |
query
|
protected List<Object> |
values
|
Constructor Summary | |
---|---|
ProcedureTranslator()
|
Method Summary | |
---|---|
protected String |
createSqlString()
Creates an SQL String for the stored procedure call. |
PreparedStatement |
createStatement()
Creates and binds a PreparedStatement to execute query SQL via JDBC. |
Procedure |
getProcedure()
|
ProcedureQuery |
getProcedureQuery()
|
protected void |
initStatement(CallableStatement stmt)
Set IN and OUT parameters. |
protected void |
initValues()
|
void |
setAdapter(DbAdapter adapter)
|
void |
setConnection(Connection connection)
|
void |
setEntityResolver(EntityResolver entityResolver)
|
protected void |
setInParam(CallableStatement stmt,
ProcedureParameter param,
Object val,
int pos)
Sets a single IN parameter of the CallableStatement. |
protected void |
setOutParam(CallableStatement stmt,
ProcedureParameter param,
int pos)
Sets a single OUT parameter of the CallableStatement. |
void |
setQuery(ProcedureQuery query)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ProcedureQuery query
protected Connection connection
protected DbAdapter adapter
protected EntityResolver entityResolver
protected List<ProcedureParameter> callParams
protected List<Object> values
Constructor Detail |
---|
public ProcedureTranslator()
Method Detail |
---|
public void setQuery(ProcedureQuery query)
public void setConnection(Connection connection)
public void setAdapter(DbAdapter adapter)
public void setEntityResolver(EntityResolver entityResolver)
protected String createSqlString()
public PreparedStatement createStatement() throws Exception
Exception
public Procedure getProcedure()
public ProcedureQuery getProcedureQuery()
protected void initStatement(CallableStatement stmt) throws Exception
Exception
protected void initValues()
protected void setInParam(CallableStatement stmt, ProcedureParameter param, Object val, int pos) throws Exception
Exception
protected void setOutParam(CallableStatement stmt, ProcedureParameter param, int pos) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |