/** * Creates an empty procedure query. */ public ProcedureQuery() { // for backwards compatibility we go against usual default... metaData.setFetchingDataRows(true); }
/** * Creates an empty procedure query. The query would fetch DataRows. Fetching * Persistent objects can be achieved either by using * {@link #ProcedureQuery(String, Class)} constructor or by calling * {@link #setFetchingDataRows(boolean)} and {@link #setResultEntityName(String)} * methods. */ public ProcedureQuery() { // for backwards compatibility we go against usual default... metaData.setFetchingDataRows(true); }
public void setFetchingDataRows(boolean flag) { metaData.setFetchingDataRows(flag); }
public void setFetchingDataRows(boolean flag) { metaData.setFetchingDataRows(flag); }
/** * Creates a ProcedureQuery based on a Procedure object. */ public ProcedureQuery(Procedure procedure) { // for backwards compatibility we go against usual default... metaData.setFetchingDataRows(true); setRoot(procedure); }
/** * Creates a ProcedureQuery based on a Procedure object. The query would fetch * DataRows. Fetching Persistent objects can be achieved either by using * {@link #ProcedureQuery(String, Class)} constructor or by calling * {@link #setFetchingDataRows(boolean)} and {@link #setResultEntityName(String)} * methods. */ public ProcedureQuery(Procedure procedure) { // for backwards compatibility we go against usual default... metaData.setFetchingDataRows(true); setRoot(procedure); }
/** * Creates a ProcedureQuery based on a stored procedure. The query would fetch * DataRows. Fetching Persistent objects can be achieved either by using * {@link #ProcedureQuery(String, Class)} constructor or by calling * {@link #setFetchingDataRows(boolean)} and {@link #setResultEntityName(String)} * methods. * * @param procedureName A name of the stored procedure. For this query to work, a * procedure with this name must be mapped in Cayenne. */ public ProcedureQuery(String procedureName) { // for backwards compatibility we go against usual default... metaData.setFetchingDataRows(true); setRoot(procedureName); }
/** * Creates a ProcedureQuery based on a stored procedure. * <p> * Performance Note: with current EntityResolver implementation it is preferrable to * use Procedure object instead of String as a query root. String root can cause * unneeded EntityResolver reindexing on every call. See this mailing list thread: <a * href="http://objectstyle.org/cayenne/lists/cayenne-user/2005/01/0109.html"> * http://objectstyle.org/cayenne/lists/cayenne-user/2005/01/0109.html</a> * </p> * * @param procedureName A name of the stored procedure. For this query to work, a * procedure with this name must be mapped in Cayenne. */ public ProcedureQuery(String procedureName) { // for backwards compatibility we go against usual default... metaData.setFetchingDataRows(true); setRoot(procedureName); }