/** * Build the row representation of the object for update. The row built does not * contain entries for uninstantiated attributes. */ public AbstractRecord buildRowForShallowInsert(Object object, AbstractSession session) { return buildRowForShallowInsert(createRecord(session), object, session); }
/** * Build the row representation of the object for update. The row built does not * contain entries for uninstantiated attributes. */ public AbstractRecord buildRowForShallowInsert(Object object, AbstractSession session) { return buildRowForShallowInsert(createRecord(session), object, session); }
/** * Build the row representation of the object for update. The row built does not * contain entries for uninstantiated attributes. */ public AbstractRecord buildRowForShallowInsert(Object object, AbstractSession session) { return buildRowForShallowInsert(createRecord(session), object, session); }
/** * INTERNAL: * Write the aggregate values into the parent row for shallow insert. */ protected void writeToRowFromAggregateForShallowInsert(AbstractRecord record, Object object, Object attributeValue, AbstractSession session) throws DescriptorException { if (attributeValue == null) { if (this.isNullAllowed) { writeNullReferenceRow(record); } else { throw DescriptorException.nullForNonNullAggregate(object, this); } } else { if (!session.isClassReadOnly(attributeValue.getClass())) { getObjectBuilder(attributeValue, session).buildRowForShallowInsert(record, attributeValue, session); } } }
/** * INTERNAL: * Write the aggregate values into the parent row for shallow insert. */ protected void writeToRowFromAggregateForShallowInsert(AbstractRecord record, Object object, Object attributeValue, AbstractSession session) throws DescriptorException { if (attributeValue == null) { if (this.isNullAllowed) { writeNullReferenceRow(record); } else { throw DescriptorException.nullForNonNullAggregate(object, this); } } else { if (!session.isClassReadOnly(attributeValue.getClass())) { getObjectBuilder(attributeValue, session).buildRowForShallowInsert(record, attributeValue, session); } } }
writeQuery.setModifyRow(descriptor.getObjectBuilder().buildRow(object, session)); } else { writeQuery.setModifyRow(descriptor.getObjectBuilder().buildRowForShallowInsert(object, session)); writeQuery.setModifyRow(descriptor.getObjectBuilder().buildRow(modifyRow, object, session)); } else { writeQuery.setModifyRow(descriptor.getObjectBuilder().buildRowForShallowInsert(modifyRow, object, session));
writeQuery.setModifyRow(descriptor.getObjectBuilder().buildRow(object, session, WriteType.INSERT)); } else { writeQuery.setModifyRow(descriptor.getObjectBuilder().buildRowForShallowInsert(object, session)); writeQuery.setModifyRow(descriptor.getObjectBuilder().buildRow(modifyRow, object, session, WriteType.INSERT)); } else { writeQuery.setModifyRow(descriptor.getObjectBuilder().buildRowForShallowInsert(modifyRow, object, session));
writeQuery.setModifyRow(descriptor.getObjectBuilder().buildRow(object, session, WriteType.INSERT)); } else { writeQuery.setModifyRow(descriptor.getObjectBuilder().buildRowForShallowInsert(object, session)); writeQuery.setModifyRow(descriptor.getObjectBuilder().buildRow(modifyRow, object, session, WriteType.INSERT)); } else { writeQuery.setModifyRow(descriptor.getObjectBuilder().buildRowForShallowInsert(modifyRow, object, session));