/** * 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.isObjectBuildingQuery()) { ObjectBuildingQuery readQuery = (ObjectBuildingQuery)query; this.shouldBuildNullForNullPk = readQuery.shouldBuildNullForNullPk; this.shouldRefreshIdentityMapResult = readQuery.shouldRefreshIdentityMapResult; this.shouldRefreshRemoteIdentityMapResult = readQuery.shouldRefreshRemoteIdentityMapResult; this.shouldRegisterResultsInUnitOfWork = readQuery.shouldRegisterResultsInUnitOfWork; this.shouldUseExclusiveConnection = readQuery.shouldUseExclusiveConnection; } }
/** * 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. */ @Override public void copyFromQuery(DatabaseQuery query) { super.copyFromQuery(query); if (query.isObjectBuildingQuery()) { ObjectBuildingQuery readQuery = (ObjectBuildingQuery)query; this.shouldBuildNullForNullPk = readQuery.shouldBuildNullForNullPk; this.shouldRefreshIdentityMapResult = readQuery.shouldRefreshIdentityMapResult; this.shouldRefreshRemoteIdentityMapResult = readQuery.shouldRefreshRemoteIdentityMapResult; this.shouldRegisterResultsInUnitOfWork = readQuery.shouldRegisterResultsInUnitOfWork; this.shouldUseExclusiveConnection = readQuery.shouldUseExclusiveConnection; } }
/** * 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.isObjectBuildingQuery()) { ObjectBuildingQuery readQuery = (ObjectBuildingQuery)query; this.shouldBuildNullForNullPk = readQuery.shouldBuildNullForNullPk; this.shouldProcessResultsInUnitOfWork = readQuery.shouldProcessResultsInUnitOfWork; this.shouldRefreshIdentityMapResult = readQuery.shouldRefreshIdentityMapResult; this.shouldRefreshRemoteIdentityMapResult = readQuery.shouldRefreshRemoteIdentityMapResult; this.shouldRegisterResultsInUnitOfWork = readQuery.shouldRegisterResultsInUnitOfWork; this.shouldUseExclusiveConnection = readQuery.shouldUseExclusiveConnection; } }