protected void cascadeInsertImpl() throws MithraBusinessException { TransactionalBehavior _behavior = zGetTransactionalBehaviorForWriteWithWaitIfNecessary(); this.checkAndGeneratePrimaryKeys(); _behavior.insert(this); }
public void insert() throws MithraBusinessException { TransactionalBehavior behavior = zGetTransactionalBehaviorForWriteWithWaitIfNecessary(); this.checkAndGeneratePrimaryKeys(); behavior.insert(this); }
@Override public Person zCascadeCopyThenInsert() throws MithraBusinessException { TransactionalBehavior _behavior = zGetTransactionalBehaviorForWriteWithWaitIfNecessary(); this.checkAndGeneratePrimaryKeys(); Person original = (Person) _behavior.copyThenInsert(this); return original; }
public void insert() throws MithraBusinessException { TransactionalBehavior behavior = zGetTransactionalBehaviorForWriteWithWaitIfNecessary(); this.checkAndGeneratePrimaryKeys(); behavior.insert(this); }
protected void cascadeInsertImpl() throws MithraBusinessException { TransactionalBehavior _behavior = zGetTransactionalBehaviorForWriteWithWaitIfNecessary(); this.checkAndGeneratePrimaryKeys(); PersonData _data = (PersonData) _behavior.getCurrentDataForWrite(this); PetList pets = (PetList) _data.getPets(); _behavior.insert(this); if (pets != null) { pets.cascadeInsertAll(); } }
@Override public Person zCascadeCopyThenInsert() throws MithraBusinessException { TransactionalBehavior _behavior = zGetTransactionalBehaviorForWriteWithWaitIfNecessary(); this.checkAndGeneratePrimaryKeys(); PersonData _data = (PersonData) _behavior.getCurrentDataForWrite(this); PetList pets = (PetList) _data.getPets(); Person original = (Person) _behavior.copyThenInsert(this); if (pets != null) { pets.zCascadeCopyThenInsertAll(); } return original; }