/** * INTERNAL: * Return the value of the field from the row or a value holder on the query to obtain the object. * Check for batch + aggregation reading. */ protected Object valueFromRowInternal(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, AbstractSession executionSession) throws DatabaseException { // If any field in the foreign key is null then it means there are no referenced objects // Skip for partial objects as fk may not be present. int size = this.fields.size(); for (int index = 0; index < size; index++) { DatabaseField field = this.fields.get(index); if (row.get(field) == null) { return this.indirectionPolicy.nullValueFromRow(); } } // Call the default which executes the selection query, // or wraps the query with a value holder. return super.valueFromRowInternal(row, joinManager, sourceQuery, executionSession); }
/** * INTERNAL: * Return the value of the field from the row or a value holder on the query to obtain the object. * Check for batch + aggregation reading. */ @Override protected Object valueFromRowInternal(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, AbstractSession executionSession, boolean shouldUseSopObject) throws DatabaseException { // If any field in the foreign key is null then it means there are no referenced objects // Skip for partial objects as fk may not be present. if (!shouldUseSopObject) { int size = this.fields.size(); for (int index = 0; index < size; index++) { DatabaseField field = this.fields.get(index); if (row.get(field) == null) { return this.indirectionPolicy.nullValueFromRow(); } } } // Call the default which executes the selection query, // or wraps the query with a value holder. return super.valueFromRowInternal(row, joinManager, sourceQuery, executionSession, shouldUseSopObject); }
/** * INTERNAL: * Return the value of the field from the row or a value holder on the query to obtain the object. * Check for batch + aggregation reading. */ @Override protected Object valueFromRowInternal(AbstractRecord row, JoinedAttributeManager joinManager, ObjectBuildingQuery sourceQuery, AbstractSession executionSession, boolean shouldUseSopObject) throws DatabaseException { // If any field in the foreign key is null then it means there are no referenced objects // Skip for partial objects as fk may not be present. if (!shouldUseSopObject) { int size = this.fields.size(); for (int index = 0; index < size; index++) { DatabaseField field = this.fields.get(index); if (row.get(field) == null) { return this.indirectionPolicy.nullValueFromRow(); } } } // Call the default which executes the selection query, // or wraps the query with a value holder. return super.valueFromRowInternal(row, joinManager, sourceQuery, executionSession, shouldUseSopObject); }
DatabaseField field = (DatabaseField)enumeration.nextElement(); if (row.get(field) == null) { return getIndirectionPolicy().nullValueFromRow();
Vector key = this.referenceDescriptor.getObjectBuilder().extractPrimaryKeyFromRow(targetRow, executionSession); if (key == null) { return this.indirectionPolicy.nullValueFromRow();
DatabaseField field = (DatabaseField)enumeration.nextElement(); if (row.get(field) == null) { return getIndirectionPolicy().nullValueFromRow(); return getIndirectionPolicy().nullValueFromRow();
DatabaseField field = (DatabaseField)enumeration.nextElement(); if (row.get(field) == null) { return getIndirectionPolicy().nullValueFromRow();
DatabaseField field = (DatabaseField)enumeration.nextElement(); if (row.get(field) == null) { return getIndirectionPolicy().nullValueFromRow();
Object key = this.referenceDescriptor.getObjectBuilder().extractPrimaryKeyFromRow(targetRow, executionSession); if (key == null) { return this.indirectionPolicy.nullValueFromRow();
Object key = this.referenceDescriptor.getObjectBuilder().extractPrimaryKeyFromRow(targetRow, executionSession); if (key == null) { return this.indirectionPolicy.nullValueFromRow();
return getIndirectionPolicy().nullValueFromRow(); return getIndirectionPolicy().nullValueFromRow();
return getIndirectionPolicy().nullValueFromRow(); return getIndirectionPolicy().nullValueFromRow();
Object sopAttributeValue = getAttributeValueFromObject(row.getSopObject()); if (sopAttributeValue == null) { return this.indirectionPolicy.nullValueFromRow();
Object sopAttributeValue = getAttributeValueFromObject(row.getSopObject()); if (sopAttributeValue == null) { return this.indirectionPolicy.nullValueFromRow();
return this.indirectionPolicy.nullValueFromRow();
return this.indirectionPolicy.nullValueFromRow();