All Downloads are FREE. Search and download functionalities are using the official Maven repository.

klass.model.meta.domain.ExpressionValueAbstract Maven / Gradle / Ivy

The newest version!
package klass.model.meta.domain;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.*;
import java.io.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.gs.fw.common.mithra.*;
import com.gs.fw.common.mithra.attribute.*;
import com.gs.fw.common.mithra.util.*;
import com.gs.fw.common.mithra.notification.*;
import com.gs.fw.common.mithra.notification.listener.*;
import com.gs.fw.common.mithra.list.cursor.Cursor;
import com.gs.fw.common.mithra.bulkloader.*;
import com.gs.fw.common.mithra.*;
import com.gs.fw.common.mithra.behavior.*;
import com.gs.fw.common.mithra.cache.Cache;
import com.gs.fw.common.mithra.extractor.*;
import com.gs.fw.common.mithra.finder.*;
import com.gs.fw.common.mithra.list.*;
import com.gs.fw.common.mithra.behavior.state.PersistenceState;
import com.gs.fw.common.mithra.attribute.update.*;
import com.gs.fw.common.mithra.transaction.MithraObjectPersister;
import java.util.Arrays;
import java.util.HashSet;
/**
* This file was automatically generated using Mithra 18.0.0. Please do not modify it.
* Add custom logic to its subclass instead.
*/
// Generated from templates/transactional/Abstract.jsp
public abstract class ExpressionValueAbstract extends com.gs.fw.common.mithra.superclassimpl.MithraTransactionalObjectImpl
{
	private static byte MEMORY_STATE = PersistenceState.IN_MEMORY;
	private static byte PERSISTED_STATE = PersistenceState.PERSISTED;
	private static final Logger logger = LoggerFactory.getLogger(ExpressionValue.class.getName());
	private static final RelationshipHashStrategy foruserLiteralSubClass = new UserLiteralSubClassRhs();
	private static final RelationshipHashStrategy fornullLiteralSubClass = new NullLiteralSubClassRhs();
	private static final RelationshipHashStrategy forvariableReferenceSubClass = new VariableReferenceSubClassRhs();
	private static final RelationshipHashStrategy formemberReferencePathSubClass = new MemberReferencePathSubClassRhs();
	private static final class UserLiteralSubClassRhs implements RelationshipHashStrategy
	{
		public boolean equalsForRelationship(Object _srcObject, Object _srcData, Object _targetData, Timestamp _asOfDate0, Timestamp _asOfDate1)
		{
			ExpressionValueData _castedSrcData = (ExpressionValueData) _srcData;
			UserLiteralData _castedTargetData = (UserLiteralData) _targetData;
			if (_castedSrcData.getId() == _castedTargetData.getId())
			{
				return true;
			}

			return false;
		}

		public int computeHashCodeFromRelated(Object _srcObject, Object _srcData)
		{
			ExpressionValueData _castedSrcData = (ExpressionValueData) _srcData;
			return HashUtil.hash(_castedSrcData.getId());
		}

		public int computeOffHeapHashCodeFromRelated(Object _srcObject, Object _srcData)
		{
			return computeHashCodeFromRelated(_srcObject, _srcData);
		}
	}

	private static final class NullLiteralSubClassRhs implements RelationshipHashStrategy
	{
		public boolean equalsForRelationship(Object _srcObject, Object _srcData, Object _targetData, Timestamp _asOfDate0, Timestamp _asOfDate1)
		{
			ExpressionValueData _castedSrcData = (ExpressionValueData) _srcData;
			NullLiteralData _castedTargetData = (NullLiteralData) _targetData;
			if (_castedSrcData.getId() == _castedTargetData.getId())
			{
				return true;
			}

			return false;
		}

		public int computeHashCodeFromRelated(Object _srcObject, Object _srcData)
		{
			ExpressionValueData _castedSrcData = (ExpressionValueData) _srcData;
			return HashUtil.hash(_castedSrcData.getId());
		}

		public int computeOffHeapHashCodeFromRelated(Object _srcObject, Object _srcData)
		{
			return computeHashCodeFromRelated(_srcObject, _srcData);
		}
	}

	private static final class VariableReferenceSubClassRhs implements RelationshipHashStrategy
	{
		public boolean equalsForRelationship(Object _srcObject, Object _srcData, Object _targetData, Timestamp _asOfDate0, Timestamp _asOfDate1)
		{
			ExpressionValueData _castedSrcData = (ExpressionValueData) _srcData;
			VariableReferenceData _castedTargetData = (VariableReferenceData) _targetData;
			if (_castedSrcData.getId() == _castedTargetData.getId())
			{
				return true;
			}

			return false;
		}

		public int computeHashCodeFromRelated(Object _srcObject, Object _srcData)
		{
			ExpressionValueData _castedSrcData = (ExpressionValueData) _srcData;
			return HashUtil.hash(_castedSrcData.getId());
		}

		public int computeOffHeapHashCodeFromRelated(Object _srcObject, Object _srcData)
		{
			return computeHashCodeFromRelated(_srcObject, _srcData);
		}
	}

	private static final class MemberReferencePathSubClassRhs implements RelationshipHashStrategy
	{
		public boolean equalsForRelationship(Object _srcObject, Object _srcData, Object _targetData, Timestamp _asOfDate0, Timestamp _asOfDate1)
		{
			ExpressionValueData _castedSrcData = (ExpressionValueData) _srcData;
			MemberReferencePathData _castedTargetData = (MemberReferencePathData) _targetData;
			if (_castedSrcData.getId() == _castedTargetData.getId())
			{
				return true;
			}

			return false;
		}

		public int computeHashCodeFromRelated(Object _srcObject, Object _srcData)
		{
			ExpressionValueData _castedSrcData = (ExpressionValueData) _srcData;
			return HashUtil.hash(_castedSrcData.getId());
		}

		public int computeOffHeapHashCodeFromRelated(Object _srcObject, Object _srcData)
		{
			return computeHashCodeFromRelated(_srcObject, _srcData);
		}
	}

	public ExpressionValueAbstract()
	{
		this.persistenceState = MEMORY_STATE;
	}

	public ExpressionValue getDetachedCopy() throws MithraBusinessException
	{
		return (ExpressionValue) super.getDetachedCopy();
	}

	public ExpressionValue getNonPersistentCopy() throws MithraBusinessException
	{
		ExpressionValue result = (ExpressionValue) super.getNonPersistentCopy();
		result.persistenceState = MEMORY_STATE;
		return result;
	}

