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

klass.model.meta.domain.ParameterFinder 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.attribute.*;
import com.gs.fw.common.mithra.attribute.calculator.procedure.ObjectProcedure;
import com.gs.fw.common.mithra.behavior.txparticipation.*;
import com.gs.fw.common.mithra.cache.Cache;
import com.gs.fw.common.mithra.cache.bean.*;
import com.gs.fw.common.mithra.extractor.*;
import com.gs.fw.common.mithra.finder.*;
import com.gs.fw.common.mithra.finder.booleanop.*;
import com.gs.fw.common.mithra.finder.integer.*;
import com.gs.fw.common.mithra.finder.longop.*;
import com.gs.fw.common.mithra.finder.orderby.OrderBy;
import com.gs.fw.common.mithra.finder.string.*;
import com.gs.fw.common.mithra.extractor.NormalAndListValueSelector;
import com.gs.fw.common.mithra.list.NulledRelation;
import com.gs.fw.common.mithra.querycache.CachedQuery;
import com.gs.fw.common.mithra.querycache.QueryCache;
import com.gs.fw.common.mithra.portal.*;
import com.gs.fw.common.mithra.remote.*;
import com.gs.fw.common.mithra.transaction.MithraObjectPersister;
import com.gs.fw.common.mithra.util.TimestampPool;
import org.eclipse.collections.impl.map.mutable.UnifiedMap;
import java.io.Serializable;
/**
* This file was automatically generated using Mithra 18.0.0. Please do not modify it.
* Add custom logic to its subclass instead.
*/
public class ParameterFinder
{
	private static final String IMPL_CLASS_NAME_WITH_SLASHES = "klass/model/meta/domain/Parameter";
	private static final String BUSINESS_CLASS_NAME_WITH_DOTS = "klass.model.meta.domain.Parameter";
	private static final FinderMethodMap finderMethodMap;
	private static boolean isFullCache;
	private static boolean isOffHeap;
	private static volatile MithraObjectPortal objectPortal = new UninitializedPortal("klass.model.meta.domain.Parameter");
	private static final ParameterSingleFinder finder = new ParameterSingleFinder();
	private static ConstantStringSet[] constantStringSets = new ConstantStringSet[0];
	private static ConstantIntSet[] constantIntSets = new ConstantIntSet[0];
	private static ConstantShortSet[] constantShortSets = new ConstantShortSet[0];
	static
	{
		finderMethodMap = new FinderMethodMap(ParameterFinder.ParameterRelatedFinder.class);
		finderMethodMap.addNormalAttributeName("id");
		finderMethodMap.addNormalAttributeName("ordinal");
		finderMethodMap.addNormalAttributeName("name");
		finderMethodMap.addNormalAttributeName("multiplicity");
		finderMethodMap.addRelationshipName("enumerationParameterSubClass");
		finderMethodMap.addRelationshipName("primitiveParameterSubClass");
		finderMethodMap.addRelationshipName("urlParameter");
		finderMethodMap.addRelationshipName("variableReferences");
	}

	public static Attribute[] allPersistentAttributes()
	{
		return finder.getPersistentAttributes();
	}

	public static List allRelatedFinders()
	{
		return finder.getRelationshipFinders();
	}

	public static List allDependentRelatedFinders()
	{
		return finder.getDependentRelationshipFinders();
	}

	public static ConstantStringSet zGetConstantStringSet(int index)
	{
		return constantStringSets[index];
	}

	public static ConstantIntSet zGetConstantIntSet(int index)
	{
		return constantIntSets[index];
	}

	public static ConstantShortSet zGetConstantShortSet(int index)
	{
		return constantShortSets[index];
	}

	public static Mapper zGetConstantJoin(int index)
	{
		return getConstantJoinPool()[index];
	}

	private static Mapper[] constantJoinPool;
	private static Mapper[] getConstantJoinPool()
	{
		if (constantJoinPool == null)
		{
			Mapper[] result = new Mapper[4];
			result[0] = ParameterFinder.id().constructEqualityMapper(EnumerationParameterFinder.id());
			result[1] = EnumerationParameterFinder.id().constructEqualityMapper(ParameterFinder.id());
			result[2] = ParameterFinder.id().constructEqualityMapper(PrimitiveParameterFinder.id());
			result[3] = PrimitiveParameterFinder.id().constructEqualityMapper(ParameterFinder.id());
			constantJoinPool = result;
		}

		return constantJoinPool;
	}

	public static SourceAttributeType getSourceAttributeType()
	{
		return null;
	}

	public static Parameter findOne(com.gs.fw.finder.Operation operation)
	{
		return findOne(operation, false);
	}

	public static Parameter findOneBypassCache(com.gs.fw.finder.Operation operation)
	{
		return findOne(operation, true);
	}

	public static ParameterList findMany(com.gs.fw.finder.Operation operation)
	{
		return (ParameterList) finder.findMany(operation);
	}

	public static ParameterList findManyBypassCache(com.gs.fw.finder.Operation operation)
	{
		return (ParameterList) finder.findManyBypassCache(operation);
	}

	private static Parameter findOne(com.gs.fw.finder.Operation operation, boolean bypassCache)
	{
		List found = getMithraObjectPortal().find((Operation) operation, bypassCache);
		return (Parameter) FinderUtils.findOne(found);
	}

	public static Parameter findByPrimaryKey(long id)
	{
		return finder.findByPrimaryKey(id);
	}

	private static final RelationshipHashStrategy forPrimaryKey = new PrimaryKeyRhs();
	private static final class PrimaryKeyRhs implements RelationshipHashStrategy
	{
		public boolean equalsForRelationship(Object _srcObject, Object _srcData, Object _targetData, Timestamp _asOfDate0, Timestamp _asOfDate1)
		{
			I3O3L3 _bean = (I3O3L3) _srcData;
			ParameterData _castedTargetData = (ParameterData) _targetData;
			if (_bean.getL1AsLong() == _castedTargetData.getId())
			{
				return true;
			}

			return false;
		}

		public int computeHashCodeFromRelated(Object _srcObject, Object _srcData)
		{
			I3O3L3 _bean = (I3O3L3) _srcData;
			return HashUtil.hash(_bean.getL1AsLong());
		}

		public int computeOffHeapHashCodeFromRelated(Object _srcObject, Object _srcData)
		{
			I3O3L3 _bean = (I3O3L3) _srcData;
			return HashUtil.hash(_bean.getL1AsLong());
		}
	}

	public static Parameter zFindOneForRelationship(Operation operation)
	{
		List found = getMithraObjectPortal().findAsCachedQuery(operation, null, false, true, 0).getResult();
		return (Parameter) FinderUtils.findOne(found);
	}

	public static MithraObjectPortal getMithraObjectPortal()
	{
		return objectPortal.getInitializedPortal();
	}

	public static void clearQueryCache()
	{
		objectPortal.clearQueryCache();
	}

	public static void reloadCache()
	{
		objectPortal.reloadCache();
	}

	public static class ParameterRelatedFinder extends AbstractRelatedFinder
	implements NamedElementFinder
	{
		private List relationshipFinders;
		private List dependentRelationshipFinders;
		private LongAttribute id;
		private IntegerAttribute ordinal;
		private StringAttribute name;
		private StringAttribute multiplicity;
		private ParameterEnumerationParameterSubClassFinderSubclass enumerationParameterSubClass;
		private ParameterPrimitiveParameterSubClassFinderSubclass primitiveParameterSubClass;
		private ParameterUrlParameterFinderSubclass urlParameter;
		private ParameterVariableReferencesFinderSubclass variableReferences;
		public ParameterRelatedFinder()
		{
			super();
		}

		public ParameterRelatedFinder(Mapper mapper)
		{
			super(mapper);
		}

		public String getFinderClassName()
		{
			return "klass.model.meta.domain.ParameterFinder";
		}

		public RelatedFinder getRelationshipFinderByName(String relationshipName)
		{
			return ParameterFinder.finderMethodMap.getRelationshipFinderByName(relationshipName, this);
		}

		public Attribute getAttributeByName(String attributeName)
		{
			return ParameterFinder.finderMethodMap.getAttributeByName(attributeName, this);
		}

		public com.gs.fw.common.mithra.extractor.Function getAttributeOrRelationshipSelector(String attributeName)
		{
			return ParameterFinder.finderMethodMap.getAttributeOrRelationshipSelectorFunction(attributeName, this);
		}

		public Attribute[] getPersistentAttributes()
		{
			Attribute[] attributes = new Attribute[4];
			attributes[0] = this.id();
			attributes[1] = this.ordinal();
			attributes[2] = this.name();
			attributes[3] = this.multiplicity();
			return attributes;
		}

		public List getRelationshipFinders()
		{
			if (relationshipFinders == null)
			{
				List relatedFinders = new ArrayList(4);
				relatedFinders.add(this.enumerationParameterSubClass());
				relatedFinders.add(this.primitiveParameterSubClass());
				relatedFinders.add(this.urlParameter());
				relatedFinders.add(this.variableReferences());
				relationshipFinders = Collections.unmodifiableList(relatedFinders);
			}

			return relationshipFinders;
		}

		public List getDependentRelationshipFinders()
		{
			if (dependentRelationshipFinders == null)
			{
				List dependentRelatedFinders = new ArrayList(2);
				dependentRelatedFinders.add(this.enumerationParameterSubClass());
				dependentRelatedFinders.add(this.primitiveParameterSubClass());
				dependentRelationshipFinders = Collections.unmodifiableList(dependentRelatedFinders);
			}

			return dependentRelationshipFinders;
		}

		public Parameter findOne(com.gs.fw.finder.Operation operation)
		{
			return ParameterFinder.findOne(operation, false);
		}

		public Parameter findOneBypassCache(com.gs.fw.finder.Operation operation)
		{
			return ParameterFinder.findOne(operation, true);
		}

		public MithraList findMany(com.gs.fw.finder.Operation operation)
		{
			return new ParameterList((Operation) operation);
		}

		public MithraList findManyBypassCache(com.gs.fw.finder.Operation operation)
		{
			ParameterList result = (ParameterList) this.findMany(operation);
			result.setBypassCache(true);
			return result;
		}

		public MithraList constructEmptyList()
		{
			return new ParameterList();
		}

		public int getSerialVersionId()
		{
			return -1743131871;
		}

		public boolean isPure()
		{
			return false;
		}

		public boolean isTemporary()
		{
			return false;
		}

		public int getHierarchyDepth()
		{
			return 0;
		}

		public LongAttribute id()
		{
			LongAttribute result = this.id;
			if (result == null)
			{
				result = mapper == null ? SingleColumnLongAttribute.generate("\"ID\"","","id",BUSINESS_CLASS_NAME_WITH_DOTS,IMPL_CLASS_NAME_WITH_SLASHES,false,false,this,null,true,false,false,-1,-1,-1,true, false) :
					new MappedLongAttribute(ParameterFinder.id(), this.mapper, this.zGetValueSelector());
				this.id = result;
			}

			return result;
		}

		public IntegerAttribute ordinal()
		{
			IntegerAttribute result = this.ordinal;
			if (result == null)
			{
				result = mapper == null ? SingleColumnIntegerAttribute.generate("\"ORDINAL\"","","ordinal",BUSINESS_CLASS_NAME_WITH_DOTS,IMPL_CLASS_NAME_WITH_SLASHES,false,false,this,null,true,false,false,-1,-1,-1,false, false) :
					new MappedIntegerAttribute(ParameterFinder.ordinal(), this.mapper, this.zGetValueSelector());
				this.ordinal = result;
			}

			return result;
		}

		public StringAttribute name()
		{
			StringAttribute result = this.name;
			if (result == null)
			{
				result = mapper == null ? SingleColumnStringAttribute.generate("\"NAME\"","","name",BUSINESS_CLASS_NAME_WITH_DOTS,IMPL_CLASS_NAME_WITH_SLASHES,false,false,this,null,true,false,-1,-1,-1,256,false, false) :
					new MappedStringAttribute(ParameterFinder.name(), this.mapper, this.zGetValueSelector());
				this.name = result;
			}

			return result;
		}

		public StringAttribute multiplicity()
		{
			StringAttribute result = this.multiplicity;
			if (result == null)
			{
				result = mapper == null ? SingleColumnStringAttribute.generate("\"MULTIPLICITY\"","","multiplicity",BUSINESS_CLASS_NAME_WITH_DOTS,IMPL_CLASS_NAME_WITH_SLASHES,false,false,this,null,true,false,-1,-1,-1,256,false, false) :
					new MappedStringAttribute(ParameterFinder.multiplicity(), this.mapper, this.zGetValueSelector());
				this.multiplicity = result;
			}

			return result;
		}

		public EnumerationParameterFinder.EnumerationParameterSingleFinderForRelatedClasses enumerationParameterSubClass()
		{
			ParameterEnumerationParameterSubClassFinderSubclass result = this.enumerationParameterSubClass;
			if (result == null)
			{
				Mapper newMapper = combineWithMapperIfExists(ParameterFinder.zGetParameterEnumerationParameterSubClassReverseMapper());
				newMapper.setToMany(false);
				result = new ParameterEnumerationParameterSubClassFinderSubclass(newMapper , this.zGetValueSelector() );
				this.enumerationParameterSubClass = result;
			}

			return result;
		}

		public PrimitiveParameterFinder.PrimitiveParameterSingleFinderForRelatedClasses primitiveParameterSubClass()
		{
			ParameterPrimitiveParameterSubClassFinderSubclass result = this.primitiveParameterSubClass;
			if (result == null)
			{
				Mapper newMapper = combineWithMapperIfExists(ParameterFinder.zGetParameterPrimitiveParameterSubClassReverseMapper());
				newMapper.setToMany(false);
				result = new ParameterPrimitiveParameterSubClassFinderSubclass(newMapper , this.zGetValueSelector() );
				this.primitiveParameterSubClass = result;
			}

			return result;
		}

		public UrlParameterFinder.UrlParameterSingleFinderForRelatedClasses urlParameter()
		{
			ParameterUrlParameterFinderSubclass result = this.urlParameter;
			if (result == null)
			{
				Mapper newMapper = combineWithMapperIfExists(UrlParameterFinder.zGetUrlParameterParameterMapper());
				newMapper.setToMany(false);
				result = new ParameterUrlParameterFinderSubclass(newMapper , this.zGetValueSelector() );
				this.urlParameter = result;
			}

			return result;
		}

		public VariableReferenceFinder.VariableReferenceCollectionFinderForRelatedClasses variableReferences()
		{
			ParameterVariableReferencesFinderSubclass result = this.variableReferences;
			if (result == null)
			{
				Mapper newMapper = combineWithMapperIfExists(VariableReferenceFinder.zGetVariableReferenceParameterMapper());
				newMapper.setToMany(true);
				result = new ParameterVariableReferencesFinderSubclass(newMapper , this.zGetValueSelector() );
				this.variableReferences = result;
			}

			return result;
		}

		public Attribute getSourceAttribute()
		{
			return null;
		}

		private Mapper combineWithMapperIfExists(Mapper newMapper)
		{
			if (this.mapper != null)
			{
				return new LinkedMapper(this.mapper, newMapper);
			}

			return newMapper;
		}

		public Attribute[] getPrimaryKeyAttributes()
		{
			return ParameterFinder.getPrimaryKeyAttributes();
		}

		public VersionAttribute getVersionAttribute()
		{
			return null;
		}

		public MithraObjectPortal getMithraObjectPortal()
		{
			return ParameterFinder.getMithraObjectPortal();
		}
	}

	public static class ParameterCollectionFinder extends ParameterRelatedFinder
	{
		public ParameterCollectionFinder(Mapper mapper)
		{
			super(mapper);
		}
	}

	public static abstract class ParameterCollectionFinderForRelatedClasses
	extends ParameterCollectionFinder
	implements DeepRelationshipAttribute
	{
		public ParameterCollectionFinderForRelatedClasses(Mapper mapper)
		{
			super(mapper);
		}

		protected NormalAndListValueSelector zGetValueSelector()
		{
			return this;
		}
	}

	public static class ParameterSingleFinder extends ParameterRelatedFinder
	implements ToOneFinder
	{
		public ParameterSingleFinder(Mapper mapper)
		{
			super(mapper);
		}

		public ParameterSingleFinder()
		{
			super(null);
		}

		public Operation eq(Parameter other)
		{
			return this.id().eq(other.getId())
			;
		}
		// this implementation uses private API. Do NOT copy to application code. Application code must use normal operations for lookups.
		public Parameter findByPrimaryKey(long id)
		{
			Parameter _result = null;
			Operation _op = null;
			Object _related = null;
			{
				I3O3L3 _bean = I3O3L3.POOL.getOrConstruct();
				_bean.setL1AsLong(id);
				MithraObjectPortal _portal = this.getMithraObjectPortal();
				_related = _portal.getAsOneFromCacheForFind(_bean, _bean, forPrimaryKey, null, null);
				_bean.release();
			}

			if (!(_related instanceof NulledRelation)) _result = (Parameter) _related;
			if (_related == null)
			{
				_op = this.id().eq(id);
			}

			if (_op != null)
			{
				_result = this.findOne(_op);
			}

			return _result;
		}
	}

	public static abstract class ParameterSingleFinderForRelatedClasses extends ParameterSingleFinder implements DeepRelationshipAttribute
	{
		public ParameterSingleFinderForRelatedClasses(Mapper mapper)
		{
			super(mapper);
		}

		protected NormalAndListValueSelector zGetValueSelector()
		{
			return this;
		}
	}

	private static Mapper enumerationParameterSubClassReverseMapper = null;
	public static Mapper zGetParameterEnumerationParameterSubClassReverseMapper()
	{
		if (enumerationParameterSubClassReverseMapper == null)
		{
			enumerationParameterSubClassReverseMapper = zConstructParameterEnumerationParameterSubClassReverseMapper();
		}

		return enumerationParameterSubClassReverseMapper;
	}

	private static Mapper enumerationParameterSubClassMapper = null;
	public static Mapper zGetParameterEnumerationParameterSubClassMapper()
	{
		if (enumerationParameterSubClassMapper == null)
		{
			enumerationParameterSubClassMapper = zConstructParameterEnumerationParameterSubClassMapper();
		}

		return enumerationParameterSubClassMapper;
	}

	private static Mapper enumerationParameterSubClassPureReverseMapper = null;
	public static Mapper zGetParameterEnumerationParameterSubClassPureReverseMapper()
	{
		if (enumerationParameterSubClassPureReverseMapper == null)
		{
			enumerationParameterSubClassPureReverseMapper = zConstructParameterEnumerationParameterSubClassPureReverseMapper();
		}

		return enumerationParameterSubClassPureReverseMapper;
	}

	private static Mapper zConstructParameterEnumerationParameterSubClassPureReverseMapper()
	{
		Mapper enumerationParameterSubClassMapper = ParameterFinder.zGetConstantJoin(0);
		enumerationParameterSubClassMapper.setName("enumerationParameterSubClass");
		return enumerationParameterSubClassMapper;
	}

	private static Mapper zConstructParameterEnumerationParameterSubClassReverseMapper()
	{
		Mapper enumerationParameterSubClassMapper = ParameterFinder.zGetConstantJoin(0);
		enumerationParameterSubClassMapper.setName("enumerationParameterSubClass");
		return enumerationParameterSubClassMapper;
	}

	private static Mapper zConstructParameterEnumerationParameterSubClassMapper()
	{
		Mapper enumerationParameterSubClassMapper = ParameterFinder.zGetConstantJoin(1);
		enumerationParameterSubClassMapper.setName("parameterSuperClass");
		return enumerationParameterSubClassMapper;
	}

	private static Mapper primitiveParameterSubClassReverseMapper = null;
	public static Mapper zGetParameterPrimitiveParameterSubClassReverseMapper()
	{
		if (primitiveParameterSubClassReverseMapper == null)
		{
			primitiveParameterSubClassReverseMapper = zConstructParameterPrimitiveParameterSubClassReverseMapper();
		}

		return primitiveParameterSubClassReverseMapper;
	}

	private static Mapper primitiveParameterSubClassMapper = null;
	public static Mapper zGetParameterPrimitiveParameterSubClassMapper()
	{
		if (primitiveParameterSubClassMapper == null)
		{
			primitiveParameterSubClassMapper = zConstructParameterPrimitiveParameterSubClassMapper();
		}

		return primitiveParameterSubClassMapper;
	}

	private static Mapper primitiveParameterSubClassPureReverseMapper = null;
	public static Mapper zGetParameterPrimitiveParameterSubClassPureReverseMapper()
	{
		if (primitiveParameterSubClassPureReverseMapper == null)
		{
			primitiveParameterSubClassPureReverseMapper = zConstructParameterPrimitiveParameterSubClassPureReverseMapper();
		}

		return primitiveParameterSubClassPureReverseMapper;
	}

	private static Mapper zConstructParameterPrimitiveParameterSubClassPureReverseMapper()
	{
		Mapper primitiveParameterSubClassMapper = ParameterFinder.zGetConstantJoin(2);
		primitiveParameterSubClassMapper.setName("primitiveParameterSubClass");
		return primitiveParameterSubClassMapper;
	}

	private static Mapper zConstructParameterPrimitiveParameterSubClassReverseMapper()
	{
		Mapper primitiveParameterSubClassMapper = ParameterFinder.zGetConstantJoin(2);
		primitiveParameterSubClassMapper.setName("primitiveParameterSubClass");
		return primitiveParameterSubClassMapper;
	}

	private static Mapper zConstructParameterPrimitiveParameterSubClassMapper()
	{
		Mapper primitiveParameterSubClassMapper = ParameterFinder.zGetConstantJoin(3);
		primitiveParameterSubClassMapper.setName("parameterSuperClass");
		return primitiveParameterSubClassMapper;
	}

	/** maps to \"PARAMETER\".\"ID\" **/
	public static LongAttribute id()
	{
		return finder.id();
	}

	/** maps to \"PARAMETER\".\"ORDINAL\" **/
	public static IntegerAttribute ordinal()
	{
		return finder.ordinal();
	}

	/** maps to \"PARAMETER\".\"NAME\" **/
	public static StringAttribute name()
	{
		return finder.name();
	}

	/** maps to \"PARAMETER\".\"MULTIPLICITY\" **/
	public static StringAttribute multiplicity()
	{
		return finder.multiplicity();
	}

	public static EnumerationParameterFinder.EnumerationParameterSingleFinderForRelatedClasses enumerationParameterSubClass()
	{
		return finder.enumerationParameterSubClass();
	}

	public static class ParameterEnumerationParameterSubClassFinderSubclass extends EnumerationParameterFinder.EnumerationParameterSingleFinderForRelatedClasses
	{
		public ParameterEnumerationParameterSubClassFinderSubclass(Mapper mapper, NormalAndListValueSelector parentSelector )
		{
			super(mapper);
			this._parentSelector = (AbstractRelatedFinder) parentSelector;
			this._orderBy = null;
			this._type = SIMPLE_TO_ONE;
			this._name = "enumerationParameterSubClass";
		}

		public DeepRelationshipAttribute copy()
		{
			return new ParameterEnumerationParameterSubClassFinderSubclass(zGetMapper(), (NormalAndListValueSelector) this._parentSelector
			);
		}

		public boolean isModifiedSinceDetachment(MithraTransactionalObject _obj)
		{
			return ((Parameter) _obj).isEnumerationParameterSubClassModifiedSinceDetachment();
		}

		protected EnumerationParameter plainValueOf(Parameter _obj)
		{
			return _obj.getEnumerationParameterSubClass();
		}

		protected EnumerationParameterList plainListValueOf(Object _obj)
		{
			return ((ParameterList)_obj).getEnumerationParameterSubClass();
		}
	}

	public static PrimitiveParameterFinder.PrimitiveParameterSingleFinderForRelatedClasses primitiveParameterSubClass()
	{
		return finder.primitiveParameterSubClass();
	}

	public static class ParameterPrimitiveParameterSubClassFinderSubclass extends PrimitiveParameterFinder.PrimitiveParameterSingleFinderForRelatedClasses
	{
		public ParameterPrimitiveParameterSubClassFinderSubclass(Mapper mapper, NormalAndListValueSelector parentSelector )
		{
			super(mapper);
			this._parentSelector = (AbstractRelatedFinder) parentSelector;
			this._orderBy = null;
			this._type = SIMPLE_TO_ONE;
			this._name = "primitiveParameterSubClass";
		}

		public DeepRelationshipAttribute copy()
		{
			return new ParameterPrimitiveParameterSubClassFinderSubclass(zGetMapper(), (NormalAndListValueSelector) this._parentSelector
			);
		}

		public boolean isModifiedSinceDetachment(MithraTransactionalObject _obj)
		{
			return ((Parameter) _obj).isPrimitiveParameterSubClassModifiedSinceDetachment();
		}

		protected PrimitiveParameter plainValueOf(Parameter _obj)
		{
			return _obj.getPrimitiveParameterSubClass();
		}

		protected PrimitiveParameterList plainListValueOf(Object _obj)
		{
			return ((ParameterList)_obj).getPrimitiveParameterSubClass();
		}
	}

	public static UrlParameterFinder.UrlParameterSingleFinderForRelatedClasses urlParameter()
	{
		return finder.urlParameter();
	}

	public static class ParameterUrlParameterFinderSubclass extends UrlParameterFinder.UrlParameterSingleFinderForRelatedClasses
	{
		public ParameterUrlParameterFinderSubclass(Mapper mapper, NormalAndListValueSelector parentSelector )
		{
			super(mapper);
			this._parentSelector = (AbstractRelatedFinder) parentSelector;
			this._orderBy = null;
			this._type = SIMPLE_TO_ONE;
			this._name = "urlParameter";
		}

		public DeepRelationshipAttribute copy()
		{
			return new ParameterUrlParameterFinderSubclass(zGetMapper(), (NormalAndListValueSelector) this._parentSelector
			);
		}

		protected UrlParameter plainValueOf(Parameter _obj)
		{
			return _obj.getUrlParameter();
		}

		protected UrlParameterList plainListValueOf(Object _obj)
		{
			return ((ParameterList)_obj).getUrlParameters();
		}
	}

	public static VariableReferenceFinder.VariableReferenceCollectionFinderForRelatedClasses variableReferences()
	{
		return finder.variableReferences();
	}

	public static class ParameterVariableReferencesFinderSubclass extends VariableReferenceFinder.VariableReferenceCollectionFinderForRelatedClasses
	{
		public ParameterVariableReferencesFinderSubclass(Mapper mapper, NormalAndListValueSelector parentSelector )
		{
			super(mapper);
			this._parentSelector = (AbstractRelatedFinder) parentSelector;
			this._orderBy = null;
			this._type = SIMPLE_TO_MANY;
			this._name = "variableReferences";
		}

		public DeepRelationshipAttribute copy()
		{
			return new ParameterVariableReferencesFinderSubclass(zGetMapper(), (NormalAndListValueSelector) this._parentSelector
			);
		}

		protected VariableReferenceList plainValueOf(Parameter _obj)
		{
			return _obj.getVariableReferences();
		}

		protected VariableReferenceList plainListValueOf(Object _obj)
		{
			return ((ParameterList)_obj).getVariableReferences();
		}
	}

	public static Operation eq(Parameter other)
	{
		return finder.eq(other);
	}

	public static Operation all()
	{
		return new All(id());
	}

	public static ParameterSingleFinder getFinderInstance()
	{
		return finder;
	}

	public static Attribute[] getPrimaryKeyAttributes()
	{
		return new Attribute[] 
		{
			id()
		}

		;
	}

	public static Attribute[] getImmutableAttributes()
	{
		return new Attribute[] 
		{
			id()
			, id()
		}

		;
	}

	public static AsOfAttribute[] getAsOfAttributes()
	{
		return null;
	}

	protected static void initializeIndicies(Cache cache)
	{
	}

	protected static void initializePortal(MithraObjectDeserializer objectFactory, Cache cache,
		MithraConfigurationManager.Config config)
	{
		initializeIndicies(cache);
		isFullCache = cache.isFullCache();
		isOffHeap = cache.isOffHeap();
		MithraObjectPortal portal;
		if (config.isParticipatingInTx())
		{
			portal = new MithraTransactionalPortal(objectFactory, cache, getFinderInstance(),
				config.getRelationshipCacheSize(), config.getMinQueriesToKeep(), null,
				null, null, 0,
				(MithraObjectPersister) objectFactory);
		}
		else
		{
			portal = new MithraReadOnlyPortal(objectFactory, cache, getFinderInstance(),
				config.getRelationshipCacheSize(), config.getMinQueriesToKeep(), null,
				null, null, 0,
				(MithraObjectPersister) objectFactory);
		}

		portal.setParentFinders(new RelatedFinder[] 
		{
			UrlParameterFinder.getFinderInstance(),
		}

		);
		config.initializePortal(portal);
		objectPortal.destroy();
		objectPortal = portal;
	}

	protected static void initializeClientPortal(MithraObjectDeserializer objectFactory, Cache cache,
		MithraConfigurationManager.Config config)
	{
		initializeIndicies(cache);
		isFullCache = cache.isFullCache();
		isOffHeap = cache.isOffHeap();
		MithraObjectPortal portal;
		if (config.isParticipatingInTx())
		{
			portal = new MithraTransactionalPortal(objectFactory, cache, getFinderInstance(),
				config.getRelationshipCacheSize(), config.getMinQueriesToKeep(),
				null, null,
				null, 0,
				new RemoteMithraObjectPersister(config.getRemoteMithraService(), getFinderInstance(), false));
		}
		else
		{
			portal = new MithraReadOnlyPortal(objectFactory, cache, getFinderInstance(),
				config.getRelationshipCacheSize(), config.getMinQueriesToKeep(),
				null, null,
				null, 0,
				new RemoteMithraObjectPersister(config.getRemoteMithraService(), getFinderInstance(), false));
		}

		portal.setParentFinders(new RelatedFinder[] 
		{
			UrlParameterFinder.getFinderInstance(),
		}

		);
		config.initializePortal(portal);
		objectPortal.destroy();
		objectPortal = portal;
	}

	public static boolean isFullCache()
	{
		return isFullCache;
	}

	public static boolean isOffHeap()
	{
		return isOffHeap;
	}

	public static Attribute getAttributeByName(String attributeName)
	{
		return finder.getAttributeByName(attributeName);
	}

	public static com.gs.fw.common.mithra.extractor.Function getAttributeOrRelationshipSelector(String attributeName)
	{
		return finder.getAttributeOrRelationshipSelector(attributeName);
	}

	public static RelatedFinder getRelatedFinderByName(String relationshipName)
	{
		return finder.getRelationshipFinderByName(relationshipName);
	}

	public static DoubleAttribute[] zGetDoubleAttributes()
	{
		DoubleAttribute[] result = new DoubleAttribute[0];
		return result;
	}

	public static BigDecimalAttribute[] zGetBigDecimalAttributes()
	{
		BigDecimalAttribute[] result = new BigDecimalAttribute[0];
		return result;
	}

	public static void zResetPortal()
	{
		objectPortal.destroy();
		objectPortal = new UninitializedPortal("klass.model.meta.domain.Parameter");
		isFullCache = false;
		isOffHeap = false;
	}

	public static void setTransactionModeFullTransactionParticipation(MithraTransaction tx)
	{
		tx.setTxParticipationMode(objectPortal, FullTransactionalParticipationMode.getInstance());
	}

	public static void setTransactionModeReadCacheUpdateCausesRefreshAndLock(MithraTransaction tx)
	{
		tx.setTxParticipationMode(objectPortal, ReadCacheUpdateCausesRefreshAndLockTxParticipationMode.getInstance());
	}

	public static void registerForNotification(MithraApplicationClassLevelNotificationListener listener)
	{
		getMithraObjectPortal().registerForApplicationClassLevelNotification(listener);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy