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;
}
};
}
Aggregations