	public void insert() throws MithraBusinessException
	{
		TransactionalBehavior behavior = zGetTransactionalBehaviorForWriteWithWaitIfNecessary();
		this.checkAndGeneratePrimaryKeys();
		behavior.insert(this);
	}

	public ExpressionValue copyDetachedValuesToOriginalOrInsertIfNew()
	{
		return (ExpressionValue) this.zCopyDetachedValuesToOriginalOrInsertIfNew();
	}

	public ExpressionValue zFindOriginal()
	{
		ExpressionValueData data = (ExpressionValueData) this.currentData;
		Operation op;
		op = ExpressionValueFinder.id().eq(data.getId());
		return ExpressionValueFinder.findOne(op);
	}

	public boolean isModifiedSinceDetachmentByDependentRelationships()
	{
		if(this.isModifiedSinceDetachment()) return true;
		if(isUserLiteralSubClassModifiedSinceDetachment()) return true;
		if(isNullLiteralSubClassModifiedSinceDetachment()) return true;
		if(isVariableReferenceSubClassModifiedSinceDetachment()) return true;
		if(isMemberReferencePathSubClassModifiedSinceDetachment()) return true;
		return false;
	}

	private Logger getLogger()
	{
		return logger;
	}

	public MithraDataObject zAllocateData()
	{
		return new ExpressionValueData();
	}

	protected void zSetFromExpressionValueData( ExpressionValueData data )
	{
		super.zSetData(data);
		this.persistenceState = PERSISTED_STATE;
	}

	public void setFromExpressionValueData( ExpressionValueData data )
	{
		super.zSetData(data);
	}

	public void zWriteDataClassName(ObjectOutput out) throws IOException
	{
	}

	public final boolean isIdNull()
	{
		return ((ExpressionValueData) this.zSynchronizedGetData()).isIdNull();
	}

	public final long getId()
	{
		ExpressionValueData data = (ExpressionValueData) this.zSynchronizedGetData();
		return data.getId();
	}

	public void setId(long newValue)
	{
		MithraDataObject d = zSetLong(ExpressionValueFinder.id(), newValue, true, false ,false);
		if (d == null) return;
		ExpressionValueData data = (ExpressionValueData) d;
		TransactionalBehavior _behavior = zGetTransactionalBehaviorForWriteWithWaitIfNecessary();
		if (!_behavior.isPersisted())
		{
			UserLiteral userLiteralSubClass =
			(UserLiteral ) data.getUserLiteralSubClass();
			if (userLiteralSubClass != null)
			{
				userLiteralSubClass.setId(newValue);
			}

			NullLiteral nullLiteralSubClass =
			(NullLiteral ) data.getNullLiteralSubClass();
			if (nullLiteralSubClass != null)
			{
				nullLiteralSubClass.setId(newValue);
			}

			VariableReference variableReferenceSubClass =
			(VariableReference ) data.getVariableReferenceSubClass();
			if (variableReferenceSubClass != null)
			{
				variableReferenceSubClass.setId(newValue);
			}

			MemberReferencePath memberReferencePathSubClass =
			(MemberReferencePath ) data.getMemberReferencePathSubClass();
			if (memberReferencePathSubClass != null)
			{
				memberReferencePathSubClass.setId(newValue);
			}
		}
	}

	protected void issuePrimitiveNullSetters(TransactionalBehavior behavior, MithraDataObject data)
	{
	}

	public void zPersistDetachedRelationships(MithraDataObject _data)
	{
		ExpressionValueData _newData = (ExpressionValueData) _data;
		if (_newData.getUserLiteralSubClass() instanceof NulledRelation)
		{
			UserLiteral userLiteralSubClass =
			this.getUserLiteralSubClass();
			if (userLiteralSubClass != null)
			{
				userLiteralSubClass.cascadeDelete();
			}
		}
		else
		{
			UserLiteral userLiteralSubClass =
			(UserLiteral) _newData.getUserLiteralSubClass();
			if (userLiteralSubClass != null)
			{
				UserLiteral _existing =
				this.getUserLiteralSubClass();
				if (_existing == null)
				{
					userLiteralSubClass.copyDetachedValuesToOriginalOrInsertIfNew();
				}
				else
				{
					_existing.zCopyAttributesFrom(userLiteralSubClass.zGetTxDataForRead());
					_existing.zPersistDetachedRelationships(userLiteralSubClass.zGetTxDataForRead());
				}
			}
		}

		if (_newData.getNullLiteralSubClass() instanceof NulledRelation)
		{
			NullLiteral nullLiteralSubClass =
			this.getNullLiteralSubClass();
			if (nullLiteralSubClass != null)
			{
				nullLiteralSubClass.cascadeDelete();
			}
		}
		else
		{
			NullLiteral nullLiteralSubClass =
			(NullLiteral) _newData.getNullLiteralSubClass();
			if (nullLiteralSubClass != null)
			{
				NullLiteral _existing =
				this.getNullLiteralSubClass();
				if (_existing == null)
				{
					nullLiteralSubClass.copyDetachedValuesToOriginalOrInsertIfNew();
				}
				else
				{
					_existing.zCopyAttributesFrom(nullLiteralSubClass.zGetTxDataForRead());
					_existing.zPersistDetachedRelationships(nullLiteralSubClass.zGetTxDataForRead());
				}
			}
		}

		if (_newData.getVariableReferenceSubClass() instanceof NulledRelation)
		{
			VariableReference variableReferenceSubClass =
			this.getVariableReferenceSubClass();
			if (variableReferenceSubClass != null)
			{
				variableReferenceSubClass.cascadeDelete();
			}
		}
		else
		{
			VariableReference variableReferenceSubClass =
			(VariableReference) _newData.getVariableReferenceSubClass();
			if (variableReferenceSubClass != null)
			{
				VariableReference _existing =
				this.getVariableReferenceSubClass();
				if (_existing == null)
				{
					variableReferenceSubClass.copyDetachedValuesToOriginalOrInsertIfNew();
				}
				else
				{
					_existing.zCopyAttributesFrom(variableReferenceSubClass.zGetTxDataForRead());
					_existing.zPersistDetachedRelationships(variableReferenceSubClass.zGetTxDataForRead());
				}
			}
		}

		if (_newData.getMemberReferencePathSubClass() instanceof NulledRelation)
		{
			MemberReferencePath memberReferencePathSubClass =
			this.getMemberReferencePathSubClass();
			if (memberReferencePathSubClass != null)
			{
				memberReferencePathSubClass.cascadeDelete();
			}
		}
		else
		{
			MemberReferencePath memberReferencePathSubClass =
			(MemberReferencePath) _newData.getMemberReferencePathSubClass();
			if (memberReferencePathSubClass != null)
			{
				MemberReferencePath _existing =
				this.getMemberReferencePathSubClass();
				if (_existing == null)
				{
					memberReferencePathSubClass.copyDetachedValuesToOriginalOrInsertIfNew();
				}
				else
				{
					_existing.zCopyAttributesFrom(memberReferencePathSubClass.zGetTxDataForRead());
					_existing.zPersistDetachedRelationships(memberReferencePathSubClass.zGetTxDataForRead());
				}
			}
		}
	}

