/** * ADVANCED: * Return the receiver's read-object call. * This allows the user to override the read-object operation. */ public Call getReadObjectCall() { if (getReadObjectQuery() == null) { return null; } return getReadObjectQuery().getDatasourceCall(); }
/** * ADVANCED: * Return the receiver's read SQL string. * This allows the user to override the SQL generated by TopLink, with their own SQL or procedure call. * The arguments are translated from the fields of the read arguments row, * through replacing the field names marked by '#' with the values for those fields. * This must accept only the primary key of the object as arguments. * <p> * Example, "select * from EMPLOYEE where EMPLOYEE_ID = #EMPLOYEE_ID" */ public String getReadObjectSQLString() { if (getReadObjectQuery() == null) { return null; } return getReadObjectQuery().getSQLString(); }
manager.setReadAllQuery((ReadAllQuery)getReadAllQuery().clone()); if (getReadObjectQuery() != null) { manager.setReadObjectQuery((ReadObjectQuery)getReadObjectQuery().clone());
getUpdateQuery().setDescriptor(descriptor); if (getReadObjectQuery() != null) { getReadObjectQuery().setReferenceClass(getDescriptor().getJavaClass()); getReadObjectQuery().setDescriptor(descriptor);
if ((getDescriptor().getQueryManager().getReadObjectQuery() != null) && getDescriptor().getQueryManager().getReadObjectQuery().isCallQuery()) { Object result = session.readObject(object); if (result != null) {
return descriptorQueryManager.getReadObjectQuery(); return descriptorQueryManager.getReadObjectQuery();
setReadObjectQuery((ReadObjectQuery)parentQueryManager.getReadObjectQuery().clone());