klass.model.meta.domain.MemberReferencePathFinder 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 MemberReferencePathFinder
{
private static final String IMPL_CLASS_NAME_WITH_SLASHES = "klass/model/meta/domain/MemberReferencePath";
private static final String BUSINESS_CLASS_NAME_WITH_DOTS = "klass.model.meta.domain.MemberReferencePath";
private static final FinderMethodMap finderMethodMap;
private static boolean isFullCache;
private static boolean isOffHeap;
private static volatile MithraObjectPortal objectPortal = new UninitializedPortal("klass.model.meta.domain.MemberReferencePath");
private static final MemberReferencePathSingleFinder finder = new MemberReferencePathSingleFinder();
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(MemberReferencePathFinder.MemberReferencePathRelatedFinder.class);
finderMethodMap.addNormalAttributeName("id");
finderMethodMap.addNormalAttributeName("className");
finderMethodMap.addNormalAttributeName("propertyClassName");
finderMethodMap.addNormalAttributeName("propertyName");
finderMethodMap.addRelationshipName("klass");
finderMethodMap.addRelationshipName("associationEnds");
finderMethodMap.addRelationshipName("dataTypeProperty");
finderMethodMap.addRelationshipName("thisMemberReferencePathSubClass");
finderMethodMap.addRelationshipName("typeMemberReferencePathSubClass");
finderMethodMap.addRelationshipName("edgePointCriteria");
finderMethodMap.addRelationshipName("expressionValueSuperClass");
}
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[12];
result[0] = MemberReferencePathFinder.className().constructEqualityMapper(KlassFinder.name());
result[1] = KlassFinder.name().constructEqualityMapper(MemberReferencePathFinder.className());
result[2] = MemberReferencePathFinder.id().constructEqualityMapper(MemberReferencePathAssociationEndMappingFinder.memberReferencePathId());
result[3] = MemberReferencePathAssociationEndMappingFinder.memberReferencePathId().constructEqualityMapper(MemberReferencePathFinder.id());
result[4] = MemberReferencePathFinder.propertyClassName().constructEqualityMapper(DataTypePropertyFinder.classifierName());
result[5] = DataTypePropertyFinder.classifierName().constructEqualityMapper(MemberReferencePathFinder.propertyClassName());
result[6] = MemberReferencePathFinder.propertyName().constructEqualityMapper(DataTypePropertyFinder.name());
result[7] = DataTypePropertyFinder.name().constructEqualityMapper(MemberReferencePathFinder.propertyName());
result[8] = MemberReferencePathFinder.id().constructEqualityMapper(ThisMemberReferencePathFinder.id());
result[9] = ThisMemberReferencePathFinder.id().constructEqualityMapper(MemberReferencePathFinder.id());
result[10] = MemberReferencePathFinder.id().constructEqualityMapper(TypeMemberReferencePathFinder.id());
result[11] = TypeMemberReferencePathFinder.id().constructEqualityMapper(MemberReferencePathFinder.id());
constantJoinPool = result;
}
return constantJoinPool;
}
public static SourceAttributeType getSourceAttributeType()
{
return null;
}
public static MemberReferencePath findOne(com.gs.fw.finder.Operation operation)
{
return findOne(operation, false);
}
public static MemberReferencePath findOneBypassCache(com.gs.fw.finder.Operation operation)
{
return findOne(operation, true);
}
public static MemberReferencePathList findMany(com.gs.fw.finder.Operation operation)
{
return (MemberReferencePathList) finder.findMany(operation);
}
public static MemberReferencePathList findManyBypassCache(com.gs.fw.finder.Operation operation)
{
return (MemberReferencePathList) finder.findManyBypassCache(operation);
}
private static MemberReferencePath findOne(com.gs.fw.finder.Operation operation, boolean bypassCache)
{
List found = getMithraObjectPortal().find((Operation) operation, bypassCache);
return (MemberReferencePath) FinderUtils.findOne(found);
}
public static MemberReferencePath 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;
MemberReferencePathData _castedTargetData = (MemberReferencePathData) _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 MemberReferencePath zFindOneForRelationship(Operation operation)
{
List found = getMithraObjectPortal().findAsCachedQuery(operation, null, false, true, 0).getResult();
return (MemberReferencePath) 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 MemberReferencePathRelatedFinder extends AbstractRelatedFinder
{
private List relationshipFinders;
private List dependentRelationshipFinders;
private LongAttribute id;
private StringAttribute className;
private StringAttribute propertyClassName;
private StringAttribute propertyName;
private MemberReferencePathKlassFinderSubclass klass;
private MemberReferencePathAssociationEndsFinderSubclass associationEnds;
private MemberReferencePathDataTypePropertyFinderSubclass dataTypeProperty;
private MemberReferencePathThisMemberReferencePathSubClassFinderSubclass thisMemberReferencePathSubClass;
private MemberReferencePathTypeMemberReferencePathSubClassFinderSubclass typeMemberReferencePathSubClass;
private MemberReferencePathEdgePointCriteriaFinderSubclass edgePointCriteria;
private MemberReferencePathExpressionValueSuperClassFinderSubclass expressionValueSuperClass;
public MemberReferencePathRelatedFinder()
{
super();
}
public MemberReferencePathRelatedFinder(Mapper mapper)
{
super(mapper);
}
public String getFinderClassName()
{
return "klass.model.meta.domain.MemberReferencePathFinder";
}
public RelatedFinder getRelationshipFinderByName(String relationshipName)
{
return MemberReferencePathFinder.finderMethodMap.getRelationshipFinderByName(relationshipName, this);
}
public Attribute getAttributeByName(String attributeName)
{
return MemberReferencePathFinder.finderMethodMap.getAttributeByName(attributeName, this);
}
public com.gs.fw.common.mithra.extractor.Function getAttributeOrRelationshipSelector(String attributeName)
{
return MemberReferencePathFinder.finderMethodMap.getAttributeOrRelationshipSelectorFunction(attributeName, this);
}
public Attribute[] getPersistentAttributes()
{
Attribute[] attributes = new Attribute[4];
attributes[0] = this.id();
attributes[1] = this.className();
attributes[2] = this.propertyClassName();
attributes[3] = this.propertyName();
return attributes;
}
public List getRelationshipFinders()
{
if (relationshipFinders == null)
{
List relatedFinders = new ArrayList(7);
relatedFinders.add(this.klass());
relatedFinders.add(this.associationEnds());
relatedFinders.add(this.dataTypeProperty());
relatedFinders.add(this.thisMemberReferencePathSubClass());
relatedFinders.add(this.typeMemberReferencePathSubClass());
relatedFinders.add(this.edgePointCriteria());
relatedFinders.add(this.expressionValueSuperClass());
relationshipFinders = Collections.unmodifiableList(relatedFinders);
}
return relationshipFinders;
}
public List getDependentRelationshipFinders()
{
if (dependentRelationshipFinders == null)
{
List dependentRelatedFinders = new ArrayList(3);
dependentRelatedFinders.add(this.associationEnds());
dependentRelatedFinders.add(this.thisMemberReferencePathSubClass());
dependentRelatedFinders.add(this.typeMemberReferencePathSubClass());
dependentRelationshipFinders = Collections.unmodifiableList(dependentRelatedFinders);
}
return dependentRelationshipFinders;
}
public MemberReferencePath findOne(com.gs.fw.finder.Operation operation)
{
return MemberReferencePathFinder.findOne(operation, false);
}
public MemberReferencePath findOneBypassCache(com.gs.fw.finder.Operation operation)
{
return MemberReferencePathFinder.findOne(operation, true);
}
public MithraList extends MemberReferencePath> findMany(com.gs.fw.finder.Operation operation)
{
return new MemberReferencePathList((Operation) operation);
}
public MithraList extends MemberReferencePath> findManyBypassCache(com.gs.fw.finder.Operation operation)
{
MemberReferencePathList result = (MemberReferencePathList) this.findMany(operation);
result.setBypassCache(true);
return result;
}
public MithraList extends MemberReferencePath> constructEmptyList()
{
return new MemberReferencePathList();
}
public int getSerialVersionId()
{
return 1603124989;
}
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,false, false) :
new MappedLongAttribute(MemberReferencePathFinder.id(), this.mapper, this.zGetValueSelector());
result.zSetOwningRelationship("expressionValueSuperClass");
result.zSetOwningReverseRelationship("klass.model.meta.domain", "ExpressionValue", "memberReferencePathSubClass");
this.id = result;
}
return result;
}
public StringAttribute className()
{
StringAttribute result = this.className;
if (result == null)
{
result = mapper == null ? SingleColumnStringAttribute.generate("\"CLASS_NAME\"","","className",BUSINESS_CLASS_NAME_WITH_DOTS,IMPL_CLASS_NAME_WITH_SLASHES,false,false,this,null,true,false,-1,-1,-1,256,false, false) :
new MappedStringAttribute(MemberReferencePathFinder.className(), this.mapper, this.zGetValueSelector());
result.zSetOwningRelationship("klass");
result.zSetOwningReverseRelationship("klass.model.meta.domain", "Klass", "memberReferencePaths");
this.className = result;
}
return result;
}
public StringAttribute propertyClassName()
{
StringAttribute result = this.propertyClassName;
if (result == null)
{
result = mapper == null ? SingleColumnStringAttribute.generate("\"PROPERTY_CLASS_NAME\"","","propertyClassName",BUSINESS_CLASS_NAME_WITH_DOTS,IMPL_CLASS_NAME_WITH_SLASHES,false,false,this,null,true,false,-1,-1,-1,256,false, false) :
new MappedStringAttribute(MemberReferencePathFinder.propertyClassName(), this.mapper, this.zGetValueSelector());
result.zSetOwningRelationship("dataTypeProperty");
result.zSetOwningReverseRelationship("klass.model.meta.domain", "DataTypeProperty", "memberReferencePaths");
this.propertyClassName = result;
}
return result;
}
public StringAttribute propertyName()
{
StringAttribute result = this.propertyName;
if (result == null)
{
result = mapper == null ? SingleColumnStringAttribute.generate("\"PROPERTY_NAME\"","","propertyName",BUSINESS_CLASS_NAME_WITH_DOTS,IMPL_CLASS_NAME_WITH_SLASHES,false,false,this,null,true,false,-1,-1,-1,256,false, false) :
new MappedStringAttribute(MemberReferencePathFinder.propertyName(), this.mapper, this.zGetValueSelector());
result.zSetOwningRelationship("dataTypeProperty");
result.zSetOwningReverseRelationship("klass.model.meta.domain", "DataTypeProperty", "memberReferencePaths");
this.propertyName = result;
}
return result;
}
public KlassFinder.KlassSingleFinderForRelatedClasses klass()
{
MemberReferencePathKlassFinderSubclass result = this.klass;
if (result == null)
{
Mapper newMapper = combineWithMapperIfExists(MemberReferencePathFinder.zGetMemberReferencePathKlassReverseMapper());
newMapper.setToMany(false);
result = new MemberReferencePathKlassFinderSubclass(newMapper , this.zGetValueSelector() );
this.klass = result;
}
return result;
}
public MemberReferencePathAssociationEndMappingFinder.MemberReferencePathAssociationEndMappingCollectionFinderForRelatedClasses associationEnds()
{
MemberReferencePathAssociationEndsFinderSubclass result = this.associationEnds;
if (result == null)
{
Mapper newMapper = combineWithMapperIfExists(MemberReferencePathFinder.zGetMemberReferencePathAssociationEndsReverseMapper());
newMapper.setToMany(true);
result = new MemberReferencePathAssociationEndsFinderSubclass(newMapper , this.zGetValueSelector() );
this.associationEnds = result;
}
return result;
}
public DataTypePropertyFinder.DataTypePropertySingleFinderForRelatedClasses dataTypeProperty()
{
MemberReferencePathDataTypePropertyFinderSubclass result = this.dataTypeProperty;
if (result == null)
{
Mapper newMapper = combineWithMapperIfExists(MemberReferencePathFinder.zGetMemberReferencePathDataTypePropertyReverseMapper());
newMapper.setToMany(false);
result = new MemberReferencePathDataTypePropertyFinderSubclass(newMapper , this.zGetValueSelector() );
this.dataTypeProperty = result;
}
return result;
}
public ThisMemberReferencePathFinder.ThisMemberReferencePathSingleFinderForRelatedClasses thisMemberReferencePathSubClass()
{
MemberReferencePathThisMemberReferencePathSubClassFinderSubclass result = this.thisMemberReferencePathSubClass;
if (result == null)
{
Mapper newMapper = combineWithMapperIfExists(MemberReferencePathFinder.zGetMemberReferencePathThisMemberReferencePathSubClassReverseMapper());
newMapper.setToMany(false);
result = new MemberReferencePathThisMemberReferencePathSubClassFinderSubclass(newMapper , this.zGetValueSelector() );
this.thisMemberReferencePathSubClass = result;
}
return result;
}
public TypeMemberReferencePathFinder.TypeMemberReferencePathSingleFinderForRelatedClasses typeMemberReferencePathSubClass()
{
MemberReferencePathTypeMemberReferencePathSubClassFinderSubclass result = this.typeMemberReferencePathSubClass;
if (result == null)
{
Mapper newMapper = combineWithMapperIfExists(MemberReferencePathFinder.zGetMemberReferencePathTypeMemberReferencePathSubClassReverseMapper());
newMapper.setToMany(false);
result = new MemberReferencePathTypeMemberReferencePathSubClassFinderSubclass(newMapper , this.zGetValueSelector() );
this.typeMemberReferencePathSubClass = result;
}
return result;
}
public EdgePointCriteriaFinder.EdgePointCriteriaSingleFinderForRelatedClasses edgePointCriteria()
{
MemberReferencePathEdgePointCriteriaFinderSubclass result = this.edgePointCriteria;
if (result == null)
{
Mapper newMapper = combineWithMapperIfExists(EdgePointCriteriaFinder.zGetEdgePointCriteriaMemberReferencePathMapper());
newMapper.setToMany(false);
result = new MemberReferencePathEdgePointCriteriaFinderSubclass(newMapper , this.zGetValueSelector() );
this.edgePointCriteria = result;
}
return result;
}
public ExpressionValueFinder.ExpressionValueSingleFinderForRelatedClasses expressionValueSuperClass()
{
MemberReferencePathExpressionValueSuperClassFinderSubclass result = this.expressionValueSuperClass;
if (result == null)
{
Mapper newMapper = combineWithMapperIfExists(ExpressionValueFinder.zGetExpressionValueMemberReferencePathSubClassMapper());
newMapper.setToMany(false);
result = new MemberReferencePathExpressionValueSuperClassFinderSubclass(newMapper , this.zGetValueSelector() );
this.expressionValueSuperClass = 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 MemberReferencePathFinder.getPrimaryKeyAttributes();
}
public VersionAttribute getVersionAttribute()
{
return null;
}
public MithraObjectPortal getMithraObjectPortal()
{
return MemberReferencePathFinder.getMithraObjectPortal();
}
}
public static class MemberReferencePathCollectionFinder extends MemberReferencePathRelatedFinder
{
public MemberReferencePathCollectionFinder(Mapper mapper)
{
super(mapper);
}
}
public static abstract class MemberReferencePathCollectionFinderForRelatedClasses
extends MemberReferencePathCollectionFinder
implements DeepRelationshipAttribute
{
public MemberReferencePathCollectionFinderForRelatedClasses(Mapper mapper)
{
super(mapper);
}
protected NormalAndListValueSelector zGetValueSelector()
{
return this;
}
}
public static class MemberReferencePathSingleFinder extends MemberReferencePathRelatedFinder
implements ToOneFinder
{
public MemberReferencePathSingleFinder(Mapper mapper)
{
super(mapper);
}
public MemberReferencePathSingleFinder()
{
super(null);
}
public Operation eq(MemberReferencePath 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 MemberReferencePath findByPrimaryKey(long id)
{
MemberReferencePath _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 = (MemberReferencePath) _related;
if (_related == null)
{
_op = this.id().eq(id);
}
if (_op != null)
{
_result = this.findOne(_op);
}
return _result;
}
}
public static abstract class MemberReferencePathSingleFinderForRelatedClasses extends MemberReferencePathSingleFinder implements DeepRelationshipAttribute
{
public MemberReferencePathSingleFinderForRelatedClasses(Mapper mapper)
{
super(mapper);
}
protected NormalAndListValueSelector zGetValueSelector()
{
return this;
}
}
private static Mapper klassReverseMapper = null;
public static Mapper zGetMemberReferencePathKlassReverseMapper()
{
if (klassReverseMapper == null)
{
klassReverseMapper = zConstructMemberReferencePathKlassReverseMapper();
}
return klassReverseMapper;
}
private static Mapper klassMapper = null;
public static Mapper zGetMemberReferencePathKlassMapper()
{
if (klassMapper == null)
{
klassMapper = zConstructMemberReferencePathKlassMapper();
}
return klassMapper;
}
private static Mapper klassPureReverseMapper = null;
public static Mapper zGetMemberReferencePathKlassPureReverseMapper()
{
if (klassPureReverseMapper == null)
{
klassPureReverseMapper = zConstructMemberReferencePathKlassPureReverseMapper();
}
return klassPureReverseMapper;
}
private static Mapper zConstructMemberReferencePathKlassPureReverseMapper()
{
Mapper klassMapper = MemberReferencePathFinder.zGetConstantJoin(0);
klassMapper.setName("klass");
return klassMapper;
}
private static Mapper zConstructMemberReferencePathKlassReverseMapper()
{
Mapper klassMapper = MemberReferencePathFinder.zGetConstantJoin(0);
klassMapper.setName("klass");
return klassMapper;
}
private static Mapper zConstructMemberReferencePathKlassMapper()
{
Mapper klassMapper = MemberReferencePathFinder.zGetConstantJoin(1);
klassMapper.setName("memberReferencePaths");
return klassMapper;
}
private static Mapper associationEndsReverseMapper = null;
public static Mapper zGetMemberReferencePathAssociationEndsReverseMapper()
{
if (associationEndsReverseMapper == null)
{
associationEndsReverseMapper = zConstructMemberReferencePathAssociationEndsReverseMapper();
}
return associationEndsReverseMapper;
}
private static Mapper associationEndsMapper = null;
public static Mapper zGetMemberReferencePathAssociationEndsMapper()
{
if (associationEndsMapper == null)
{
associationEndsMapper = zConstructMemberReferencePathAssociationEndsMapper();
}
return associationEndsMapper;
}
private static Mapper associationEndsPureReverseMapper = null;
public static Mapper zGetMemberReferencePathAssociationEndsPureReverseMapper()
{
if (associationEndsPureReverseMapper == null)
{
associationEndsPureReverseMapper = zConstructMemberReferencePathAssociationEndsPureReverseMapper();
}
return associationEndsPureReverseMapper;
}
private static Mapper zConstructMemberReferencePathAssociationEndsPureReverseMapper()
{
Mapper associationEndsMapper = MemberReferencePathFinder.zGetConstantJoin(2);
associationEndsMapper.setName("associationEnds");
return associationEndsMapper;
}
private static Mapper zConstructMemberReferencePathAssociationEndsReverseMapper()
{
Mapper associationEndsMapper = MemberReferencePathFinder.zGetConstantJoin(2);
associationEndsMapper.setName("associationEnds");
return associationEndsMapper;
}
private static Mapper zConstructMemberReferencePathAssociationEndsMapper()
{
Mapper associationEndsMapper = MemberReferencePathFinder.zGetConstantJoin(3);
associationEndsMapper.setName("memberReferencePath");
return associationEndsMapper;
}
private static Mapper dataTypePropertyReverseMapper = null;
public static Mapper zGetMemberReferencePathDataTypePropertyReverseMapper()
{
if (dataTypePropertyReverseMapper == null)
{
dataTypePropertyReverseMapper = zConstructMemberReferencePathDataTypePropertyReverseMapper();
}
return dataTypePropertyReverseMapper;
}
private static Mapper dataTypePropertyMapper = null;
public static Mapper zGetMemberReferencePathDataTypePropertyMapper()
{
if (dataTypePropertyMapper == null)
{
dataTypePropertyMapper = zConstructMemberReferencePathDataTypePropertyMapper();
}
return dataTypePropertyMapper;
}
private static Mapper dataTypePropertyPureReverseMapper = null;
public static Mapper zGetMemberReferencePathDataTypePropertyPureReverseMapper()
{
if (dataTypePropertyPureReverseMapper == null)
{
dataTypePropertyPureReverseMapper = zConstructMemberReferencePathDataTypePropertyPureReverseMapper();
}
return dataTypePropertyPureReverseMapper;
}
private static Mapper zConstructMemberReferencePathDataTypePropertyPureReverseMapper()
{
InternalList dataTypePropertyMapperMapperList = new InternalList(2);
dataTypePropertyMapperMapperList.add(MemberReferencePathFinder.zGetConstantJoin(4));
dataTypePropertyMapperMapperList.add(MemberReferencePathFinder.zGetConstantJoin(6));
Mapper dataTypePropertyMapper = new MultiEqualityMapper(dataTypePropertyMapperMapperList);
dataTypePropertyMapper.setName("dataTypeProperty");
return dataTypePropertyMapper;
}
private static Mapper zConstructMemberReferencePathDataTypePropertyReverseMapper()
{
InternalList dataTypePropertyMapperMapperList = new InternalList(2);
dataTypePropertyMapperMapperList.add(MemberReferencePathFinder.zGetConstantJoin(4));
dataTypePropertyMapperMapperList.add(MemberReferencePathFinder.zGetConstantJoin(6));
Mapper dataTypePropertyMapper = new MultiEqualityMapper(dataTypePropertyMapperMapperList);
dataTypePropertyMapper.setName("dataTypeProperty");
return dataTypePropertyMapper;
}
private static Mapper zConstructMemberReferencePathDataTypePropertyMapper()
{
InternalList dataTypePropertyMapperMapperList = new InternalList(2);
dataTypePropertyMapperMapperList.add(MemberReferencePathFinder.zGetConstantJoin(5));
dataTypePropertyMapperMapperList.add(MemberReferencePathFinder.zGetConstantJoin(7));
Mapper dataTypePropertyMapper = new MultiEqualityMapper(dataTypePropertyMapperMapperList);
dataTypePropertyMapper.setName("memberReferencePaths");
return dataTypePropertyMapper;
}
private static Mapper thisMemberReferencePathSubClassReverseMapper = null;
public static Mapper zGetMemberReferencePathThisMemberReferencePathSubClassReverseMapper()
{
if (thisMemberReferencePathSubClassReverseMapper == null)
{
thisMemberReferencePathSubClassReverseMapper = zConstructMemberReferencePathThisMemberReferencePathSubClassReverseMapper();
}
return thisMemberReferencePathSubClassReverseMapper;
}
private static Mapper thisMemberReferencePathSubClassMapper = null;
public static Mapper zGetMemberReferencePathThisMemberReferencePathSubClassMapper()
{
if (thisMemberReferencePathSubClassMapper == null)
{
thisMemberReferencePathSubClassMapper = zConstructMemberReferencePathThisMemberReferencePathSubClassMapper();
}
return thisMemberReferencePathSubClassMapper;
}
private static Mapper thisMemberReferencePathSubClassPureReverseMapper = null;
public static Mapper zGetMemberReferencePathThisMemberReferencePathSubClassPureReverseMapper()
{
if (thisMemberReferencePathSubClassPureReverseMapper == null)
{
thisMemberReferencePathSubClassPureReverseMapper = zConstructMemberReferencePathThisMemberReferencePathSubClassPureReverseMapper();
}
return thisMemberReferencePathSubClassPureReverseMapper;
}
private static Mapper zConstructMemberReferencePathThisMemberReferencePathSubClassPureReverseMapper()
{
Mapper thisMemberReferencePathSubClassMapper = MemberReferencePathFinder.zGetConstantJoin(8);
thisMemberReferencePathSubClassMapper.setName("thisMemberReferencePathSubClass");
return thisMemberReferencePathSubClassMapper;
}
private static Mapper zConstructMemberReferencePathThisMemberReferencePathSubClassReverseMapper()
{
Mapper thisMemberReferencePathSubClassMapper = MemberReferencePathFinder.zGetConstantJoin(8);
thisMemberReferencePathSubClassMapper.setName("thisMemberReferencePathSubClass");
return thisMemberReferencePathSubClassMapper;
}
private static Mapper zConstructMemberReferencePathThisMemberReferencePathSubClassMapper()
{
Mapper thisMemberReferencePathSubClassMapper = MemberReferencePathFinder.zGetConstantJoin(9);
thisMemberReferencePathSubClassMapper.setName("memberReferencePathSuperClass");
return thisMemberReferencePathSubClassMapper;
}
private static Mapper typeMemberReferencePathSubClassReverseMapper = null;
public static Mapper zGetMemberReferencePathTypeMemberReferencePathSubClassReverseMapper()
{
if (typeMemberReferencePathSubClassReverseMapper == null)
{
typeMemberReferencePathSubClassReverseMapper = zConstructMemberReferencePathTypeMemberReferencePathSubClassReverseMapper();
}
return typeMemberReferencePathSubClassReverseMapper;
}
private static Mapper typeMemberReferencePathSubClassMapper = null;
public static Mapper zGetMemberReferencePathTypeMemberReferencePathSubClassMapper()
{
if (typeMemberReferencePathSubClassMapper == null)
{
typeMemberReferencePathSubClassMapper = zConstructMemberReferencePathTypeMemberReferencePathSubClassMapper();
}
return typeMemberReferencePathSubClassMapper;
}
private static Mapper typeMemberReferencePathSubClassPureReverseMapper = null;
public static Mapper zGetMemberReferencePathTypeMemberReferencePathSubClassPureReverseMapper()
{
if (typeMemberReferencePathSubClassPureReverseMapper == null)
{
typeMemberReferencePathSubClassPureReverseMapper = zConstructMemberReferencePathTypeMemberReferencePathSubClassPureReverseMapper();
}
return typeMemberReferencePathSubClassPureReverseMapper;
}
private static Mapper zConstructMemberReferencePathTypeMemberReferencePathSubClassPureReverseMapper()
{
Mapper typeMemberReferencePathSubClassMapper = MemberReferencePathFinder.zGetConstantJoin(10);
typeMemberReferencePathSubClassMapper.setName("typeMemberReferencePathSubClass");
return typeMemberReferencePathSubClassMapper;
}
private static Mapper zConstructMemberReferencePathTypeMemberReferencePathSubClassReverseMapper()
{
Mapper typeMemberReferencePathSubClassMapper = MemberReferencePathFinder.zGetConstantJoin(10);
typeMemberReferencePathSubClassMapper.setName("typeMemberReferencePathSubClass");
return typeMemberReferencePathSubClassMapper;
}
private static Mapper zConstructMemberReferencePathTypeMemberReferencePathSubClassMapper()
{
Mapper typeMemberReferencePathSubClassMapper = MemberReferencePathFinder.zGetConstantJoin(11);
typeMemberReferencePathSubClassMapper.setName("memberReferencePathSuperClass");
return typeMemberReferencePathSubClassMapper;
}
/** maps to \"MEMBER_REFERENCE_PATH\".\"ID\" **/
public static LongAttribute id()
{
return finder.id();
}
/** maps to \"MEMBER_REFERENCE_PATH\".\"CLASS_NAME\" **/
public static StringAttribute className()
{
return finder.className();
}
/** maps to \"MEMBER_REFERENCE_PATH\".\"PROPERTY_CLASS_NAME\" **/
public static StringAttribute propertyClassName()
{
return finder.propertyClassName();
}
/** maps to \"MEMBER_REFERENCE_PATH\".\"PROPERTY_NAME\" **/
public static StringAttribute propertyName()
{
return finder.propertyName();
}
public static KlassFinder.KlassSingleFinderForRelatedClasses klass()
{
return finder.klass();
}
public static class MemberReferencePathKlassFinderSubclass extends KlassFinder.KlassSingleFinderForRelatedClasses
{
public MemberReferencePathKlassFinderSubclass(Mapper mapper, NormalAndListValueSelector parentSelector )
{
super(mapper);
this._parentSelector = (AbstractRelatedFinder) parentSelector;
this._orderBy = null;
this._type = SIMPLE_TO_ONE;
this._name = "klass";
}
public DeepRelationshipAttribute copy()
{
return new MemberReferencePathKlassFinderSubclass(zGetMapper(), (NormalAndListValueSelector) this._parentSelector
);
}
protected Klass plainValueOf(MemberReferencePath _obj)
{
return _obj.getKlass();
}
protected KlassList plainListValueOf(Object _obj)
{
return ((MemberReferencePathList)_obj).getKlass();
}
}
public static MemberReferencePathAssociationEndMappingFinder.MemberReferencePathAssociationEndMappingCollectionFinderForRelatedClasses associationEnds()
{
return finder.associationEnds();
}
public static class MemberReferencePathAssociationEndsFinderSubclass extends MemberReferencePathAssociationEndMappingFinder.MemberReferencePathAssociationEndMappingCollectionFinderForRelatedClasses
{
public MemberReferencePathAssociationEndsFinderSubclass(Mapper mapper, NormalAndListValueSelector parentSelector )
{
super(mapper);
this._parentSelector = (AbstractRelatedFinder) parentSelector;
this._orderBy = MemberReferencePathAssociationEndMappingFinder.ordinal().ascendingOrderBy();
this._type = SIMPLE_TO_MANY;
this._name = "associationEnds";
}
public DeepRelationshipAttribute copy()
{
return new MemberReferencePathAssociationEndsFinderSubclass(zGetMapper(), (NormalAndListValueSelector) this._parentSelector
);
}
public boolean isModifiedSinceDetachment(MithraTransactionalObject _obj)
{
return ((MemberReferencePath) _obj).isAssociationEndsModifiedSinceDetachment();
}
protected MemberReferencePathAssociationEndMappingList plainValueOf(MemberReferencePath _obj)
{
return _obj.getAssociationEnds();
}
protected MemberReferencePathAssociationEndMappingList plainListValueOf(Object _obj)
{
return ((MemberReferencePathList)_obj).getAssociationEnds();
}
}
public static DataTypePropertyFinder.DataTypePropertySingleFinderForRelatedClasses dataTypeProperty()
{
return finder.dataTypeProperty();
}
public static class MemberReferencePathDataTypePropertyFinderSubclass extends DataTypePropertyFinder.DataTypePropertySingleFinderForRelatedClasses
{
public MemberReferencePathDataTypePropertyFinderSubclass(Mapper mapper, NormalAndListValueSelector parentSelector )
{
super(mapper);
this._parentSelector = (AbstractRelatedFinder) parentSelector;
this._orderBy = null;
this._type = SIMPLE_TO_ONE;
this._name = "dataTypeProperty";
this.zSetRelationshipMultiExtractor(RelationshipMultiExtractor.withLeftAttributes(
DataTypePropertyFinder.classifierName(),
DataTypePropertyFinder.name()).withExtractors(
MemberReferencePathFinder.propertyClassName(),
MemberReferencePathFinder.propertyName()));
}
public DeepRelationshipAttribute copy()
{
return new MemberReferencePathDataTypePropertyFinderSubclass(zGetMapper(), (NormalAndListValueSelector) this._parentSelector
);
}
protected DataTypeProperty plainValueOf(MemberReferencePath _obj)
{
return _obj.getDataTypeProperty();
}
protected DataTypePropertyList plainListValueOf(Object _obj)
{
return ((MemberReferencePathList)_obj).getDataTypeProperties();
}
}
public static ThisMemberReferencePathFinder.ThisMemberReferencePathSingleFinderForRelatedClasses thisMemberReferencePathSubClass()
{
return finder.thisMemberReferencePathSubClass();
}
public static class MemberReferencePathThisMemberReferencePathSubClassFinderSubclass extends ThisMemberReferencePathFinder.ThisMemberReferencePathSingleFinderForRelatedClasses
{
public MemberReferencePathThisMemberReferencePathSubClassFinderSubclass(Mapper mapper, NormalAndListValueSelector parentSelector )
{
super(mapper);
this._parentSelector = (AbstractRelatedFinder) parentSelector;
this._orderBy = null;
this._type = SIMPLE_TO_ONE;
this._name = "thisMemberReferencePathSubClass";
}
public DeepRelationshipAttribute copy()
{
return new MemberReferencePathThisMemberReferencePathSubClassFinderSubclass(zGetMapper(), (NormalAndListValueSelector) this._parentSelector
);
}
public boolean isModifiedSinceDetachment(MithraTransactionalObject _obj)
{
return ((MemberReferencePath) _obj).isThisMemberReferencePathSubClassModifiedSinceDetachment();
}
protected ThisMemberReferencePath plainValueOf(MemberReferencePath _obj)
{
return _obj.getThisMemberReferencePathSubClass();
}
protected ThisMemberReferencePathList plainListValueOf(Object _obj)
{
return ((MemberReferencePathList)_obj).getThisMemberReferencePathSubClass();
}
}
public static TypeMemberReferencePathFinder.TypeMemberReferencePathSingleFinderForRelatedClasses typeMemberReferencePathSubClass()
{
return finder.typeMemberReferencePathSubClass();
}
public static class MemberReferencePathTypeMemberReferencePathSubClassFinderSubclass extends TypeMemberReferencePathFinder.TypeMemberReferencePathSingleFinderForRelatedClasses
{
public MemberReferencePathTypeMemberReferencePathSubClassFinderSubclass(Mapper mapper, NormalAndListValueSelector parentSelector )
{
super(mapper);
this._parentSelector = (AbstractRelatedFinder) parentSelector;
this._orderBy = null;
this._type = SIMPLE_TO_ONE;
this._name = "typeMemberReferencePathSubClass";
}
public DeepRelationshipAttribute copy()
{
return new MemberReferencePathTypeMemberReferencePathSubClassFinderSubclass(zGetMapper(), (NormalAndListValueSelector) this._parentSelector
);
}
public boolean isModifiedSinceDetachment(MithraTransactionalObject _obj)
{
return ((MemberReferencePath) _obj).isTypeMemberReferencePathSubClassModifiedSinceDetachment();
}
protected TypeMemberReferencePath plainValueOf(MemberReferencePath _obj)
{
return _obj.getTypeMemberReferencePathSubClass();
}
protected TypeMemberReferencePathList plainListValueOf(Object _obj)
{
return ((MemberReferencePathList)_obj).getTypeMemberReferencePathSubClass();
}
}
public static EdgePointCriteriaFinder.EdgePointCriteriaSingleFinderForRelatedClasses edgePointCriteria()
{
return finder.edgePointCriteria();
}
public static class MemberReferencePathEdgePointCriteriaFinderSubclass extends EdgePointCriteriaFinder.EdgePointCriteriaSingleFinderForRelatedClasses
{
public MemberReferencePathEdgePointCriteriaFinderSubclass(Mapper mapper, NormalAndListValueSelector parentSelector )
{
super(mapper);
this._parentSelector = (AbstractRelatedFinder) parentSelector;
this._orderBy = null;
this._type = SIMPLE_TO_ONE;
this._name = "edgePointCriteria";
}
public DeepRelationshipAttribute copy()
{
return new MemberReferencePathEdgePointCriteriaFinderSubclass(zGetMapper(), (NormalAndListValueSelector) this._parentSelector
);
}
protected EdgePointCriteria plainValueOf(MemberReferencePath _obj)
{
return _obj.getEdgePointCriteria();
}
protected EdgePointCriteriaList plainListValueOf(Object _obj)
{
return ((MemberReferencePathList)_obj).getEdgePointCriterias();
}
}
public static ExpressionValueFinder.ExpressionValueSingleFinderForRelatedClasses expressionValueSuperClass()
{
return finder.expressionValueSuperClass();
}
public static class MemberReferencePathExpressionValueSuperClassFinderSubclass extends ExpressionValueFinder.ExpressionValueSingleFinderForRelatedClasses
{
public MemberReferencePathExpressionValueSuperClassFinderSubclass(Mapper mapper, NormalAndListValueSelector parentSelector )
{
super(mapper);
this._parentSelector = (AbstractRelatedFinder) parentSelector;
this._orderBy = null;
this._type = SIMPLE_TO_ONE;
this._name = "expressionValueSuperClass";
}
public DeepRelationshipAttribute copy()
{
return new MemberReferencePathExpressionValueSuperClassFinderSubclass(zGetMapper(), (NormalAndListValueSelector) this._parentSelector
);
}
protected ExpressionValue plainValueOf(MemberReferencePath _obj)
{
return _obj.getExpressionValueSuperClass();
}
protected ExpressionValueList plainListValueOf(Object _obj)
{
return ((MemberReferencePathList)_obj).getExpressionValueSuperClass();
}
}
public static Operation eq(MemberReferencePath other)
{
return finder.eq(other);
}
public static Operation all()
{
return new All(id());
}
public static MemberReferencePathSingleFinder 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)
{
cache.addIndex("0 Index", new Attribute[]
{
className()
}
);
cache.addIndex("1 Index", new Attribute[]
{
propertyClassName()
, propertyName()
}
);
}
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[]
{
DataTypePropertyFinder.getFinderInstance(),EdgePointCriteriaFinder.getFinderInstance(),ExpressionValueFinder.getFinderInstance(),KlassFinder.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[]
{
DataTypePropertyFinder.getFinderInstance(),EdgePointCriteriaFinder.getFinderInstance(),ExpressionValueFinder.getFinderInstance(),KlassFinder.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.MemberReferencePath");
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