	public void zSetTxDetachedDeleted()
	{
		TransactionalBehavior _behavior = zGetTransactionalBehaviorForWriteWithWaitIfNecessary();
		if (_behavior.isDetached() && _behavior.isDeleted()) return;
		ExpressionValueData _newData = (ExpressionValueData) _behavior.getCurrentDataForRead(this);
		if (_newData.getUserLiteralSubClass() != null && !(_newData.getUserLiteralSubClass() instanceof NulledRelation))
		{
			((UserLiteral)_newData.getUserLiteralSubClass()).zSetTxDetachedDeleted();
		}

		if (_newData.getNullLiteralSubClass() != null && !(_newData.getNullLiteralSubClass() instanceof NulledRelation))
		{
			((NullLiteral)_newData.getNullLiteralSubClass()).zSetTxDetachedDeleted();
		}

		if (_newData.getVariableReferenceSubClass() != null && !(_newData.getVariableReferenceSubClass() instanceof NulledRelation))
		{
			((VariableReference)_newData.getVariableReferenceSubClass()).zSetTxDetachedDeleted();
		}

		if (_newData.getMemberReferencePathSubClass() != null && !(_newData.getMemberReferencePathSubClass() instanceof NulledRelation))
		{
			((MemberReferencePath)_newData.getMemberReferencePathSubClass()).zSetTxDetachedDeleted();
		}

		this.zSetTxPersistenceState(PersistenceState.DETACHED_DELETED);
	}

	public void zSetNonTxDetachedDeleted()
	{
		TransactionalBehavior _behavior = zGetTransactionalBehaviorForWriteWithWaitIfNecessary();
		ExpressionValueData _newData = (ExpressionValueData) _behavior.getCurrentDataForRead(this);
		if (_newData.getUserLiteralSubClass() != null && !(_newData.getUserLiteralSubClass() instanceof NulledRelation))
		{
			((UserLiteral)_newData.getUserLiteralSubClass()).zSetNonTxDetachedDeleted();
		}

		if (_newData.getNullLiteralSubClass() != null && !(_newData.getNullLiteralSubClass() instanceof NulledRelation))
		{
			((NullLiteral)_newData.getNullLiteralSubClass()).zSetNonTxDetachedDeleted();
		}

		if (_newData.getVariableReferenceSubClass() != null && !(_newData.getVariableReferenceSubClass() instanceof NulledRelation))
		{
			((VariableReference)_newData.getVariableReferenceSubClass()).zSetNonTxDetachedDeleted();
		}

		if (_newData.getMemberReferencePathSubClass() != null && !(_newData.getMemberReferencePathSubClass() instanceof NulledRelation))
		{
			((MemberReferencePath)_newData.getMemberReferencePathSubClass()).zSetNonTxDetachedDeleted();
		}

		this.zSetNonTxPersistenceState(PersistenceState.DETACHED_DELETED);
	}

