/** * INTERNAL: * Copy all setting from the query. * This is used to morph queries from one type to the other. * By default this calls prepareFromQuery, but additional properties may be required * to be copied as prepareFromQuery only copies properties that affect the SQL. */ public void copyFromQuery(DatabaseQuery query) { super.copyFromQuery(query); if (query.isReadObjectQuery()) { ReadObjectQuery readQuery = (ReadObjectQuery)query; this.selectionKey = readQuery.selectionKey; this.selectionObject = readQuery.selectionObject; this.shouldLoadResultIntoSelectionObject = readQuery.shouldLoadResultIntoSelectionObject; } }
/** * INTERNAL: * Copy all setting from the query. * This is used to morph queries from one type to the other. * By default this calls prepareFromQuery, but additional properties may be required * to be copied as prepareFromQuery only copies properties that affect the SQL. */ public void copyFromQuery(DatabaseQuery query) { super.copyFromQuery(query); if (query.isReadObjectQuery()) { ReadObjectQuery readQuery = (ReadObjectQuery)query; this.selectionId = readQuery.selectionId; this.selectionObject = readQuery.selectionObject; this.shouldLoadResultIntoSelectionObject = readQuery.shouldLoadResultIntoSelectionObject; } }
/** * INTERNAL: * Copy all setting from the query. * This is used to morph queries from one type to the other. * By default this calls prepareFromQuery, but additional properties may be required * to be copied as prepareFromQuery only copies properties that affect the SQL. */ public void copyFromQuery(DatabaseQuery query) { super.copyFromQuery(query); if (query.isReadObjectQuery()) { ReadObjectQuery readQuery = (ReadObjectQuery)query; this.selectionId = readQuery.selectionId; this.selectionObject = readQuery.selectionObject; this.shouldLoadResultIntoSelectionObject = readQuery.shouldLoadResultIntoSelectionObject; } }