Search in sources :

Example 1 with ProcedureAction

use of org.apache.cayenne.access.jdbc.ProcedureAction in project cayenne by apache.

the class HSQLActionBuilder method procedureAction.

@Override
public SQLAction procedureAction(ProcedureQuery query) {
    return new ProcedureAction(query, dataNode) {

        @Override
        protected ProcedureTranslator createTranslator(Connection connection) {
            ProcedureTranslator transl = new HSQLDBProcedureTranslator();
            transl.setAdapter(dataNode.getAdapter());
            transl.setQuery(query);
            transl.setEntityResolver(dataNode.getEntityResolver());
            transl.setConnection(connection);
            transl.setJdbcEventLogger(dataNode.getJdbcEventLogger());
            return transl;
        }
    };
}
Also used : ProcedureAction(org.apache.cayenne.access.jdbc.ProcedureAction) Connection(java.sql.Connection) ProcedureTranslator(org.apache.cayenne.access.translator.procedure.ProcedureTranslator)

Aggregations

Connection (java.sql.Connection)1 ProcedureAction (org.apache.cayenne.access.jdbc.ProcedureAction)1 ProcedureTranslator (org.apache.cayenne.access.translator.procedure.ProcedureTranslator)1