/** * PUBLIC: * Return a new read object query. * The call represents a database interaction such as SQL, Stored Procedure. */ public ReadObjectQuery(Class classToRead, Call call) { this(); this.referenceClass = classToRead; setCall(call); }
/** * PUBLIC: * Return a new read object query. * The call represents a database interaction such as SQL, Stored Procedure. */ public ReadObjectQuery(Class classToRead, Call call) { this(); this.referenceClass = classToRead; setCall(call); }
/** * PUBLIC: * Return a new read object query. * The call represents a database interaction such as SQL, Stored Procedure. */ public ReadObjectQuery(Call call) { this(); setCall(call); }
/** * PUBLIC: * Return a new read object query. * The call represents a database interaction such as SQL, Stored Procedure. */ public ReadObjectQuery(Call call) { this(); setCall(call); }
/** * PUBLIC: * Return a new read object query. * The call represents a database interaction such as SQL, Stored Procedure. */ public ReadObjectQuery(Call call) { this(); setCall(call); }
/** * PUBLIC: * Return a new read object query. * The call represents a database interaction such as SQL, Stored Procedure. */ public ReadObjectQuery(Class classToRead, Call call) { this(); this.referenceClass = classToRead; setCall(call); }
/** * ADVANCED: * Set the receiver's read object call. * This allows the user to override the read object operation. * This must accept only the primary key of the object as arguments. */ public void setReadObjectCall(Call call) { if (call == null) { return; } ReadObjectQuery query = new ReadObjectQuery(); query.setCall(call); setReadObjectQuery(query); }
/** * ADVANCED: * Set the receiver's read object call. * This allows the user to override the read object operation. * This must accept only the primary key of the object as arguments. */ public void setReadObjectCall(Call call) { if (call == null) { return; } ReadObjectQuery query = new ReadObjectQuery(); query.setCall(call); setReadObjectQuery(query); }
/** * ADVANCED: * Set the receiver's read object call. * This allows the user to override the read object operation. * This must accept only the primary key of the object as arguments. */ public void setReadObjectCall(Call call) { if (call == null) { return; } ReadObjectQuery query = new ReadObjectQuery(); query.setCall(call); setReadObjectQuery(query); }
/** * PUBLIC: * Read the first instance of the class from the database returned through execution the Call string. * The Call can be an SQLCall or JPQLCall. * * example: session.readObject(Employee.class, new SQLCall("SELECT * FROM EMPLOYEE")); * @see SQLCall * @see JPQLCall */ public Object readObject(Class domainClass, Call aCall) throws DatabaseException { ReadObjectQuery query = new ReadObjectQuery(); query.setReferenceClass(domainClass); query.setCall(aCall); query.setIsExecutionClone(true); return executeQuery(query); }
/** * PUBLIC: * Read the first instance of the class from the database returned through execution the Call string. * The Call can be an SQLCall or JPQLCall. * * example: session.readObject(Employee.class, new SQLCall("SELECT * FROM EMPLOYEE")); * @see SQLCall * @see JPQLCall */ @Override public Object readObject(Class domainClass, Call aCall) throws DatabaseException { ReadObjectQuery query = new ReadObjectQuery(); query.setReferenceClass(domainClass); query.setCall(aCall); query.setIsExecutionClone(true); return executeQuery(query); }
/** * PUBLIC: * Read the first instance of the class from the database returned through execution the Call string. * The Call can be an SQLCall or JPQLCall. * * example: session.readObject(Employee.class, new SQLCall("SELECT * FROM EMPLOYEE")); * @see SQLCall * @see JPQLCall */ public Object readObject(Class domainClass, Call aCall) throws DatabaseException { ReadObjectQuery query = new ReadObjectQuery(); query.setReferenceClass(domainClass); query.setCall(aCall); query.setIsExecutionClone(true); return executeQuery(query); }