/** * PUBLIC: * Execute the call on the database and return the result. * The call must return a value, if no value is return executeNonSelectCall must be used. * The call can be a stored procedure call, SQL call or other type of call. * A vector of database rows is returned, database row implements Java 2 Map which should be used to access the data. * <p>Example: * <p>session.executeSelectingCall(new SQLCall("Select * from Employee"); * * @see #executeNonSelectingCall(Call) */ @Override public Vector executeSelectingCall(Call call) throws DatabaseException { DataReadQuery query = new DataReadQuery(); query.setCall(call); query.setIsExecutionClone(true); return (Vector)executeQuery(query); }
/** * PUBLIC: * Execute the call on the database and return the result. * The call must return a value, if no value is return executeNonSelectCall must be used. * The call can be a stored procedure call, SQL call or other type of call. * A vector of database rows is returned, database row implements Java 2 Map which should be used to access the data. * <p>Example: * <p>session.executeSelectingCall(new SQLCall("Select * from Employee"); * * @see #executeNonSelectingCall(Call) */ public Vector executeSelectingCall(Call call) throws DatabaseException { DataReadQuery query = new DataReadQuery(); query.setCall(call); query.setIsExecutionClone(true); return (Vector)executeQuery(query); }
/** * PUBLIC: * Execute the call on the database and return the result. * The call must return a value, if no value is return executeNonSelectCall must be used. * The call can be a stored procedure call, SQL call or other type of call. * A vector of database rows is returned, database row implements Java 2 Map which should be used to access the data. * <p>Example: * <p>session.executeSelectingCall(new SQLCall("Select * from Employee"); * * @see #executeNonSelectingCall(Call) */ public Vector executeSelectingCall(Call call) throws DatabaseException { DataReadQuery query = new DataReadQuery(); query.setCall(call); query.setIsExecutionClone(true); return (Vector)executeQuery(query); }
/** * INTERNAL: * Execute the call on the database and return the result. Calling this * method will bypass a global setting to disallow native SQL queries. (set * by default when one Entity is marked as multitenant) * * The call must return a value, if no value is return executeNonSelectCall * must be used. * * The call can be a stored procedure call, SQL call or other type of call. * * A vector of database rows is returned, database row implements Java 2 Map * which should be used to access the data. * * <p>Example: * <p>session.executeSelectingCall(new SQLCall("Select * from Employee"); * * @see #priviledgedExecuteNonSelectingCall(Call) */ public Vector priviledgedExecuteSelectingCall(Call call) throws DatabaseException { DataReadQuery query = new DataReadQuery(); query.setAllowNativeSQLQuery(true); query.setCall(call); query.setIsExecutionClone(true); return (Vector)executeQuery(query); }
/** * INTERNAL: * Execute the call on the database and return the result. Calling this * method will bypass a global setting to disallow native SQL queries. (set * by default when one Entity is marked as multitenant) * * The call must return a value, if no value is return executeNonSelectCall * must be used. * * The call can be a stored procedure call, SQL call or other type of call. * * A vector of database rows is returned, database row implements Java 2 Map * which should be used to access the data. * * <p>Example: * <p>session.executeSelectingCall(new SQLCall("Select * from Employee"); * * @see #priviledgedExecuteNonSelectingCall(Call) */ public Vector priviledgedExecuteSelectingCall(Call call) throws DatabaseException { DataReadQuery query = new DataReadQuery(); query.setAllowNativeSQLQuery(true); query.setCall(call); query.setIsExecutionClone(true); return (Vector)executeQuery(query); }