/** * Create a new row/record for the object builder. This allows subclasses to * define different record types. This will typically be called when a * record will be used for temporarily holding on to primary key fields. */ protected AbstractRecord createRecordForPKExtraction(int size, AbstractSession session) { return createRecord(size, session); }
/** * Create a new row/record for the object builder. This allows subclasses to * define different record types. This will typically be called when a * record will be used for temporarily holding on to primary key fields. */ protected AbstractRecord createRecordForPKExtraction(int size, AbstractSession session) { return createRecord(size, session); }
/** * Create a new row/record for the object builder. This allows subclasses to * define different record types. This will typically be called when a * record will be used for temporarily holding on to primary key fields. */ protected AbstractRecord createRecordForPKExtraction(int size, AbstractSession session) { return createRecord(size, session); }
/** * Build the row of all of the fields used for insertion. */ public AbstractRecord buildTemplateInsertRow(AbstractSession session) { AbstractRecord databaseRow = createRecord(session); buildTemplateInsertRow(session, databaseRow); return databaseRow; }
/** * 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); }
@Override public AbstractRecord createRecordFromXMLContext(XMLContext context) { return createRecord((AbstractSession)context.getSession()); } }
/** * 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 that contains only the fields nullified by shallow insert. */ public AbstractRecord buildRowForUpdateAfterShallowInsert(Object object, AbstractSession session, DatabaseTable table) { return buildRowForUpdateAfterShallowInsert(createRecord(session), object, session, table); }
/** * Build the row representation of the object that contains only the fields nullified by shallow insert, with all values set to null. */ public AbstractRecord buildRowForUpdateBeforeShallowDelete(Object object, AbstractSession session, DatabaseTable table) { return buildRowForUpdateBeforeShallowDelete(createRecord(session), object, session, table); }
@Override public AbstractRecord createRecordFromXMLContext(XMLContext context) { return createRecord((AbstractSession)context.getSession()); } }
/** * Build the row representation of the object that contains only the fields nullified by shallow insert. */ public AbstractRecord buildRowForUpdateAfterShallowInsert(Object object, AbstractSession session, DatabaseTable table) { return buildRowForUpdateAfterShallowInsert(createRecord(session), object, session, table); }
/** * Build the row of all of the fields used for insertion. */ public AbstractRecord buildTemplateInsertRow(AbstractSession session) { AbstractRecord databaseRow = createRecord(session); buildTemplateInsertRow(session, databaseRow); return databaseRow; }
/** * Build the row representation of the object for update. The row built does not * contain entries for unchanged attributes. */ public AbstractRecord buildRowForUpdate(WriteObjectQuery query) { AbstractRecord databaseRow = createRecord(query.getSession()); return buildRowForUpdate(databaseRow, query); }
/** * Build the row representation of the object for update. The row built does not * contain entries for unchanged attributes. */ public AbstractRecord buildRowForUpdate(WriteObjectQuery query) { AbstractRecord databaseRow = createRecord(query.getSession()); return buildRowForUpdate(databaseRow, query); }
/** * Build the row representation of the object for update. The row built does not * contain entries for unchanged attributes. */ public AbstractRecord buildRowForUpdate(WriteObjectQuery query) { AbstractRecord databaseRow = createRecord(query.getSession()); return buildRowForUpdate(databaseRow, query); }
/** * INTERNAL * @since 2.5.0 */ @Override public UnmarshalRecord createUnmarshalRecord(XMLDescriptor xmlDescriptor, AbstractSession session) { org.eclipse.persistence.oxm.record.UnmarshalRecord wrapper = (org.eclipse.persistence.oxm.record.UnmarshalRecord) xmlDescriptor.getObjectBuilder().createRecord((AbstractSession) session); return wrapper.getUnmarshalRecord(); }
/** * INTERNAL: * Extract the reference pk for rvh usage in remote model. */ public AbstractRecord extractPrimaryKeyRowForSourceObject(Object domainObject, AbstractSession session) { AbstractRecord databaseRow = getDescriptor().getObjectBuilder().createRecord(session); writeFromObjectIntoRow(domainObject, databaseRow, session, WriteType.UNDEFINED); return databaseRow; }
/** * INTERNAL: * Extract the reference pk for rvh usage in remote model. */ public AbstractRecord extractPrimaryKeyRowForSourceObject(Object domainObject, AbstractSession session) { AbstractRecord databaseRow = getDescriptor().getObjectBuilder().createRecord(session); writeFromObjectIntoRow(domainObject, databaseRow, session); return databaseRow; }
/** * Return the row from the given expression. */ public AbstractRecord extractRowFromExpression(Expression expression, AbstractRecord translationRow, AbstractSession session) { AbstractRecord record = createRecord(session); expression.getBuilder().setSession(session.getRootSession(null)); // Get all the field & values from expression boolean isValid = expression.extractValues(false, false, this.descriptor, record, translationRow); if (!isValid) { return null; } return record; }
/** * Return the row from the given expression. */ public AbstractRecord extractRowFromExpression(Expression expression, AbstractRecord translationRow, AbstractSession session) { AbstractRecord record = createRecord(session); expression.getBuilder().setSession(session.getRootSession(null)); // Get all the field & values from expression boolean isValid = expression.extractValues(false, false, this.descriptor, record, translationRow); if (!isValid) { return null; } return record; }