Search in sources :

Example 1 with ProcedureQueryDescriptor

use of org.apache.cayenne.map.ProcedureQueryDescriptor in project cayenne by apache.

the class ProcedureQueryView method setEntity.

void setEntity(ObjEntity entity) {
    QueryDescriptor query = mediator.getCurrentQuery();
    if (query != null && QueryDescriptor.PROCEDURE_QUERY.equals(query.getType())) {
        ((ProcedureQueryDescriptor) query).setResultEntityName(entity != null ? entity.getName() : null);
        mediator.fireQueryEvent(new QueryEvent(this, query));
    }
}
Also used : QueryDescriptor(org.apache.cayenne.map.QueryDescriptor) ProcedureQueryDescriptor(org.apache.cayenne.map.ProcedureQueryDescriptor) ProcedureQueryDescriptor(org.apache.cayenne.map.ProcedureQueryDescriptor) QueryEvent(org.apache.cayenne.configuration.event.QueryEvent)

Aggregations

QueryEvent (org.apache.cayenne.configuration.event.QueryEvent)1 ProcedureQueryDescriptor (org.apache.cayenne.map.ProcedureQueryDescriptor)1 QueryDescriptor (org.apache.cayenne.map.QueryDescriptor)1