/** * PUBLIC: * Set if duplicate rows should be filter when using 1-m joining. */ public void setShouldFilterDuplicates(boolean shouldFilterDuplicates) { getJoinedAttributeManager().setShouldFilterDuplicates(shouldFilterDuplicates); }
/** * INTERNAL: * Convience method for project mapping. */ public List getJoinedAttributeExpressions() { return getJoinedAttributeManager().getJoinedAttributeExpressions(); }
/** * INTERNAL: * Convenience method for project mapping. */ public List getJoinedAttributeExpressions() { return getJoinedAttributeManager().getJoinedAttributeExpressions(); }
/** * PUBLIC: * Set if duplicate rows should be filter when using 1-m joining. */ public void setShouldFilterDuplicates(boolean shouldFilterDuplicates) { getJoinedAttributeManager().setShouldFilterDuplicates(shouldFilterDuplicates); }
/** * INTERNAL: * Convenience method for project mapping. */ public List getJoinedAttributeExpressions() { return getJoinedAttributeManager().getJoinedAttributeExpressions(); }
/** * PUBLIC: * Set if duplicate rows should be filter when using 1-m joining. */ public void setShouldFilterDuplicates(boolean shouldFilterDuplicates) { getJoinedAttributeManager().setShouldFilterDuplicates(shouldFilterDuplicates); }
/** * INTERNAL: * Convenience method for project mapping. */ public void setJoinedAttributeExpressions(List expressions) { if (((expressions != null) && !expressions.isEmpty()) || hasJoining()) { getJoinedAttributeManager().setJoinedAttributeExpressions_(expressions); } }
/** * INTERNAL: * Convenience method for project mapping. */ public void setJoinedAttributeExpressions(List expressions) { if (((expressions != null) && !expressions.isEmpty()) || hasJoining()) { getJoinedAttributeManager().setJoinedAttributeExpressions_(expressions); } }
/** * Return an instance of the receivers javaClass. Set the attributes of an instance * from the values stored in the database row. */ public Object buildObject(ObjectLevelReadQuery query, AbstractRecord databaseRow) { // PERF: Avoid lazy init of join manager if no joining. JoinedAttributeManager joinManager = null; if (query.hasJoining()) { joinManager = query.getJoinedAttributeManager(); } return buildObject(query, databaseRow, joinManager); }
/** * Return an instance of the receivers javaClass. Set the attributes of an instance * from the values stored in the database row. */ public Object buildObject(ObjectLevelReadQuery query, AbstractRecord databaseRow) throws DatabaseException, QueryException { // PERF: Avoid lazy init of join manager if no joining. JoinedAttributeManager joinManager = null; if (query.hasJoining()) { joinManager = query.getJoinedAttributeManager(); } return buildObject(query, databaseRow, joinManager); }
/** * PUBLIC: * Return if duplicate rows should be filter when using 1-m joining. */ public boolean shouldFilterDuplicates() { if (hasJoining()) { return getJoinedAttributeManager().shouldFilterDuplicates(); } return true; }
/** * Return an instance of the receivers javaClass. Set the attributes of an instance * from the values stored in the database row. */ public Object buildObject(ObjectLevelReadQuery query, AbstractRecord databaseRow) { // PERF: Avoid lazy init of join manager if no joining. JoinedAttributeManager joinManager = null; if (query.hasJoining()) { joinManager = query.getJoinedAttributeManager(); } return buildObject(query, databaseRow, joinManager); }
/** * PUBLIC: * Return if duplicate rows should be filter when using 1-m joining. */ public boolean shouldFilterDuplicates() { if (hasJoining()) { return getJoinedAttributeManager().shouldFilterDuplicates(); } return true; }
/** * PUBLIC: * Return if duplicate rows should be filter when using 1-m joining. */ public boolean shouldFilterDuplicates() { if (hasJoining()) { return getJoinedAttributeManager().shouldFilterDuplicates(); } return true; }
/** * Prepare the joining indexes if joining. */ protected void prepareJoining(ObjectLevelReadQuery query) { if (query.hasJoining()) { query.getJoinedAttributeManager().computeJoiningMappingIndexes(true, getSession(), 0); } }
/** * Prepare the joining indexes if joining. */ protected void prepareJoining(ObjectLevelReadQuery query) { if (query.hasJoining()) { query.getJoinedAttributeManager().computeJoiningMappingIndexes(true, getSession(), 0); } }
/** * PUBLIC: * Release all objects read in so far. * This should be performed when reading in a large collection of * objects in order to preserve memory. */ public void clear() { // If using 1-m joining need to release 1-m rows as well. if ((this.query != null) && this.query.isObjectLevelReadQuery() && ((ObjectLevelReadQuery)this.query).hasJoining()) { ((ObjectLevelReadQuery)this.query).getJoinedAttributeManager().clearDataResults(); } } }
/** * PUBLIC: * Release all objects read in so far. * This should be performed when reading in a large collection of * objects in order to preserve memory. */ public void clear() { // If using 1-m joining need to release 1-m rows as well. if ((this.query != null) && this.query.isObjectLevelReadQuery() && ((ObjectLevelReadQuery)this.query).hasJoining()) { ((ObjectLevelReadQuery)this.query).getJoinedAttributeManager().clearDataResults(); } } }
/** * Prepare the joining indexes if joining. */ protected void prepareJoining(ObjectLevelReadQuery query) { if (query.hasJoining()) { query.getJoinedAttributeManager().computeJoiningMappingIndexes(true, getSession(), 0); } }
/** * INTERNAL: * Prepare the receiver for execution in a session. */ protected void prepare() throws QueryException { super.prepare(); prepareQuery(); if (hasJoining()) { getJoinedAttributeManager().computeJoiningMappingQueries(session); } }