/** * 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.isObjectLevelReadQuery()) { ObjectLevelReadQuery readQuery = (ObjectLevelReadQuery)query; this.cacheUsage = readQuery.cacheUsage; this.isReadOnly = readQuery.isReadOnly; this.isResultSetOptimizedQuery = readQuery.isResultSetOptimizedQuery; this.shouldIncludeData = readQuery.shouldIncludeData; this.inMemoryQueryIndirectionPolicy = readQuery.inMemoryQueryIndirectionPolicy; } }
/** * 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.isObjectLevelReadQuery()) { ObjectLevelReadQuery readQuery = (ObjectLevelReadQuery)query; this.cacheUsage = readQuery.cacheUsage; this.isReadOnly = readQuery.isReadOnly; this.isResultSetOptimizedQuery = readQuery.isResultSetOptimizedQuery; this.shouldIncludeData = readQuery.shouldIncludeData; this.inMemoryQueryIndirectionPolicy = readQuery.inMemoryQueryIndirectionPolicy; this.lockModeType = readQuery.lockModeType; this.defaultBuilder = readQuery.defaultBuilder; this.distinctState = readQuery.distinctState; this.shouldUseSerializedObjectPolicy = readQuery.shouldUseSerializedObjectPolicy; } }
/** * 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.isObjectLevelReadQuery()) { ObjectLevelReadQuery readQuery = (ObjectLevelReadQuery)query; this.cacheUsage = readQuery.cacheUsage; this.isReadOnly = readQuery.isReadOnly; this.isResultSetOptimizedQuery = readQuery.isResultSetOptimizedQuery; this.shouldIncludeData = readQuery.shouldIncludeData; this.inMemoryQueryIndirectionPolicy = readQuery.inMemoryQueryIndirectionPolicy; this.lockModeType = readQuery.lockModeType; this.defaultBuilder = readQuery.defaultBuilder; this.distinctState = readQuery.distinctState; this.shouldUseSerializedObjectPolicy = readQuery.shouldUseSerializedObjectPolicy; } }