/** * INTERNAL: * Create a row that contains source relation fields with values extracted from the source object * and target relation fields with values extracted from the target object. */ public AbstractRecord buildRelationTableSourceAndTargetRow(Object sourceObject, Object targetObject, AbstractSession session, ForeignReferenceMapping mapping) { AbstractRecord databaseRow = buildRelationTableSourceRow(sourceObject, session, mapping); databaseRow = addRelationTableTargetRow(targetObject, session, databaseRow, mapping); return databaseRow; }
/** * INTERNAL: * Create a row that contains source relation fields with values extracted from the source row * and target relation fields with values extracted from the target object. */ public AbstractRecord buildRelationTableSourceAndTargetRow(AbstractRecord sourceRow, Object targetObject, AbstractSession session, ForeignReferenceMapping mapping) { AbstractRecord databaseRow = buildRelationTableSourceRow(sourceRow); databaseRow = addRelationTableTargetRow(targetObject, session, databaseRow, mapping); return databaseRow; } }
/** * INTERNAL: * Create a row that contains source relation fields with values extracted from the source object * and target relation fields with values extracted from the target object. */ public AbstractRecord buildRelationTableSourceAndTargetRow(Object sourceObject, Object targetObject, AbstractSession session, ForeignReferenceMapping mapping) { AbstractRecord databaseRow = buildRelationTableSourceRow(sourceObject, session, mapping); databaseRow = addRelationTableTargetRow(targetObject, session, databaseRow, mapping); return databaseRow; }
/** * INTERNAL: * Create a row that contains source relation fields with values extracted from the source object * and target relation fields with values extracted from the target object. */ public AbstractRecord buildRelationTableSourceAndTargetRow(Object sourceObject, Object targetObject, AbstractSession session, ForeignReferenceMapping mapping) { AbstractRecord databaseRow = buildRelationTableSourceRow(sourceObject, session, mapping); databaseRow = addRelationTableTargetRow(targetObject, session, databaseRow, mapping); return databaseRow; }
/** * INTERNAL: * Create a row that contains source relation fields with values extracted from the source row * and target relation fields with values extracted from the target object. */ public AbstractRecord buildRelationTableSourceAndTargetRow(AbstractRecord sourceRow, Object targetObject, AbstractSession session, ForeignReferenceMapping mapping) { AbstractRecord databaseRow = buildRelationTableSourceRow(sourceRow); databaseRow = addRelationTableTargetRow(targetObject, session, databaseRow, mapping); return databaseRow; } }
/** * INTERNAL: * Create a row that contains source relation fields with values extracted from the source row * and target relation fields with values extracted from the target object. */ public AbstractRecord buildRelationTableSourceAndTargetRow(AbstractRecord sourceRow, Object targetObject, AbstractSession session, ForeignReferenceMapping mapping) { AbstractRecord databaseRow = buildRelationTableSourceRow(sourceRow); databaseRow = addRelationTableTargetRow(targetObject, session, databaseRow, mapping); return databaseRow; } }
/** * INTERNAL: * Delete privately owned parts */ @Override public void preDelete(DeleteObjectQuery query) throws DatabaseException, OptimisticLockException { if ((this.mechanism != null) && !this.isReadOnly && !this.isCascadeOnDeleteSetOnDatabase) { AbstractRecord sourceRow = this.mechanism.buildRelationTableSourceRow(query.getObject(), query.getSession(), this); query.getSession().executeQuery(this.mechanism.deleteQuery, sourceRow); } super.preDelete(query); }
/** * INTERNAL: * Delete privately owned parts */ @Override public void preDelete(DeleteObjectQuery query) throws DatabaseException, OptimisticLockException { if ((this.mechanism != null) && !this.isReadOnly && !this.isCascadeOnDeleteSetOnDatabase) { AbstractRecord sourceRow = this.mechanism.buildRelationTableSourceRow(query.getObject(), query.getSession(), this); query.getSession().executeQuery(this.mechanism.deleteQuery, sourceRow); } super.preDelete(query); }
/** * INTERNAL: * Delete privately owned parts */ public void preDelete(DeleteObjectQuery query) throws DatabaseException, OptimisticLockException { if(this.mechanism != null && !isReadOnly()) { AbstractRecord sourceRow = this.mechanism.buildRelationTableSourceRow(query.getObject(), query.getSession(), this); query.getSession().executeQuery(mechanism.deleteQuery, sourceRow); } super.preDelete(query); }
event[1] = this.mechanism.buildRelationTableSourceRow(query.getObject(), query.getSession(), this);
event[1] = this.mechanism.buildRelationTableSourceRow(query.getObject(), query.getSession(), this);
event[1] = this.mechanism.buildRelationTableSourceRow(query.getObject(), query.getSession(), this);
sourceRow = this.mechanism.buildRelationTableSourceRow(query.getObject(), query.getSession(), this); query.getSession().executeQuery(this.mechanism.deleteQuery, sourceRow);
sourceRow = this.mechanism.buildRelationTableSourceRow(query.getObject(), query.getSession(), this); query.getSession().executeQuery(this.mechanism.deleteQuery, sourceRow);
sourceRow = this.mechanism.buildRelationTableSourceRow(query.getObject(), query.getSession(), this); query.getSession().executeQuery(this.mechanism.deleteQuery, sourceRow);
AbstractRecord databaseRow = this.mechanism.buildRelationTableSourceRow(query.getTranslationRow());
AbstractRecord databaseRow = this.mechanism.buildRelationTableSourceRow(query.getTranslationRow());
AbstractRecord databaseRow = this.mechanism.buildRelationTableSourceRow(query.getTranslationRow());