	/**
	* Relationship Expression:
	this.id = UserLiteral.id
* @see UserLiteral#getExpressionValueSuperClass() reverse relationship UserLiteral.getExpressionValueSuperClass() * @return The user literal sub class */ public UserLiteral getUserLiteralSubClass() { UserLiteral _result = null; Operation _op = null; TransactionalBehavior _behavior = zGetTransactionalBehaviorForReadWithWaitIfNecessary(); ExpressionValueData _data = (ExpressionValueData) _behavior.getCurrentDataForRead(this); MithraObjectPortal _portal = null; if (_behavior.isPersisted()) { { _portal = UserLiteralFinder.getMithraObjectPortal(); Object _related = _portal.getAsOneFromCache(this, _data, foruserLiteralSubClass, null, null); if (!(_related instanceof NulledRelation)) _result = (UserLiteral) _related; if (_related == null) { _op = UserLiteralFinder.id().eq(_data.getId()); } } } else if (_behavior.isDetached()) { if (_data.getUserLiteralSubClass() instanceof NulledRelation) { return null; } _result = (UserLiteral) _data.getUserLiteralSubClass(); if (_result == null) { { Operation detachedOp = UserLiteralFinder.id().eq(_data.getId()); _result = UserLiteralFinder.zFindOneForRelationship(detachedOp); if(_result != null) { _result = _result.getDetachedCopy(); } } _behavior = zGetTransactionalBehaviorForWriteWithWaitIfNecessary(); _data = (ExpressionValueData) _behavior.getCurrentDataForWrite(this); _data.setUserLiteralSubClass(_result); if (_result != null) _result.zSetParentContainerexpressionValueSuperClass(this); } } else if (_behavior.isInMemory()) { _result = (UserLiteral) _data.getUserLiteralSubClass(); } if (_op != null) { _result = UserLiteralFinder.zFindOneForRelationship(_op); } return _result; } public void setUserLiteralSubClass(UserLiteral userLiteralSubClass) { UserLiteral _userLiteralSubClass = (UserLiteral) userLiteralSubClass; TransactionalBehavior _behavior = zGetTransactionalBehaviorForWriteWithWaitIfNecessary(); ExpressionValueData _data = (ExpressionValueData) _behavior.getCurrentDataForWrite(this); if (_behavior.isInMemory()) { Object _prev = _data.getUserLiteralSubClass(); _data.setUserLiteralSubClass(_userLiteralSubClass); if (_userLiteralSubClass != null) { _userLiteralSubClass.setId(_data.getId()); _userLiteralSubClass.zSetParentContainerexpressionValueSuperClass(this); } else if (_behavior.isDetached()) { _data.setUserLiteralSubClass(NulledRelation.create(_prev)); if (_prev != null && !(_prev instanceof NulledRelation) && (!((MithraTransactionalObject)_prev).isInMemoryAndNotInserted() || ((MithraTransactionalObject)_prev).zIsDetached())) { ((MithraTransactionalObject)_prev).delete(); } } } else if (_behavior.isPersisted()) { _behavior.clearTempTransaction(this); UserLiteral _existing = this.getUserLiteralSubClass(); if (_userLiteralSubClass != _existing) { if (_existing != null) { _existing.cascadeDelete(); } if (_userLiteralSubClass != null) { _userLiteralSubClass.setId(_data.getId()); _userLiteralSubClass.cascadeInsert(); } } } else throw new RuntimeException("not implemented"); } public boolean isUserLiteralSubClassModifiedSinceDetachment() { TransactionalBehavior _behavior = zGetTransactionalBehaviorForReadWithWaitIfNecessary(); ExpressionValueData _data = (ExpressionValueData) _behavior.getCurrentDataForRead(this); if (_data.getUserLiteralSubClass() instanceof NulledRelation) { UserLiteral _existing = this.getOriginalPersistentObject().getUserLiteralSubClass(); return _existing != null; } UserLiteral userLiteralSubClass = (UserLiteral) _data.getUserLiteralSubClass(); if( userLiteralSubClass != null) { return userLiteralSubClass.isModifiedSinceDetachment(); } return false; } /** * Relationship Expression:
	this.id = NullLiteral.id
* @see NullLiteral#getExpressionValueSuperClass() reverse relationship NullLiteral.getExpressionValueSuperClass() * @return The null literal sub class */ public NullLiteral getNullLiteralSubClass() { NullLiteral _result = null; Operation _op = null; TransactionalBehavior _behavior = zGetTransactionalBehaviorForReadWithWaitIfNecessary(); ExpressionValueData _data = (ExpressionValueData) _behavior.getCurrentDataForRead(this); MithraObjectPortal _portal = null; if (_behavior.isPersisted()) { { _portal = NullLiteralFinder.getMithraObjectPortal(); Object _related = _portal.getAsOneFromCache(this, _data, fornullLiteralSubClass, null, null); if (!(_related instanceof NulledRelation)) _result = (NullLiteral) _related; if (_related == null) { _op = NullLiteralFinder.id().eq(_data.getId()); } } } else if (_behavior.isDetached()) { if (_data.getNullLiteralSubClass() instanceof NulledRelation) { return null; } _result = (NullLiteral) _data.getNullLiteralSubClass(); if (_result == null) { { Operation detachedOp = NullLiteralFinder.id().eq(_data.getId()); _result = NullLiteralFinder.zFindOneForRelationship(detachedOp); if(_result != null) { _result = _result.getDetachedCopy(); } } _behavior = zGetTransactionalBehaviorForWriteWithWaitIfNecessary(); _data = (ExpressionValueData) _behavior.getCurrentDataForWrite(this); _data.setNullLiteralSubClass(_result); if (_result != null) _result.zSetParentContainerexpressionValueSuperClass(this); } } else if (_behavior.isInMemory()) { _result = (NullLiteral) _data.getNullLiteralSubClass(); } if (_op != null) { _result = NullLiteralFinder.zFindOneForRelationship(_op); } return _result; } public void setNullLiteralSubClass(NullLiteral nullLiteralSubClass) { NullLiteral _nullLiteralSubClass = (NullLiteral) nullLiteralSubClass; TransactionalBehavior _behavior = zGetTransactionalBehaviorForWriteWithWaitIfNecessary(); ExpressionValueData _data = (ExpressionValueData) _behavior.getCurrentDataForWrite(this); if (_behavior.isInMemory()) { Object _prev = _data.getNullLiteralSubClass(); _data.setNullLiteralSubClass(_nullLiteralSubClass); if (_nullLiteralSubClass != null) { _nullLiteralSubClass.setId(_data.getId()); _nullLiteralSubClass.zSetParentContainerexpressionValueSuperClass(this); } else if (_behavior.isDetached()) { _data.setNullLiteralSubClass(NulledRelation.create(_prev)); if (_prev != null && !(_prev instanceof NulledRelation) && (!((MithraTransactionalObject)_prev).isInMemoryAndNotInserted() || ((MithraTransactionalObject)_prev).zIsDetached())) { ((MithraTransactionalObject)_prev).delete(); } } } else if (_behavior.isPersisted()) { _behavior.clearTempTransaction(this); NullLiteral _existing = this.getNullLiteralSubClass(); if (_nullLiteralSubClass != _existing) { if (_existing != null) { _existing.cascadeDelete(); } if (_nullLiteralSubClass != null) { _nullLiteralSubClass.setId(_data.getId()); _nullLiteralSubClass.cascadeInsert(); } } } else throw new RuntimeException("not implemented"); } public boolean isNullLiteralSubClassModifiedSinceDetachment() { TransactionalBehavior _behavior = zGetTransactionalBehaviorForReadWithWaitIfNecessary(); ExpressionValueData _data = (ExpressionValueData) _behavior.getCurrentDataForRead(this); if (_data.getNullLiteralSubClass() instanceof NulledRelation) { NullLiteral _existing = this.getOriginalPersistentObject().getNullLiteralSubClass(); return _existing != null; } NullLiteral nullLiteralSubClass = (NullLiteral) _data.getNullLiteralSubClass(); if( nullLiteralSubClass != null) { return nullLiteralSubClass.isModifiedSinceDetachment(); } return false; } /** * Relationship Expression:
	this.id = VariableReference.id
* @see VariableReference#getExpressionValueSuperClass() reverse relationship VariableReference.getExpressionValueSuperClass() * @return The variable reference sub class */ public VariableReference getVariableReferenceSubClass() { VariableReference _result = null; Operation _op = null; TransactionalBehavior _behavior = zGetTransactionalBehaviorForReadWithWaitIfNecessary(); ExpressionValueData _data = (ExpressionValueData) _behavior.getCurrentDataForRead(this); MithraObjectPortal _portal = null; if (_behavior.isPersisted()) { { _portal = VariableReferenceFinder.getMithraObjectPortal(); Object _related = _portal.getAsOneFromCache(this, _data, forvariableReferenceSubClass, null, null); if (!(_related instanceof NulledRelation)) _result = (VariableReference) _related; if (_related == null) { _op = VariableReferenceFinder.id().eq(_data.getId()); } } } else if (_behavior.isDetached()) { if (_data.getVariableReferenceSubClass() instanceof NulledRelation) { return null; } _result = (VariableReference) _data.getVariableReferenceSubClass(); if (_result == null) { { Operation detachedOp = VariableReferenceFinder.id().eq(_data.getId()); _result = VariableReferenceFinder.zFindOneForRelationship(detachedOp); if(_result != null) { _result = _result.getDetachedCopy(); } } _behavior = zGetTransactionalBehaviorForWriteWithWaitIfNecessary(); _data = (ExpressionValueData) _behavior.getCurrentDataForWrite(this); _data.setVariableReferenceSubClass(_result); if (_result != null) _result.zSetParentContainerexpressionValueSuperClass(this); } } else if (_behavior.isInMemory()) { _result = (VariableReference) _data.getVariableReferenceSubClass(); } if (_op != null) { _result = VariableReferenceFinder.zFindOneForRelationship(_op); } return _result; } public void setVariableReferenceSubClass(VariableReference variableReferenceSubClass) { VariableReference _variableReferenceSubClass = (VariableReference) variableReferenceSubClass; TransactionalBehavior _behavior = zGetTransactionalBehaviorForWriteWithWaitIfNecessary(); ExpressionValueData _data = (ExpressionValueData) _behavior.getCurrentDataForWrite(this); if (_behavior.isInMemory()) { Object _prev = _data.getVariableReferenceSubClass(); _data.setVariableReferenceSubClass(_variableReferenceSubClass); if (_variableReferenceSubClass != null) { _variableReferenceSubClass.setId(_data.getId()); _variableReferenceSubClass.zSetParentContainerexpressionValueSuperClass(this); } else if (_behavior.isDetached()) { _data.setVariableReferenceSubClass(NulledRelation.create(_prev)); if (_prev != null && !(_prev instanceof NulledRelation) && (!((MithraTransactionalObject)_prev).isInMemoryAndNotInserted() || ((MithraTransactionalObject)_prev).zIsDetached())) { ((MithraTransactionalObject)_prev).delete(); } } } else if (_behavior.isPersisted()) { _behavior.clearTempTransaction(this); VariableReference _existing = this.getVariableReferenceSubClass(); if (_variableReferenceSubClass != _existing) { if (_existing != null) { _existing.cascadeDelete(); } if (_variableReferenceSubClass != null) { _variableReferenceSubClass.setId(_data.getId()); _variableReferenceSubClass.cascadeInsert(); } } } else throw new RuntimeException("not implemented"); } public boolean isVariableReferenceSubClassModifiedSinceDetachment() { TransactionalBehavior _behavior = zGetTransactionalBehaviorForReadWithWaitIfNecessary(); ExpressionValueData _data = (ExpressionValueData) _behavior.getCurrentDataForRead(this); if (_data.getVariableReferenceSubClass() instanceof NulledRelation) { VariableReference _existing = this.getOriginalPersistentObject().getVariableReferenceSubClass(); return _existing != null; } VariableReference variableReferenceSubClass = (VariableReference) _data.getVariableReferenceSubClass(); if( variableReferenceSubClass != null) { return variableReferenceSubClass.isModifiedSinceDetachment(); } return false; } /** * Relationship Expression:
	this.id = MemberReferencePath.id
* @see MemberReferencePath#getExpressionValueSuperClass() reverse relationship MemberReferencePath.getExpressionValueSuperClass() * @return The member reference path sub class */ public MemberReferencePath getMemberReferencePathSubClass() { MemberReferencePath _result = null; Operation _op = null; TransactionalBehavior _behavior = zGetTransactionalBehaviorForReadWithWaitIfNecessary(); ExpressionValueData _data = (ExpressionValueData) _behavior.getCurrentDataForRead(this); MithraObjectPortal _portal = null; if (_behavior.isPersisted()) { { _portal = MemberReferencePathFinder.getMithraObjectPortal(); Object _related = _portal.getAsOneFromCache(this, _data, formemberReferencePathSubClass, null, null); if (!(_related instanceof NulledRelation)) _result = (MemberReferencePath) _related; if (_related == null) { _op = MemberReferencePathFinder.id().eq(_data.getId()); } } } else if (_behavior.isDetached()) { if (_data.getMemberReferencePathSubClass() instanceof NulledRelation) { return null; } _result = (MemberReferencePath) _data.getMemberReferencePathSubClass(); if (_result == null) { { Operation detachedOp = MemberReferencePathFinder.id().eq(_data.getId()); _result = MemberReferencePathFinder.zFindOneForRelationship(detachedOp); if(_result != null) { _result = _result.getDetachedCopy(); } } _behavior = zGetTransactionalBehaviorForWriteWithWaitIfNecessary(); _data = (ExpressionValueData) _behavior.getCurrentDataForWrite(this); _data.setMemberReferencePathSubClass(_result); if (_result != null) _result.zSetParentContainerexpressionValueSuperClass(this); } } else if (_behavior.isInMemory()) { _result = (MemberReferencePath) _data.getMemberReferencePathSubClass(); } if (_op != null) { _result = MemberReferencePathFinder.zFindOneForRelationship(_op); } return _result; } public void setMemberReferencePathSubClass(MemberReferencePath memberReferencePathSubClass) { MemberReferencePath _memberReferencePathSubClass = (MemberReferencePath) memberReferencePathSubClass; TransactionalBehavior _behavior = zGetTransactionalBehaviorForWriteWithWaitIfNecessary(); ExpressionValueData _data = (ExpressionValueData) _behavior.getCurrentDataForWrite(this); if (_behavior.isInMemory()) { Object _prev = _data.getMemberReferencePathSubClass(); _data.setMemberReferencePathSubClass(_memberReferencePathSubClass); if (_memberReferencePathSubClass != null) { _memberReferencePathSubClass.setId(_data.getId()); _memberReferencePathSubClass.zSetParentContainerexpressionValueSuperClass(this); } else if (_behavior.isDetached()) { _data.setMemberReferencePathSubClass(NulledRelation.create(_prev)); if (_prev != null && !(_prev instanceof NulledRelation) && (!((MithraTransactionalObject)_prev).isInMemoryAndNotInserted() || ((MithraTransactionalObject)_prev).zIsDetached())) { ((MithraTransactionalObject)_prev).delete(); } } } else if (_behavior.isPersisted()) { _behavior.clearTempTransaction(this); MemberReferencePath _existing = this.getMemberReferencePathSubClass(); if (_memberReferencePathSubClass != _existing) { if (_existing != null) { _existing.cascadeDelete(); } if (_memberReferencePathSubClass != null) { _memberReferencePathSubClass.setId(_data.getId()); _memberReferencePathSubClass.cascadeInsert(); } } } else throw new RuntimeException("not implemented"); } public boolean isMemberReferencePathSubClassModifiedSinceDetachment() { TransactionalBehavior _behavior = zGetTransactionalBehaviorForReadWithWaitIfNecessary(); ExpressionValueData _data = (ExpressionValueData) _behavior.getCurrentDataForRead(this); if (_data.getMemberReferencePathSubClass() instanceof NulledRelation) { MemberReferencePath _existing = this.getOriginalPersistentObject().getMemberReferencePathSubClass(); return _existing != null; } MemberReferencePath memberReferencePathSubClass = (MemberReferencePath) _data.getMemberReferencePathSubClass(); if( memberReferencePathSubClass != null) { return memberReferencePathSubClass.isModifiedSinceDetachment(); } return false; } /** * Relationship Expression:
	OperatorCriteria.sourceExpressionId = this.id
* @see OperatorCriteria#getSourceExpressionValue() reverse relationship OperatorCriteria.getSourceExpressionValue() * @return The operator criteria source of */ public OperatorCriteria getOperatorCriteriaSourceOf() { OperatorCriteria _result = null; Operation _op = null; TransactionalBehavior _behavior = zGetTransactionalBehaviorForReadWithWaitIfNecessary(); ExpressionValueData _data = (ExpressionValueData) _behavior.getCurrentDataForRead(this); if (_behavior.isPersisted()) { { { _op = OperatorCriteriaFinder.sourceExpressionId().eq(_data.getId()); } } } else if (_behavior.isDetached()) { { { Operation detachedOp = OperatorCriteriaFinder.sourceExpressionId().eq(_data.getId()); _result = OperatorCriteriaFinder.zFindOneForRelationship(detachedOp); } } } else if (_behavior.isInMemory()) { _result = (OperatorCriteria) _data.getOperatorCriteriaSourceOf(); if (_result == null) { { _op = OperatorCriteriaFinder.sourceExpressionId().eq(_data.getId()); } } } if (_op != null) { _result = OperatorCriteriaFinder.zFindOneForRelationship(_op); } return _result; } public void setOperatorCriteriaSourceOf(OperatorCriteria operatorCriteriaSourceOf) { OperatorCriteria _operatorCriteriaSourceOf = (OperatorCriteria) operatorCriteriaSourceOf; TransactionalBehavior _behavior = zGetTransactionalBehaviorForWriteWithWaitIfNecessary(); ExpressionValueData _data = (ExpressionValueData) _behavior.getCurrentDataForWrite(this); if (_behavior.isInMemory()) { _data.setOperatorCriteriaSourceOf(_operatorCriteriaSourceOf); if (_operatorCriteriaSourceOf == null) { this.setId(0); } else { this.setId(_operatorCriteriaSourceOf.getSourceExpressionId()); } } else if (_behavior.isPersisted()) { _behavior.clearTempTransaction(this); if (_operatorCriteriaSourceOf == null) { this.setId(0); } else { this.setId( _operatorCriteriaSourceOf.getSourceExpressionId()); } } else throw new RuntimeException("not implemented"); } /** * Relationship Expression:
	OperatorCriteria.targetExpressionId = this.id
* @see OperatorCriteria#getTargetExpressionValue() reverse relationship OperatorCriteria.getTargetExpressionValue() * @return The operator criteria target of */ public OperatorCriteria getOperatorCriteriaTargetOf() { OperatorCriteria _result = null; Operation _op = null; TransactionalBehavior _behavior = zGetTransactionalBehaviorForReadWithWaitIfNecessary(); ExpressionValueData _data = (ExpressionValueData) _behavior.getCurrentDataForRead(this); if (_behavior.isPersisted()) { { { _op = OperatorCriteriaFinder.targetExpressionId().eq(_data.getId()); } } } else if (_behavior.isDetached()) { { { Operation detachedOp = OperatorCriteriaFinder.targetExpressionId().eq(_data.getId()); _result = OperatorCriteriaFinder.zFindOneForRelationship(detachedOp); } } } else if (_behavior.isInMemory()) { _result = (OperatorCriteria) _data.getOperatorCriteriaTargetOf(); if (_result == null) { { _op = OperatorCriteriaFinder.targetExpressionId().eq(_data.getId()); } } } if (_op != null) { _result = OperatorCriteriaFinder.zFindOneForRelationship(_op); } return _result; } public void setOperatorCriteriaTargetOf(OperatorCriteria operatorCriteriaTargetOf) { OperatorCriteria _operatorCriteriaTargetOf = (OperatorCriteria) operatorCriteriaTargetOf; TransactionalBehavior _behavior = zGetTransactionalBehaviorForWriteWithWaitIfNecessary(); ExpressionValueData _data = (ExpressionValueData) _behavior.getCurrentDataForWrite(this); if (_behavior.isInMemory()) { _data.setOperatorCriteriaTargetOf(_operatorCriteriaTargetOf); if (_operatorCriteriaTargetOf == null) { this.setId(0); } else { this.setId(_operatorCriteriaTargetOf.getTargetExpressionId()); } } else if (_behavior.isPersisted()) { _behavior.clearTempTransaction(this); if (_operatorCriteriaTargetOf == null) { this.setId(0); } else { this.setId( _operatorCriteriaTargetOf.getTargetExpressionId()); } } else throw new RuntimeException("not implemented"); } protected void cascadeInsertImpl() throws MithraBusinessException { TransactionalBehavior _behavior = zGetTransactionalBehaviorForWriteWithWaitIfNecessary(); this.checkAndGeneratePrimaryKeys(); ExpressionValueData _data = (ExpressionValueData) _behavior.getCurrentDataForWrite(this); UserLiteral userLiteralSubClass = (UserLiteral) _data.getUserLiteralSubClass(); NullLiteral nullLiteralSubClass = (NullLiteral) _data.getNullLiteralSubClass(); VariableReference variableReferenceSubClass = (VariableReference) _data.getVariableReferenceSubClass(); MemberReferencePath memberReferencePathSubClass = (MemberReferencePath) _data.getMemberReferencePathSubClass(); _behavior.insert(this); if (userLiteralSubClass != null) { userLiteralSubClass.cascadeInsert(); } if (nullLiteralSubClass != null) { nullLiteralSubClass.cascadeInsert(); } if (variableReferenceSubClass != null) { variableReferenceSubClass.cascadeInsert(); } if (memberReferencePathSubClass != null) { memberReferencePathSubClass.cascadeInsert(); } } @Override public Map< RelatedFinder, StatisticCounter > zAddNavigatedRelationshipsStats(RelatedFinder finder, Map< RelatedFinder, StatisticCounter > navigationStats) { TransactionalBehavior _behavior = zGetTransactionalBehaviorForWriteWithWaitIfNecessary(); _behavior.addNavigatedRelationshipsStats(this, finder, navigationStats); return navigationStats; } @Override public Map< RelatedFinder, StatisticCounter > zAddNavigatedRelationshipsStatsForUpdate(RelatedFinder parentFinderGeneric, Map< RelatedFinder, StatisticCounter > navigationStats) { ExpressionValueFinder.ExpressionValueRelatedFinder parentFinder = (ExpressionValueFinder.ExpressionValueRelatedFinder) parentFinderGeneric; TransactionalBehavior _behavior = zGetTransactionalBehaviorForWriteWithWaitIfNecessary(); ExpressionValueData _newData = (ExpressionValueData) _behavior.getCurrentDataForWrite(this); if (_newData.getUserLiteralSubClass() instanceof NulledRelation) { RelatedFinder dependentFinder = parentFinder.userLiteralSubClass(); DeepRelationshipUtility.zAddToNavigationStats(dependentFinder, true, navigationStats); DeepRelationshipUtility.zAddAllDependentNavigationsStatsForDelete(dependentFinder, navigationStats); } else { UserLiteral userLiteralSubClass = (UserLiteral) _newData.getUserLiteralSubClass(); RelatedFinder dependentFinder = parentFinder.userLiteralSubClass(); DeepRelationshipUtility.zAddToNavigationStats(dependentFinder, userLiteralSubClass != null, navigationStats); if (userLiteralSubClass != null) { _behavior.addNavigatedRelationshipsStats(userLiteralSubClass, dependentFinder, navigationStats); } } if (_newData.getNullLiteralSubClass() instanceof NulledRelation) { RelatedFinder dependentFinder = parentFinder.nullLiteralSubClass(); DeepRelationshipUtility.zAddToNavigationStats(dependentFinder, true, navigationStats); DeepRelationshipUtility.zAddAllDependentNavigationsStatsForDelete(dependentFinder, navigationStats); } else { NullLiteral nullLiteralSubClass = (NullLiteral) _newData.getNullLiteralSubClass(); RelatedFinder dependentFinder = parentFinder.nullLiteralSubClass(); DeepRelationshipUtility.zAddToNavigationStats(dependentFinder, nullLiteralSubClass != null, navigationStats); if (nullLiteralSubClass != null) { _behavior.addNavigatedRelationshipsStats(nullLiteralSubClass, dependentFinder, navigationStats); } } if (_newData.getVariableReferenceSubClass() instanceof NulledRelation) { RelatedFinder dependentFinder = parentFinder.variableReferenceSubClass(); DeepRelationshipUtility.zAddToNavigationStats(dependentFinder, true, navigationStats); DeepRelationshipUtility.zAddAllDependentNavigationsStatsForDelete(dependentFinder, navigationStats); } else { VariableReference variableReferenceSubClass = (VariableReference) _newData.getVariableReferenceSubClass(); RelatedFinder dependentFinder = parentFinder.variableReferenceSubClass(); DeepRelationshipUtility.zAddToNavigationStats(dependentFinder, variableReferenceSubClass != null, navigationStats); if (variableReferenceSubClass != null) { _behavior.addNavigatedRelationshipsStats(variableReferenceSubClass, dependentFinder, navigationStats); } } if (_newData.getMemberReferencePathSubClass() instanceof NulledRelation) { RelatedFinder dependentFinder = parentFinder.memberReferencePathSubClass(); DeepRelationshipUtility.zAddToNavigationStats(dependentFinder, true, navigationStats); DeepRelationshipUtility.zAddAllDependentNavigationsStatsForDelete(dependentFinder, navigationStats); } else { MemberReferencePath memberReferencePathSubClass = (MemberReferencePath) _newData.getMemberReferencePathSubClass(); RelatedFinder dependentFinder = parentFinder.memberReferencePathSubClass(); DeepRelationshipUtility.zAddToNavigationStats(dependentFinder, memberReferencePathSubClass != null, navigationStats); if (memberReferencePathSubClass != null) { _behavior.addNavigatedRelationshipsStats(memberReferencePathSubClass, dependentFinder, navigationStats); } } return navigationStats; } @Override public Map< RelatedFinder, StatisticCounter > zAddNavigatedRelationshipsStatsForDelete(RelatedFinder parentFinder, Map< RelatedFinder, StatisticCounter > navigationStats) { DeepRelationshipUtility.zAddAllDependentNavigationsStatsForDelete(parentFinder, navigationStats); return navigationStats; } @Override public ExpressionValue zCascadeCopyThenInsert() throws MithraBusinessException { TransactionalBehavior _behavior = zGetTransactionalBehaviorForWriteWithWaitIfNecessary(); this.checkAndGeneratePrimaryKeys(); ExpressionValueData _data = (ExpressionValueData) _behavior.getCurrentDataForWrite(this); UserLiteral userLiteralSubClass = (UserLiteral) _data.getUserLiteralSubClass(); NullLiteral nullLiteralSubClass = (NullLiteral) _data.getNullLiteralSubClass(); VariableReference variableReferenceSubClass = (VariableReference) _data.getVariableReferenceSubClass(); MemberReferencePath memberReferencePathSubClass = (MemberReferencePath) _data.getMemberReferencePathSubClass(); ExpressionValue original = (ExpressionValue) _behavior.copyThenInsert(this); if (userLiteralSubClass != null) { userLiteralSubClass.zCascadeCopyThenInsert(); } if (nullLiteralSubClass != null) { nullLiteralSubClass.zCascadeCopyThenInsert(); } if (variableReferenceSubClass != null) { variableReferenceSubClass.zCascadeCopyThenInsert(); } if (memberReferencePathSubClass != null) { memberReferencePathSubClass.zCascadeCopyThenInsert(); } return original; } protected void cascadeDeleteImpl() throws MithraBusinessException { { UserLiteral related = this.getUserLiteralSubClass(); if (related != null) related.cascadeDelete(); } { NullLiteral related = this.getNullLiteralSubClass(); if (related != null) related.cascadeDelete(); } { VariableReference related = this.getVariableReferenceSubClass(); if (related != null) related.cascadeDelete(); } { MemberReferencePath related = this.getMemberReferencePathSubClass(); if (related != null) related.cascadeDelete(); } this.delete(); } public Cache zGetCache() { return ExpressionValueFinder.getMithraObjectPortal().getCache(); } public MithraObjectPortal zGetPortal() { return ExpressionValueFinder.getMithraObjectPortal(); } public ExpressionValue getOriginalPersistentObject() { return this.zFindOriginal(); } protected boolean issueUpdatesForNonPrimaryKeys(TransactionalBehavior behavior, MithraDataObject data, MithraDataObject newData) { boolean changed = false; return changed; } protected boolean issueUpdatesForPrimaryKeys(TransactionalBehavior behavior, MithraDataObject data, MithraDataObject newData) { boolean changed = false; changed |= zUpdateLong(behavior, data, newData, ExpressionValueFinder.id(), false); return changed; } public long generateAndSetId() { long nextValue =(long) this.generateId(); this.setId(nextValue); return nextValue; } public boolean zGetIsIdSet() { TransactionalBehavior behavior = zGetTransactionalBehaviorForReadWithWaitIfNecessary(); ExpressionValueData data = (ExpressionValueData) behavior.getCurrentDataForRead(this); return data.zGetIsIdSet(); } protected long generateId() { Object sourceAttribute = null; ExpressionValueFinder.getMithraObjectPortal().getCache(); SimulatedSequencePrimaryKeyGenerator primaryKeyGenerator = MithraPrimaryKeyGenerator.getInstance().getSimulatedSequencePrimaryKeyGeneratorForNoSourceAttribute("ExpressionValue", "io.liftwizard.reladomo.simseq.ObjectSequenceObjectFactory",sourceAttribute); return (long)primaryKeyGenerator.getNextId(sourceAttribute); } private void checkAndGeneratePrimaryKeys() { TransactionalBehavior behavior = zGetTransactionalBehaviorForWriteWithWaitIfNecessary(); ExpressionValueData data = (ExpressionValueData) behavior.getCurrentDataForWrite(this); if (!data.zGetIsIdSet()) { data.setId(generateId()); UserLiteral userLiteralSubClass = (UserLiteral ) data.getUserLiteralSubClass(); if (userLiteralSubClass != null) { userLiteralSubClass.setId(data.getId()); } NullLiteral nullLiteralSubClass = (NullLiteral ) data.getNullLiteralSubClass(); if (nullLiteralSubClass != null) { nullLiteralSubClass.setId(data.getId()); } VariableReference variableReferenceSubClass = (VariableReference ) data.getVariableReferenceSubClass(); if (variableReferenceSubClass != null) { variableReferenceSubClass.setId(data.getId()); } MemberReferencePath memberReferencePathSubClass = (MemberReferencePath ) data.getMemberReferencePathSubClass(); if (memberReferencePathSubClass != null) { memberReferencePathSubClass.setId(data.getId()); } OperatorCriteria operatorCriteriaSourceOf = (OperatorCriteria ) data.getOperatorCriteriaSourceOf(); if (operatorCriteriaSourceOf != null) { operatorCriteriaSourceOf.setSourceExpressionId(data.getId()); } OperatorCriteria operatorCriteriaTargetOf = (OperatorCriteria ) data.getOperatorCriteriaTargetOf(); if (operatorCriteriaTargetOf != null) { operatorCriteriaTargetOf.setTargetExpressionId(data.getId()); } } } public Object readResolve() throws ObjectStreamException { ExpressionValueAbstract result = (ExpressionValueAbstract) super.readResolve(); if (result.persistenceState == PersistenceState.PERSISTED) { result.persistenceState = PERSISTED_STATE; } else if (result.persistenceState == PersistenceState.IN_MEMORY) { result.persistenceState = MEMORY_STATE; } return result; } protected static void zConfigNonTx() { MEMORY_STATE = PersistenceState.IN_MEMORY_NON_TRANSACTIONAL; PERSISTED_STATE = PersistenceState.PERSISTED_NON_TRANSACTIONAL; } protected static void zConfigFullTx() { MEMORY_STATE = PersistenceState.IN_MEMORY; PERSISTED_STATE = PersistenceState.PERSISTED; } protected class UserLiteralSubClassAddHandlerInMemory implements DependentRelationshipAddHandler { public void addRelatedObject(MithraTransactionalObject relatedObject) { UserLiteral item = (UserLiteral) relatedObject; item.setId(getId()); item.zSetParentContainerexpressionValueSuperClass(ExpressionValueAbstract.this); } } protected class UserLiteralSubClassAddHandlerPersisted implements DependentRelationshipAddHandler { public void addRelatedObject(MithraTransactionalObject relatedObject) { UserLiteral item = (UserLiteral) relatedObject; item.setId(getId()); item.cascadeInsert(); } } protected class NullLiteralSubClassAddHandlerInMemory implements DependentRelationshipAddHandler { public void addRelatedObject(MithraTransactionalObject relatedObject) { NullLiteral item = (NullLiteral) relatedObject; item.setId(getId()); item.zSetParentContainerexpressionValueSuperClass(ExpressionValueAbstract.this); } } protected class NullLiteralSubClassAddHandlerPersisted implements DependentRelationshipAddHandler { public void addRelatedObject(MithraTransactionalObject relatedObject) { NullLiteral item = (NullLiteral) relatedObject; item.setId(getId()); item.cascadeInsert(); } } protected class VariableReferenceSubClassAddHandlerInMemory implements DependentRelationshipAddHandler { public void addRelatedObject(MithraTransactionalObject relatedObject) { VariableReference item = (VariableReference) relatedObject; item.setId(getId()); item.zSetParentContainerexpressionValueSuperClass(ExpressionValueAbstract.this); } } protected class VariableReferenceSubClassAddHandlerPersisted implements DependentRelationshipAddHandler { public void addRelatedObject(MithraTransactionalObject relatedObject) { VariableReference item = (VariableReference) relatedObject; item.setId(getId()); item.cascadeInsert(); } } protected class MemberReferencePathSubClassAddHandlerInMemory implements DependentRelationshipAddHandler { public void addRelatedObject(MithraTransactionalObject relatedObject) { MemberReferencePath item = (MemberReferencePath) relatedObject; item.setId(getId()); item.zSetParentContainerexpressionValueSuperClass(ExpressionValueAbstract.this); } } protected class MemberReferencePathSubClassAddHandlerPersisted implements DependentRelationshipAddHandler { public void addRelatedObject(MithraTransactionalObject relatedObject) { MemberReferencePath item = (MemberReferencePath) relatedObject; item.setId(getId()); item.cascadeInsert(); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy