klass.model.meta.domain.ExpressionValueFinder 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 ExpressionValueFinder
{
private static final String IMPL_CLASS_NAME_WITH_SLASHES = "klass/model/meta/domain/ExpressionValue";
private static final String BUSINESS_CLASS_NAME_WITH_DOTS = "klass.model.meta.domain.ExpressionValue";
private static final FinderMethodMap finderMethodMap;
private static boolean isFullCache;
private static boolean isOffHeap;
private static volatile MithraObjectPortal objectPortal = new UninitializedPortal("klass.model.meta.domain.ExpressionValue");
private static final ExpressionValueSingleFinder finder = new ExpressionValueSingleFinder();
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(ExpressionValueFinder.ExpressionValueRelatedFinder.class);
finderMethodMap.addNormalAttributeName("id");
finderMethodMap.addRelationshipName("userLiteralSubClass");
finderMethodMap.addRelationshipName("nullLiteralSubClass");
finderMethodMap.addRelationshipName("variableReferenceSubClass");
finderMethodMap.addRelationshipName("memberReferencePathSubClass");
finderMethodMap.addRelationshipName("operatorCriteriaSourceOf");
finderMethodMap.addRelationshipName("operatorCriteriaTargetOf");
}
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[8];
result[0] = ExpressionValueFinder.id().constructEqualityMapper(UserLiteralFinder.id());
result[1] = UserLiteralFinder.id().constructEqualityMapper(ExpressionValueFinder.id());
result[2] = ExpressionValueFinder.id().constructEqualityMapper(NullLiteralFinder.id());
result[3] = NullLiteralFinder.id().constructEqualityMapper(ExpressionValueFinder.id());
result[4] = ExpressionValueFinder.id().constructEqualityMapper(VariableReferenceFinder.id());
result[5] = VariableReferenceFinder.id().constructEqualityMapper(ExpressionValueFinder.id());
result[6] = ExpressionValueFinder.id().constructEqualityMapper(MemberReferencePathFinder.id());
result[7] = MemberReferencePathFinder.id().constructEqualityMapper(ExpressionValueFinder.id());
constantJoinPool = result;
}
return constantJoinPool;
}
public static SourceAttributeType getSourceAttributeType()
{
return null;
}
public static ExpressionValue findOne(com.gs.fw.finder.Operation operation)
{
return findOne(operation, false);
}
public static ExpressionValue findOneBypassCache(com.gs.fw.finder.Operation operation)
{
return findOne(operation, true);
}
public static ExpressionValueList findMany(com.gs.fw.finder.Operation operation)
{
return (ExpressionValueList) finder.findMany(operation);
}
public static ExpressionValueList findManyBypassCache(com.gs.fw.finder.Operation operation)
{
return (ExpressionValueList) finder.findManyBypassCache(operation);
}
private static ExpressionValue findOne(com.gs.fw.finder.Operation operation, boolean bypassCache)
{
List found = getMithraObjectPortal().find((Operation) operation, bypassCache);
return (ExpressionValue) FinderUtils.findOne(found);
}
public static ExpressionValue 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;
ExpressionValueData _castedTargetData = (ExpressionValueData) _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 ExpressionValue zFindOneForRelationship(Operation operation)
{
List found = getMithraObjectPortal().findAsCachedQuery(operation, null, false, true, 0).getResult();
return (ExpressionValue) 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 ExpressionValueRelatedFinder extends AbstractRelatedFinder
{
private List relationshipFinders;
private List dependentRelationshipFinders;
private LongAttribute id;
private ExpressionValueUserLiteralSubClassFinderSubclass userLiteralSubClass;
private ExpressionValueNullLiteralSubClassFinderSubclass nullLiteralSubClass;
private ExpressionValueVariableReferenceSubClassFinderSubclass variableReferenceSubClass;
private ExpressionValueMemberReferencePathSubClassFinderSubclass memberReferencePathSubClass;
private ExpressionValueOperatorCriteriaSourceOfFinderSubclass operatorCriteriaSourceOf;
private ExpressionValueOperatorCriteriaTargetOfFinderSubclass operatorCriteriaTargetOf;
public ExpressionValueRelatedFinder()
{
super();
}
public ExpressionValueRelatedFinder(Mapper mapper)
{
super(mapper);
}
public String getFinderClassName()
{
return "klass.model.meta.domain.ExpressionValueFinder";
}
public RelatedFinder getRelationshipFinderByName(String relationshipName)
{
return ExpressionValueFinder.finderMethodMap.getRelationshipFinderByName(relationshipName, this);
}
public Attribute getAttributeByName(String attributeName)
{
return ExpressionValueFinder.finderMethodMap.getAttributeByName(attributeName, this);
}
public com.gs.fw.common.mithra.extractor.Function getAttributeOrRelationshipSelector(String attributeName)
{
return ExpressionValueFinder.finderMethodMap.getAttributeOrRelationshipSelectorFunction(attributeName, this);
}
public Attribute[] getPersistentAttributes()
{
Attribute[] attributes = new Attribute[1];
attributes[0] = this.id();
return attributes;
}
public List getRelationshipFinders()
{
if (relationshipFinders == null)
{
List relatedFinders = new ArrayList(6);
relatedFinders.add(this.userLiteralSubClass());
relatedFinders.add(this.nullLiteralSubClass());
relatedFinders.add(this.variableReferenceSubClass());
relatedFinders.add(this.memberReferencePathSubClass());
relatedFinders.add(this.operatorCriteriaSourceOf());
relatedFinders.add(this.operatorCriteriaTargetOf());
relationshipFinders = Collections.unmodifiableList(relatedFinders);
}
return relationshipFinders;
}
public List getDependentRelationshipFinders()
{
if (dependentRelationshipFinders == null)
{
List dependentRelatedFinders = new ArrayList(4);
dependentRelatedFinders.add(this.userLiteralSubClass());
dependentRelatedFinders.add(this.nullLiteralSubClass());
dependentRelatedFinders.add(this.variableReferenceSubClass());
dependentRelatedFinders.add(this.memberReferencePathSubClass());
dependentRelationshipFinders = Collections.unmodifiableList(dependentRelatedFinders);
}
return dependentRelationshipFinders;
}
public ExpressionValue findOne(com.gs.fw.finder.Operation operation)
{
return ExpressionValueFinder.findOne(operation, false);
}
public ExpressionValue findOneBypassCache(com.gs.fw.finder.Operation operation)
{
return ExpressionValueFinder.findOne(operation, true);
}
public MithraList extends ExpressionValue> findMany(com.gs.fw.finder.Operation operation)
{
return new ExpressionValueList((Operation) operation);
}
public MithraList extends ExpressionValue> findManyBypassCache(com.gs.fw.finder.Operation operation)
{
ExpressionValueList result = (ExpressionValueList) this.findMany(operation);
result.setBypassCache(true);
return result;
}
public MithraList extends ExpressionValue> constructEmptyList()
{
return new ExpressionValueList();
}
public int getSerialVersionId()
{
return -1472220267;
}
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(ExpressionValueFinder.id(), this.mapper, this.zGetValueSelector());
this.id = result;
}
return result;
}
public UserLiteralFinder.UserLiteralSingleFinderForRelatedClasses userLiteralSubClass()
{
ExpressionValueUserLiteralSubClassFinderSubclass result = this.userLiteralSubClass;
if (result == null)
{
Mapper newMapper = combineWithMapperIfExists(ExpressionValueFinder.zGetExpressionValueUserLiteralSubClassReverseMapper());
newMapper.setToMany(false);
result = new ExpressionValueUserLiteralSubClassFinderSubclass(newMapper , this.zGetValueSelector() );
this.userLiteralSubClass = result;
}
return result;
}
public NullLiteralFinder.NullLiteralSingleFinderForRelatedClasses nullLiteralSubClass()
{
ExpressionValueNullLiteralSubClassFinderSubclass result = this.nullLiteralSubClass;
if (result == null)
{
Mapper newMapper = combineWithMapperIfExists(ExpressionValueFinder.zGetExpressionValueNullLiteralSubClassReverseMapper());
newMapper.setToMany(false);
result = new ExpressionValueNullLiteralSubClassFinderSubclass(newMapper , this.zGetValueSelector() );
this.nullLiteralSubClass = result;
}
return result;
}
public VariableReferenceFinder.VariableReferenceSingleFinderForRelatedClasses variableReferenceSubClass()
{
ExpressionValueVariableReferenceSubClassFinderSubclass result = this.variableReferenceSubClass;
if (result == null)
{
Mapper newMapper = combineWithMapperIfExists(ExpressionValueFinder.zGetExpressionValueVariableReferenceSubClassReverseMapper());
newMapper.setToMany(false);
result = new ExpressionValueVariableReferenceSubClassFinderSubclass(newMapper , this.zGetValueSelector() );
this.variableReferenceSubClass = result;
}
return result;
}
public MemberReferencePathFinder.MemberReferencePathSingleFinderForRelatedClasses memberReferencePathSubClass()
{
ExpressionValueMemberReferencePathSubClassFinderSubclass result = this.memberReferencePathSubClass;
if (result == null)
{
Mapper newMapper = combineWithMapperIfExists(ExpressionValueFinder.zGetExpressionValueMemberReferencePathSubClassReverseMapper());
newMapper.setToMany(false);
result = new ExpressionValueMemberReferencePathSubClassFinderSubclass(newMapper , this.zGetValueSelector() );
this.memberReferencePathSubClass = result;
}
return result;
}
public OperatorCriteriaFinder.OperatorCriteriaSingleFinderForRelatedClasses operatorCriteriaSourceOf()
{
ExpressionValueOperatorCriteriaSourceOfFinderSubclass result = this.operatorCriteriaSourceOf;
if (result == null)
{
Mapper newMapper = combineWithMapperIfExists(OperatorCriteriaFinder.zGetOperatorCriteriaSourceExpressionValueMapper());
newMapper.setToMany(false);
result = new ExpressionValueOperatorCriteriaSourceOfFinderSubclass(newMapper , this.zGetValueSelector() );
this.operatorCriteriaSourceOf = result;
}
return result;
}
public OperatorCriteriaFinder.OperatorCriteriaSingleFinderForRelatedClasses operatorCriteriaTargetOf()
{
ExpressionValueOperatorCriteriaTargetOfFinderSubclass result = this.operatorCriteriaTargetOf;
if (result == null)
{
Mapper newMapper = combineWithMapperIfExists(OperatorCriteriaFinder.zGetOperatorCriteriaTargetExpressionValueMapper());
newMapper.setToMany(false);
result = new ExpressionValueOperatorCriteriaTargetOfFinderSubclass(newMapper , this.zGetValueSelector() );
this.operatorCriteriaTargetOf = 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 ExpressionValueFinder.getPrimaryKeyAttributes();
}
public VersionAttribute getVersionAttribute()
{
return null;
}
public MithraObjectPortal getMithraObjectPortal()
{
return ExpressionValueFinder.getMithraObjectPortal();
}
}
public static class ExpressionValueCollectionFinder extends ExpressionValueRelatedFinder
{
public ExpressionValueCollectionFinder(Mapper mapper)
{
super(mapper);
}
}
public static abstract class ExpressionValueCollectionFinderForRelatedClasses
extends ExpressionValueCollectionFinder
implements DeepRelationshipAttribute
{
public ExpressionValueCollectionFinderForRelatedClasses(Mapper mapper)
{
super(mapper);
}
protected NormalAndListValueSelector zGetValueSelector()
{
return this;
}
}
public static class ExpressionValueSingleFinder extends ExpressionValueRelatedFinder
implements ToOneFinder
{
public ExpressionValueSingleFinder(Mapper mapper)
{
super(mapper);
}
public ExpressionValueSingleFinder()
{
super(null);
}
public Operation eq(ExpressionValue 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 ExpressionValue findByPrimaryKey(long id)
{
ExpressionValue _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 = (ExpressionValue) _related;
if (_related == null)
{
_op = this.id().eq(id);
}
if (_op != null)
{
_result = this.findOne(_op);
}
return _result;
}
}
public static abstract class ExpressionValueSingleFinderForRelatedClasses extends ExpressionValueSingleFinder implements DeepRelationshipAttribute
{
public ExpressionValueSingleFinderForRelatedClasses(Mapper mapper)
{
super(mapper);
}
protected NormalAndListValueSelector zGetValueSelector()
{
return this;
}
}
private static Mapper userLiteralSubClassReverseMapper = null;
public static Mapper zGetExpressionValueUserLiteralSubClassReverseMapper()
{
if (userLiteralSubClassReverseMapper == null)
{
userLiteralSubClassReverseMapper = zConstructExpressionValueUserLiteralSubClassReverseMapper();
}
return userLiteralSubClassReverseMapper;
}
private static Mapper userLiteralSubClassMapper = null;
public static Mapper zGetExpressionValueUserLiteralSubClassMapper()
{
if (userLiteralSubClassMapper == null)
{
userLiteralSubClassMapper = zConstructExpressionValueUserLiteralSubClassMapper();
}
return userLiteralSubClassMapper;
}
private static Mapper userLiteralSubClassPureReverseMapper = null;
public static Mapper zGetExpressionValueUserLiteralSubClassPureReverseMapper()
{
if (userLiteralSubClassPureReverseMapper == null)
{
userLiteralSubClassPureReverseMapper = zConstructExpressionValueUserLiteralSubClassPureReverseMapper();
}
return userLiteralSubClassPureReverseMapper;
}
private static Mapper zConstructExpressionValueUserLiteralSubClassPureReverseMapper()
{
Mapper userLiteralSubClassMapper = ExpressionValueFinder.zGetConstantJoin(0);
userLiteralSubClassMapper.setName("userLiteralSubClass");
return userLiteralSubClassMapper;
}
private static Mapper zConstructExpressionValueUserLiteralSubClassReverseMapper()
{
Mapper userLiteralSubClassMapper = ExpressionValueFinder.zGetConstantJoin(0);
userLiteralSubClassMapper.setName("userLiteralSubClass");
return userLiteralSubClassMapper;
}
private static Mapper zConstructExpressionValueUserLiteralSubClassMapper()
{
Mapper userLiteralSubClassMapper = ExpressionValueFinder.zGetConstantJoin(1);
userLiteralSubClassMapper.setName("expressionValueSuperClass");
return userLiteralSubClassMapper;
}
private static Mapper nullLiteralSubClassReverseMapper = null;
public static Mapper zGetExpressionValueNullLiteralSubClassReverseMapper()
{
if (nullLiteralSubClassReverseMapper == null)
{
nullLiteralSubClassReverseMapper = zConstructExpressionValueNullLiteralSubClassReverseMapper();
}
return nullLiteralSubClassReverseMapper;
}
private static Mapper nullLiteralSubClassMapper = null;
public static Mapper zGetExpressionValueNullLiteralSubClassMapper()
{
if (nullLiteralSubClassMapper == null)
{
nullLiteralSubClassMapper = zConstructExpressionValueNullLiteralSubClassMapper();
}
return nullLiteralSubClassMapper;
}
private static Mapper nullLiteralSubClassPureReverseMapper = null;
public static Mapper zGetExpressionValueNullLiteralSubClassPureReverseMapper()
{
if (nullLiteralSubClassPureReverseMapper == null)
{
nullLiteralSubClassPureReverseMapper = zConstructExpressionValueNullLiteralSubClassPureReverseMapper();
}
return nullLiteralSubClassPureReverseMapper;
}
private static Mapper zConstructExpressionValueNullLiteralSubClassPureReverseMapper()
{
Mapper nullLiteralSubClassMapper = ExpressionValueFinder.zGetConstantJoin(2);
nullLiteralSubClassMapper.setName("nullLiteralSubClass");
return nullLiteralSubClassMapper;
}
private static Mapper zConstructExpressionValueNullLiteralSubClassReverseMapper()
{
Mapper nullLiteralSubClassMapper = ExpressionValueFinder.zGetConstantJoin(2);
nullLiteralSubClassMapper.setName("nullLiteralSubClass");
return nullLiteralSubClassMapper;
}
private static Mapper zConstructExpressionValueNullLiteralSubClassMapper()
{
Mapper nullLiteralSubClassMapper = ExpressionValueFinder.zGetConstantJoin(3);
nullLiteralSubClassMapper.setName("expressionValueSuperClass");
return nullLiteralSubClassMapper;
}
private static Mapper variableReferenceSubClassReverseMapper = null;
public static Mapper zGetExpressionValueVariableReferenceSubClassReverseMapper()
{
if (variableReferenceSubClassReverseMapper == null)
{
variableReferenceSubClassReverseMapper = zConstructExpressionValueVariableReferenceSubClassReverseMapper();
}
return variableReferenceSubClassReverseMapper;
}
private static Mapper variableReferenceSubClassMapper = null;
public static Mapper zGetExpressionValueVariableReferenceSubClassMapper()
{
if (variableReferenceSubClassMapper == null)
{
variableReferenceSubClassMapper = zConstructExpressionValueVariableReferenceSubClassMapper();
}
return variableReferenceSubClassMapper;
}
private static Mapper variableReferenceSubClassPureReverseMapper = null;
public static Mapper zGetExpressionValueVariableReferenceSubClassPureReverseMapper()
{
if (variableReferenceSubClassPureReverseMapper == null)
{
variableReferenceSubClassPureReverseMapper = zConstructExpressionValueVariableReferenceSubClassPureReverseMapper();
}
return variableReferenceSubClassPureReverseMapper;
}
private static Mapper zConstructExpressionValueVariableReferenceSubClassPureReverseMapper()
{
Mapper variableReferenceSubClassMapper = ExpressionValueFinder.zGetConstantJoin(4);
variableReferenceSubClassMapper.setName("variableReferenceSubClass");
return variableReferenceSubClassMapper;
}
private static Mapper zConstructExpressionValueVariableReferenceSubClassReverseMapper()
{
Mapper variableReferenceSubClassMapper = ExpressionValueFinder.zGetConstantJoin(4);
variableReferenceSubClassMapper.setName("variableReferenceSubClass");
return variableReferenceSubClassMapper;
}
private static Mapper zConstructExpressionValueVariableReferenceSubClassMapper()
{
Mapper variableReferenceSubClassMapper = ExpressionValueFinder.zGetConstantJoin(5);
variableReferenceSubClassMapper.setName("expressionValueSuperClass");
return variableReferenceSubClassMapper;
}
private static Mapper memberReferencePathSubClassReverseMapper = null;
public static Mapper zGetExpressionValueMemberReferencePathSubClassReverseMapper()
{
if (memberReferencePathSubClassReverseMapper == null)
{
memberReferencePathSubClassReverseMapper = zConstructExpressionValueMemberReferencePathSubClassReverseMapper();
}
return memberReferencePathSubClassReverseMapper;
}
private static Mapper memberReferencePathSubClassMapper = null;
public static Mapper zGetExpressionValueMemberReferencePathSubClassMapper()
{
if (memberReferencePathSubClassMapper == null)
{
memberReferencePathSubClassMapper = zConstructExpressionValueMemberReferencePathSubClassMapper();
}
return memberReferencePathSubClassMapper;
}
private static Mapper memberReferencePathSubClassPureReverseMapper = null;
public static Mapper zGetExpressionValueMemberReferencePathSubClassPureReverseMapper()
{
if (memberReferencePathSubClassPureReverseMapper == null)
{
memberReferencePathSubClassPureReverseMapper = zConstructExpressionValueMemberReferencePathSubClassPureReverseMapper();
}
return memberReferencePathSubClassPureReverseMapper;
}
private static Mapper zConstructExpressionValueMemberReferencePathSubClassPureReverseMapper()
{
Mapper memberReferencePathSubClassMapper = ExpressionValueFinder.zGetConstantJoin(6);
memberReferencePathSubClassMapper.setName("memberReferencePathSubClass");
return memberReferencePathSubClassMapper;
}
private static Mapper zConstructExpressionValueMemberReferencePathSubClassReverseMapper()
{
Mapper memberReferencePathSubClassMapper = ExpressionValueFinder.zGetConstantJoin(6);
memberReferencePathSubClassMapper.setName("memberReferencePathSubClass");
return memberReferencePathSubClassMapper;
}
private static Mapper zConstructExpressionValueMemberReferencePathSubClassMapper()
{
Mapper memberReferencePathSubClassMapper = ExpressionValueFinder.zGetConstantJoin(7);
memberReferencePathSubClassMapper.setName("expressionValueSuperClass");
return memberReferencePathSubClassMapper;
}
/** maps to \"EXPRESSION_VALUE\".\"ID\" **/
public static LongAttribute id()
{
return finder.id();
}
public static UserLiteralFinder.UserLiteralSingleFinderForRelatedClasses userLiteralSubClass()
{
return finder.userLiteralSubClass();
}
public static class ExpressionValueUserLiteralSubClassFinderSubclass extends UserLiteralFinder.UserLiteralSingleFinderForRelatedClasses
{
public ExpressionValueUserLiteralSubClassFinderSubclass(Mapper mapper, NormalAndListValueSelector parentSelector )
{
super(mapper);
this._parentSelector = (AbstractRelatedFinder) parentSelector;
this._orderBy = null;
this._type = SIMPLE_TO_ONE;
this._name = "userLiteralSubClass";
}
public DeepRelationshipAttribute copy()
{
return new ExpressionValueUserLiteralSubClassFinderSubclass(zGetMapper(), (NormalAndListValueSelector) this._parentSelector
);
}
public boolean isModifiedSinceDetachment(MithraTransactionalObject _obj)
{
return ((ExpressionValue) _obj).isUserLiteralSubClassModifiedSinceDetachment();
}
protected UserLiteral plainValueOf(ExpressionValue _obj)
{
return _obj.getUserLiteralSubClass();
}
protected UserLiteralList plainListValueOf(Object _obj)
{
return ((ExpressionValueList)_obj).getUserLiteralSubClass();
}
}
public static NullLiteralFinder.NullLiteralSingleFinderForRelatedClasses nullLiteralSubClass()
{
return finder.nullLiteralSubClass();
}
public static class ExpressionValueNullLiteralSubClassFinderSubclass extends NullLiteralFinder.NullLiteralSingleFinderForRelatedClasses
{
public ExpressionValueNullLiteralSubClassFinderSubclass(Mapper mapper, NormalAndListValueSelector parentSelector )
{
super(mapper);
this._parentSelector = (AbstractRelatedFinder) parentSelector;
this._orderBy = null;
this._type = SIMPLE_TO_ONE;
this._name = "nullLiteralSubClass";
}
public DeepRelationshipAttribute copy()
{
return new ExpressionValueNullLiteralSubClassFinderSubclass(zGetMapper(), (NormalAndListValueSelector) this._parentSelector
);
}
public boolean isModifiedSinceDetachment(MithraTransactionalObject _obj)
{
return ((ExpressionValue) _obj).isNullLiteralSubClassModifiedSinceDetachment();
}
protected NullLiteral plainValueOf(ExpressionValue _obj)
{
return _obj.getNullLiteralSubClass();
}
protected NullLiteralList plainListValueOf(Object _obj)
{
return ((ExpressionValueList)_obj).getNullLiteralSubClass();
}
}
public static VariableReferenceFinder.VariableReferenceSingleFinderForRelatedClasses variableReferenceSubClass()
{
return finder.variableReferenceSubClass();
}
public static class ExpressionValueVariableReferenceSubClassFinderSubclass extends VariableReferenceFinder.VariableReferenceSingleFinderForRelatedClasses
{
public ExpressionValueVariableReferenceSubClassFinderSubclass(Mapper mapper, NormalAndListValueSelector parentSelector )
{
super(mapper);
this._parentSelector = (AbstractRelatedFinder) parentSelector;
this._orderBy = null;
this._type = SIMPLE_TO_ONE;
this._name = "variableReferenceSubClass";
}
public DeepRelationshipAttribute copy()
{
return new ExpressionValueVariableReferenceSubClassFinderSubclass(zGetMapper(), (NormalAndListValueSelector) this._parentSelector
);
}
public boolean isModifiedSinceDetachment(MithraTransactionalObject _obj)
{
return ((ExpressionValue) _obj).isVariableReferenceSubClassModifiedSinceDetachment();
}
protected VariableReference plainValueOf(ExpressionValue _obj)
{
return _obj.getVariableReferenceSubClass();
}
protected VariableReferenceList plainListValueOf(Object _obj)
{
return ((ExpressionValueList)_obj).getVariableReferenceSubClass();
}
}
public static MemberReferencePathFinder.MemberReferencePathSingleFinderForRelatedClasses memberReferencePathSubClass()
{
return finder.memberReferencePathSubClass();
}
public static class ExpressionValueMemberReferencePathSubClassFinderSubclass extends MemberReferencePathFinder.MemberReferencePathSingleFinderForRelatedClasses
{
public ExpressionValueMemberReferencePathSubClassFinderSubclass(Mapper mapper, NormalAndListValueSelector parentSelector )
{
super(mapper);
this._parentSelector = (AbstractRelatedFinder) parentSelector;
this._orderBy = null;
this._type = SIMPLE_TO_ONE;
this._name = "memberReferencePathSubClass";
}
public DeepRelationshipAttribute copy()
{
return new ExpressionValueMemberReferencePathSubClassFinderSubclass(zGetMapper(), (NormalAndListValueSelector) this._parentSelector
);
}
public boolean isModifiedSinceDetachment(MithraTransactionalObject _obj)
{
return ((ExpressionValue) _obj).isMemberReferencePathSubClassModifiedSinceDetachment();
}
protected MemberReferencePath plainValueOf(ExpressionValue _obj)
{
return _obj.getMemberReferencePathSubClass();
}
protected MemberReferencePathList plainListValueOf(Object _obj)
{
return ((ExpressionValueList)_obj).getMemberReferencePathSubClass();
}
}
public static OperatorCriteriaFinder.OperatorCriteriaSingleFinderForRelatedClasses operatorCriteriaSourceOf()
{
return finder.operatorCriteriaSourceOf();
}
public static class ExpressionValueOperatorCriteriaSourceOfFinderSubclass extends OperatorCriteriaFinder.OperatorCriteriaSingleFinderForRelatedClasses
{
public ExpressionValueOperatorCriteriaSourceOfFinderSubclass(Mapper mapper, NormalAndListValueSelector parentSelector )
{
super(mapper);
this._parentSelector = (AbstractRelatedFinder) parentSelector;
this._orderBy = null;
this._type = SIMPLE_TO_ONE;
this._name = "operatorCriteriaSourceOf";
}
public DeepRelationshipAttribute copy()
{
return new ExpressionValueOperatorCriteriaSourceOfFinderSubclass(zGetMapper(), (NormalAndListValueSelector) this._parentSelector
);
}
protected OperatorCriteria plainValueOf(ExpressionValue _obj)
{
return _obj.getOperatorCriteriaSourceOf();
}
protected OperatorCriteriaList plainListValueOf(Object _obj)
{
return ((ExpressionValueList)_obj).getOperatorCriteriaSourceOfs();
}
}
public static OperatorCriteriaFinder.OperatorCriteriaSingleFinderForRelatedClasses operatorCriteriaTargetOf()
{
return finder.operatorCriteriaTargetOf();
}
public static class ExpressionValueOperatorCriteriaTargetOfFinderSubclass extends OperatorCriteriaFinder.OperatorCriteriaSingleFinderForRelatedClasses
{
public ExpressionValueOperatorCriteriaTargetOfFinderSubclass(Mapper mapper, NormalAndListValueSelector parentSelector )
{
super(mapper);
this._parentSelector = (AbstractRelatedFinder) parentSelector;
this._orderBy = null;
this._type = SIMPLE_TO_ONE;
this._name = "operatorCriteriaTargetOf";
}
public DeepRelationshipAttribute copy()
{
return new ExpressionValueOperatorCriteriaTargetOfFinderSubclass(zGetMapper(), (NormalAndListValueSelector) this._parentSelector
);
}
protected OperatorCriteria plainValueOf(ExpressionValue _obj)
{
return _obj.getOperatorCriteriaTargetOf();
}
protected OperatorCriteriaList plainListValueOf(Object _obj)
{
return ((ExpressionValueList)_obj).getOperatorCriteriaTargetOfs();
}
}
public static Operation eq(ExpressionValue other)
{
return finder.eq(other);
}
public static Operation all()
{
return new All(id());
}
public static ExpressionValueSingleFinder 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[]
{
OperatorCriteriaFinder.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[]
{
OperatorCriteriaFinder.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.ExpressionValue");
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