klass.model.meta.domain.ProjectionWithAssociationEndFinder 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 ProjectionWithAssociationEndFinder
{
private static final String IMPL_CLASS_NAME_WITH_SLASHES = "klass/model/meta/domain/ProjectionWithAssociationEnd";
private static final String BUSINESS_CLASS_NAME_WITH_DOTS = "klass.model.meta.domain.ProjectionWithAssociationEnd";
private static final FinderMethodMap finderMethodMap;
private static boolean isFullCache;
private static boolean isOffHeap;
private static volatile MithraObjectPortal objectPortal = new UninitializedPortal("klass.model.meta.domain.ProjectionWithAssociationEnd");
private static final ProjectionWithAssociationEndSingleFinder finder = new ProjectionWithAssociationEndSingleFinder();
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(ProjectionWithAssociationEndFinder.ProjectionWithAssociationEndRelatedFinder.class);
finderMethodMap.addNormalAttributeName("id");
finderMethodMap.addNormalAttributeName("associationEndClass");
finderMethodMap.addNormalAttributeName("associationEndName");
finderMethodMap.addRelationshipName("associationEnd");
finderMethodMap.addRelationshipName("projectionReferencePropertySubClass");
finderMethodMap.addRelationshipName("projectionProjectionReferenceSubClass");
finderMethodMap.addRelationshipName("projectionElementSuperClass");
}
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] = ProjectionWithAssociationEndFinder.associationEndClass().constructEqualityMapper(AssociationEndFinder.owningClassName());
result[1] = AssociationEndFinder.owningClassName().constructEqualityMapper(ProjectionWithAssociationEndFinder.associationEndClass());
result[2] = ProjectionWithAssociationEndFinder.associationEndName().constructEqualityMapper(AssociationEndFinder.name());
result[3] = AssociationEndFinder.name().constructEqualityMapper(ProjectionWithAssociationEndFinder.associationEndName());
result[4] = ProjectionWithAssociationEndFinder.id().constructEqualityMapper(ProjectionReferencePropertyFinder.id());
result[5] = ProjectionReferencePropertyFinder.id().constructEqualityMapper(ProjectionWithAssociationEndFinder.id());
result[6] = ProjectionWithAssociationEndFinder.id().constructEqualityMapper(ProjectionProjectionReferenceFinder.id());
result[7] = ProjectionProjectionReferenceFinder.id().constructEqualityMapper(ProjectionWithAssociationEndFinder.id());
constantJoinPool = result;
}
return constantJoinPool;
}
public static SourceAttributeType getSourceAttributeType()
{
return null;
}
public static ProjectionWithAssociationEnd findOne(com.gs.fw.finder.Operation operation)
{
return findOne(operation, false);
}
public static ProjectionWithAssociationEnd findOneBypassCache(com.gs.fw.finder.Operation operation)
{
return findOne(operation, true);
}
public static ProjectionWithAssociationEndList findMany(com.gs.fw.finder.Operation operation)
{
return (ProjectionWithAssociationEndList) finder.findMany(operation);
}
public static ProjectionWithAssociationEndList findManyBypassCache(com.gs.fw.finder.Operation operation)
{
return (ProjectionWithAssociationEndList) finder.findManyBypassCache(operation);
}
private static ProjectionWithAssociationEnd findOne(com.gs.fw.finder.Operation operation, boolean bypassCache)
{
List found = getMithraObjectPortal().find((Operation) operation, bypassCache);
return (ProjectionWithAssociationEnd) FinderUtils.findOne(found);
}
public static ProjectionWithAssociationEnd 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;
ProjectionWithAssociationEndData _castedTargetData = (ProjectionWithAssociationEndData) _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 ProjectionWithAssociationEnd zFindOneForRelationship(Operation operation)
{
List found = getMithraObjectPortal().findAsCachedQuery(operation, null, false, true, 0).getResult();
return (ProjectionWithAssociationEnd) 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 ProjectionWithAssociationEndRelatedFinder extends AbstractRelatedFinder
{
private List relationshipFinders;
private List dependentRelationshipFinders;
private LongAttribute id;
private StringAttribute associationEndClass;
private StringAttribute associationEndName;
private ProjectionWithAssociationEndAssociationEndFinderSubclass associationEnd;
private ProjectionWithAssociationEndProjectionReferencePropertySubClassFinderSubclass projectionReferencePropertySubClass;
private ProjectionWithAssociationEndProjectionProjectionReferenceSubClassFinderSubclass projectionProjectionReferenceSubClass;
private ProjectionWithAssociationEndProjectionElementSuperClassFinderSubclass projectionElementSuperClass;
public ProjectionWithAssociationEndRelatedFinder()
{
super();
}
public ProjectionWithAssociationEndRelatedFinder(Mapper mapper)
{
super(mapper);
}
public String getFinderClassName()
{
return "klass.model.meta.domain.ProjectionWithAssociationEndFinder";
}
public RelatedFinder getRelationshipFinderByName(String relationshipName)
{
return ProjectionWithAssociationEndFinder.finderMethodMap.getRelationshipFinderByName(relationshipName, this);
}
public Attribute getAttributeByName(String attributeName)
{
return ProjectionWithAssociationEndFinder.finderMethodMap.getAttributeByName(attributeName, this);
}
public com.gs.fw.common.mithra.extractor.Function getAttributeOrRelationshipSelector(String attributeName)
{
return ProjectionWithAssociationEndFinder.finderMethodMap.getAttributeOrRelationshipSelectorFunction(attributeName, this);
}
public Attribute[] getPersistentAttributes()
{
Attribute[] attributes = new Attribute[3];
attributes[0] = this.id();
attributes[1] = this.associationEndClass();
attributes[2] = this.associationEndName();
return attributes;
}
public List getRelationshipFinders()
{
if (relationshipFinders == null)
{
List relatedFinders = new ArrayList(4);
relatedFinders.add(this.associationEnd());
relatedFinders.add(this.projectionReferencePropertySubClass());
relatedFinders.add(this.projectionProjectionReferenceSubClass());
relatedFinders.add(this.projectionElementSuperClass());
relationshipFinders = Collections.unmodifiableList(relatedFinders);
}
return relationshipFinders;
}
public List getDependentRelationshipFinders()
{
if (dependentRelationshipFinders == null)
{
List dependentRelatedFinders = new ArrayList(2);
dependentRelatedFinders.add(this.projectionReferencePropertySubClass());
dependentRelatedFinders.add(this.projectionProjectionReferenceSubClass());
dependentRelationshipFinders = Collections.unmodifiableList(dependentRelatedFinders);
}
return dependentRelationshipFinders;
}
public ProjectionWithAssociationEnd findOne(com.gs.fw.finder.Operation operation)
{
return ProjectionWithAssociationEndFinder.findOne(operation, false);
}
public ProjectionWithAssociationEnd findOneBypassCache(com.gs.fw.finder.Operation operation)
{
return ProjectionWithAssociationEndFinder.findOne(operation, true);
}
public MithraList extends ProjectionWithAssociationEnd> findMany(com.gs.fw.finder.Operation operation)
{
return new ProjectionWithAssociationEndList((Operation) operation);
}
public MithraList extends ProjectionWithAssociationEnd> findManyBypassCache(com.gs.fw.finder.Operation operation)
{
ProjectionWithAssociationEndList result = (ProjectionWithAssociationEndList) this.findMany(operation);
result.setBypassCache(true);
return result;
}
public MithraList extends ProjectionWithAssociationEnd> constructEmptyList()
{
return new ProjectionWithAssociationEndList();
}
public int getSerialVersionId()
{
return -2079483365;
}
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(ProjectionWithAssociationEndFinder.id(), this.mapper, this.zGetValueSelector());
result.zSetOwningRelationship("projectionElementSuperClass");
result.zSetOwningReverseRelationship("klass.model.meta.domain", "ProjectionElement", "projectionWithAssociationEndSubClass");
this.id = result;
}
return result;
}
public StringAttribute associationEndClass()
{
StringAttribute result = this.associationEndClass;
if (result == null)
{
result = mapper == null ? SingleColumnStringAttribute.generate("\"ASSOCIATION_END_CLASS\"","","associationEndClass",BUSINESS_CLASS_NAME_WITH_DOTS,IMPL_CLASS_NAME_WITH_SLASHES,false,false,this,null,true,false,-1,-1,-1,256,false, false) :
new MappedStringAttribute(ProjectionWithAssociationEndFinder.associationEndClass(), this.mapper, this.zGetValueSelector());
result.zSetOwningRelationship("associationEnd");
result.zSetOwningReverseRelationship("klass.model.meta.domain", "AssociationEnd", "projectionsWithAssociationEnd");
this.associationEndClass = result;
}
return result;
}
public StringAttribute associationEndName()
{
StringAttribute result = this.associationEndName;
if (result == null)
{
result = mapper == null ? SingleColumnStringAttribute.generate("\"ASSOCIATION_END_NAME\"","","associationEndName",BUSINESS_CLASS_NAME_WITH_DOTS,IMPL_CLASS_NAME_WITH_SLASHES,false,false,this,null,true,false,-1,-1,-1,256,false, false) :
new MappedStringAttribute(ProjectionWithAssociationEndFinder.associationEndName(), this.mapper, this.zGetValueSelector());
result.zSetOwningRelationship("associationEnd");
result.zSetOwningReverseRelationship("klass.model.meta.domain", "AssociationEnd", "projectionsWithAssociationEnd");
this.associationEndName = result;
}
return result;
}
public AssociationEndFinder.AssociationEndSingleFinderForRelatedClasses associationEnd()
{
ProjectionWithAssociationEndAssociationEndFinderSubclass result = this.associationEnd;
if (result == null)
{
Mapper newMapper = combineWithMapperIfExists(ProjectionWithAssociationEndFinder.zGetProjectionWithAssociationEndAssociationEndReverseMapper());
newMapper.setToMany(false);
result = new ProjectionWithAssociationEndAssociationEndFinderSubclass(newMapper , this.zGetValueSelector() );
this.associationEnd = result;
}
return result;
}
public ProjectionReferencePropertyFinder.ProjectionReferencePropertySingleFinderForRelatedClasses projectionReferencePropertySubClass()
{
ProjectionWithAssociationEndProjectionReferencePropertySubClassFinderSubclass result = this.projectionReferencePropertySubClass;
if (result == null)
{
Mapper newMapper = combineWithMapperIfExists(ProjectionWithAssociationEndFinder.zGetProjectionWithAssociationEndProjectionReferencePropertySubClassReverseMapper());
newMapper.setToMany(false);
result = new ProjectionWithAssociationEndProjectionReferencePropertySubClassFinderSubclass(newMapper , this.zGetValueSelector() );
this.projectionReferencePropertySubClass = result;
}
return result;
}
public ProjectionProjectionReferenceFinder.ProjectionProjectionReferenceSingleFinderForRelatedClasses projectionProjectionReferenceSubClass()
{
ProjectionWithAssociationEndProjectionProjectionReferenceSubClassFinderSubclass result = this.projectionProjectionReferenceSubClass;
if (result == null)
{
Mapper newMapper = combineWithMapperIfExists(ProjectionWithAssociationEndFinder.zGetProjectionWithAssociationEndProjectionProjectionReferenceSubClassReverseMapper());
newMapper.setToMany(false);
result = new ProjectionWithAssociationEndProjectionProjectionReferenceSubClassFinderSubclass(newMapper , this.zGetValueSelector() );
this.projectionProjectionReferenceSubClass = result;
}
return result;
}
public ProjectionElementFinder.ProjectionElementSingleFinderForRelatedClasses projectionElementSuperClass()
{
ProjectionWithAssociationEndProjectionElementSuperClassFinderSubclass result = this.projectionElementSuperClass;
if (result == null)
{
Mapper newMapper = combineWithMapperIfExists(ProjectionElementFinder.zGetProjectionElementProjectionWithAssociationEndSubClassMapper());
newMapper.setToMany(false);
result = new ProjectionWithAssociationEndProjectionElementSuperClassFinderSubclass(newMapper , this.zGetValueSelector() );
this.projectionElementSuperClass = 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 ProjectionWithAssociationEndFinder.getPrimaryKeyAttributes();
}
public VersionAttribute getVersionAttribute()
{
return null;
}
public MithraObjectPortal getMithraObjectPortal()
{
return ProjectionWithAssociationEndFinder.getMithraObjectPortal();
}
}
public static class ProjectionWithAssociationEndCollectionFinder extends ProjectionWithAssociationEndRelatedFinder
{
public ProjectionWithAssociationEndCollectionFinder(Mapper mapper)
{
super(mapper);
}
}
public static abstract class ProjectionWithAssociationEndCollectionFinderForRelatedClasses
extends ProjectionWithAssociationEndCollectionFinder
implements DeepRelationshipAttribute
{
public ProjectionWithAssociationEndCollectionFinderForRelatedClasses(Mapper mapper)
{
super(mapper);
}
protected NormalAndListValueSelector zGetValueSelector()
{
return this;
}
}
public static class ProjectionWithAssociationEndSingleFinder extends ProjectionWithAssociationEndRelatedFinder
implements ToOneFinder
{
public ProjectionWithAssociationEndSingleFinder(Mapper mapper)
{
super(mapper);
}
public ProjectionWithAssociationEndSingleFinder()
{
super(null);
}
public Operation eq(ProjectionWithAssociationEnd 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 ProjectionWithAssociationEnd findByPrimaryKey(long id)
{
ProjectionWithAssociationEnd _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 = (ProjectionWithAssociationEnd) _related;
if (_related == null)
{
_op = this.id().eq(id);
}
if (_op != null)
{
_result = this.findOne(_op);
}
return _result;
}
}
public static abstract class ProjectionWithAssociationEndSingleFinderForRelatedClasses extends ProjectionWithAssociationEndSingleFinder implements DeepRelationshipAttribute
{
public ProjectionWithAssociationEndSingleFinderForRelatedClasses(Mapper mapper)
{
super(mapper);
}
protected NormalAndListValueSelector zGetValueSelector()
{
return this;
}
}
private static Mapper associationEndReverseMapper = null;
public static Mapper zGetProjectionWithAssociationEndAssociationEndReverseMapper()
{
if (associationEndReverseMapper == null)
{
associationEndReverseMapper = zConstructProjectionWithAssociationEndAssociationEndReverseMapper();
}
return associationEndReverseMapper;
}
private static Mapper associationEndMapper = null;
public static Mapper zGetProjectionWithAssociationEndAssociationEndMapper()
{
if (associationEndMapper == null)
{
associationEndMapper = zConstructProjectionWithAssociationEndAssociationEndMapper();
}
return associationEndMapper;
}
private static Mapper associationEndPureReverseMapper = null;
public static Mapper zGetProjectionWithAssociationEndAssociationEndPureReverseMapper()
{
if (associationEndPureReverseMapper == null)
{
associationEndPureReverseMapper = zConstructProjectionWithAssociationEndAssociationEndPureReverseMapper();
}
return associationEndPureReverseMapper;
}
private static Mapper zConstructProjectionWithAssociationEndAssociationEndPureReverseMapper()
{
InternalList associationEndMapperMapperList = new InternalList(2);
associationEndMapperMapperList.add(ProjectionWithAssociationEndFinder.zGetConstantJoin(0));
associationEndMapperMapperList.add(ProjectionWithAssociationEndFinder.zGetConstantJoin(2));
Mapper associationEndMapper = new MultiEqualityMapper(associationEndMapperMapperList);
associationEndMapper.setName("associationEnd");
return associationEndMapper;
}
private static Mapper zConstructProjectionWithAssociationEndAssociationEndReverseMapper()
{
InternalList associationEndMapperMapperList = new InternalList(2);
associationEndMapperMapperList.add(ProjectionWithAssociationEndFinder.zGetConstantJoin(0));
associationEndMapperMapperList.add(ProjectionWithAssociationEndFinder.zGetConstantJoin(2));
Mapper associationEndMapper = new MultiEqualityMapper(associationEndMapperMapperList);
associationEndMapper.setName("associationEnd");
return associationEndMapper;
}
private static Mapper zConstructProjectionWithAssociationEndAssociationEndMapper()
{
InternalList associationEndMapperMapperList = new InternalList(2);
associationEndMapperMapperList.add(ProjectionWithAssociationEndFinder.zGetConstantJoin(1));
associationEndMapperMapperList.add(ProjectionWithAssociationEndFinder.zGetConstantJoin(3));
Mapper associationEndMapper = new MultiEqualityMapper(associationEndMapperMapperList);
associationEndMapper.setName("projectionsWithAssociationEnd");
return associationEndMapper;
}
private static Mapper projectionReferencePropertySubClassReverseMapper = null;
public static Mapper zGetProjectionWithAssociationEndProjectionReferencePropertySubClassReverseMapper()
{
if (projectionReferencePropertySubClassReverseMapper == null)
{
projectionReferencePropertySubClassReverseMapper = zConstructProjectionWithAssociationEndProjectionReferencePropertySubClassReverseMapper();
}
return projectionReferencePropertySubClassReverseMapper;
}
private static Mapper projectionReferencePropertySubClassMapper = null;
public static Mapper zGetProjectionWithAssociationEndProjectionReferencePropertySubClassMapper()
{
if (projectionReferencePropertySubClassMapper == null)
{
projectionReferencePropertySubClassMapper = zConstructProjectionWithAssociationEndProjectionReferencePropertySubClassMapper();
}
return projectionReferencePropertySubClassMapper;
}
private static Mapper projectionReferencePropertySubClassPureReverseMapper = null;
public static Mapper zGetProjectionWithAssociationEndProjectionReferencePropertySubClassPureReverseMapper()
{
if (projectionReferencePropertySubClassPureReverseMapper == null)
{
projectionReferencePropertySubClassPureReverseMapper = zConstructProjectionWithAssociationEndProjectionReferencePropertySubClassPureReverseMapper();
}
return projectionReferencePropertySubClassPureReverseMapper;
}
private static Mapper zConstructProjectionWithAssociationEndProjectionReferencePropertySubClassPureReverseMapper()
{
Mapper projectionReferencePropertySubClassMapper = ProjectionWithAssociationEndFinder.zGetConstantJoin(4);
projectionReferencePropertySubClassMapper.setName("projectionReferencePropertySubClass");
return projectionReferencePropertySubClassMapper;
}
private static Mapper zConstructProjectionWithAssociationEndProjectionReferencePropertySubClassReverseMapper()
{
Mapper projectionReferencePropertySubClassMapper = ProjectionWithAssociationEndFinder.zGetConstantJoin(4);
projectionReferencePropertySubClassMapper.setName("projectionReferencePropertySubClass");
return projectionReferencePropertySubClassMapper;
}
private static Mapper zConstructProjectionWithAssociationEndProjectionReferencePropertySubClassMapper()
{
Mapper projectionReferencePropertySubClassMapper = ProjectionWithAssociationEndFinder.zGetConstantJoin(5);
projectionReferencePropertySubClassMapper.setName("projectionWithAssociationEndSuperClass");
return projectionReferencePropertySubClassMapper;
}
private static Mapper projectionProjectionReferenceSubClassReverseMapper = null;
public static Mapper zGetProjectionWithAssociationEndProjectionProjectionReferenceSubClassReverseMapper()
{
if (projectionProjectionReferenceSubClassReverseMapper == null)
{
projectionProjectionReferenceSubClassReverseMapper = zConstructProjectionWithAssociationEndProjectionProjectionReferenceSubClassReverseMapper();
}
return projectionProjectionReferenceSubClassReverseMapper;
}
private static Mapper projectionProjectionReferenceSubClassMapper = null;
public static Mapper zGetProjectionWithAssociationEndProjectionProjectionReferenceSubClassMapper()
{
if (projectionProjectionReferenceSubClassMapper == null)
{
projectionProjectionReferenceSubClassMapper = zConstructProjectionWithAssociationEndProjectionProjectionReferenceSubClassMapper();
}
return projectionProjectionReferenceSubClassMapper;
}
private static Mapper projectionProjectionReferenceSubClassPureReverseMapper = null;
public static Mapper zGetProjectionWithAssociationEndProjectionProjectionReferenceSubClassPureReverseMapper()
{
if (projectionProjectionReferenceSubClassPureReverseMapper == null)
{
projectionProjectionReferenceSubClassPureReverseMapper = zConstructProjectionWithAssociationEndProjectionProjectionReferenceSubClassPureReverseMapper();
}
return projectionProjectionReferenceSubClassPureReverseMapper;
}
private static Mapper zConstructProjectionWithAssociationEndProjectionProjectionReferenceSubClassPureReverseMapper()
{
Mapper projectionProjectionReferenceSubClassMapper = ProjectionWithAssociationEndFinder.zGetConstantJoin(6);
projectionProjectionReferenceSubClassMapper.setName("projectionProjectionReferenceSubClass");
return projectionProjectionReferenceSubClassMapper;
}
private static Mapper zConstructProjectionWithAssociationEndProjectionProjectionReferenceSubClassReverseMapper()
{
Mapper projectionProjectionReferenceSubClassMapper = ProjectionWithAssociationEndFinder.zGetConstantJoin(6);
projectionProjectionReferenceSubClassMapper.setName("projectionProjectionReferenceSubClass");
return projectionProjectionReferenceSubClassMapper;
}
private static Mapper zConstructProjectionWithAssociationEndProjectionProjectionReferenceSubClassMapper()
{
Mapper projectionProjectionReferenceSubClassMapper = ProjectionWithAssociationEndFinder.zGetConstantJoin(7);
projectionProjectionReferenceSubClassMapper.setName("projectionWithAssociationEndSuperClass");
return projectionProjectionReferenceSubClassMapper;
}
/** maps to \"PROJECTION_WITH_ASSOCIATION_END\".\"ID\" **/
public static LongAttribute id()
{
return finder.id();
}
/** maps to \"PROJECTION_WITH_ASSOCIATION_END\".\"ASSOCIATION_END_CLASS\" **/
public static StringAttribute associationEndClass()
{
return finder.associationEndClass();
}
/** maps to \"PROJECTION_WITH_ASSOCIATION_END\".\"ASSOCIATION_END_NAME\" **/
public static StringAttribute associationEndName()
{
return finder.associationEndName();
}
public static AssociationEndFinder.AssociationEndSingleFinderForRelatedClasses associationEnd()
{
return finder.associationEnd();
}
public static class ProjectionWithAssociationEndAssociationEndFinderSubclass extends AssociationEndFinder.AssociationEndSingleFinderForRelatedClasses
{
public ProjectionWithAssociationEndAssociationEndFinderSubclass(Mapper mapper, NormalAndListValueSelector parentSelector )
{
super(mapper);
this._parentSelector = (AbstractRelatedFinder) parentSelector;
this._orderBy = null;
this._type = SIMPLE_TO_ONE;
this._name = "associationEnd";
this.zSetRelationshipMultiExtractor(RelationshipMultiExtractor.withLeftAttributes(
AssociationEndFinder.owningClassName(),
AssociationEndFinder.name()).withExtractors(
ProjectionWithAssociationEndFinder.associationEndClass(),
ProjectionWithAssociationEndFinder.associationEndName()));
}
public DeepRelationshipAttribute copy()
{
return new ProjectionWithAssociationEndAssociationEndFinderSubclass(zGetMapper(), (NormalAndListValueSelector) this._parentSelector
);
}
protected AssociationEnd plainValueOf(ProjectionWithAssociationEnd _obj)
{
return _obj.getAssociationEnd();
}
protected AssociationEndList plainListValueOf(Object _obj)
{
return ((ProjectionWithAssociationEndList)_obj).getAssociationEnds();
}
}
public static ProjectionReferencePropertyFinder.ProjectionReferencePropertySingleFinderForRelatedClasses projectionReferencePropertySubClass()
{
return finder.projectionReferencePropertySubClass();
}
public static class ProjectionWithAssociationEndProjectionReferencePropertySubClassFinderSubclass extends ProjectionReferencePropertyFinder.ProjectionReferencePropertySingleFinderForRelatedClasses
{
public ProjectionWithAssociationEndProjectionReferencePropertySubClassFinderSubclass(Mapper mapper, NormalAndListValueSelector parentSelector )
{
super(mapper);
this._parentSelector = (AbstractRelatedFinder) parentSelector;
this._orderBy = null;
this._type = SIMPLE_TO_ONE;
this._name = "projectionReferencePropertySubClass";
}
public DeepRelationshipAttribute copy()
{
return new ProjectionWithAssociationEndProjectionReferencePropertySubClassFinderSubclass(zGetMapper(), (NormalAndListValueSelector) this._parentSelector
);
}
public boolean isModifiedSinceDetachment(MithraTransactionalObject _obj)
{
return ((ProjectionWithAssociationEnd) _obj).isProjectionReferencePropertySubClassModifiedSinceDetachment();
}
protected ProjectionReferenceProperty plainValueOf(ProjectionWithAssociationEnd _obj)
{
return _obj.getProjectionReferencePropertySubClass();
}
protected ProjectionReferencePropertyList plainListValueOf(Object _obj)
{
return ((ProjectionWithAssociationEndList)_obj).getProjectionReferencePropertySubClass();
}
}
public static ProjectionProjectionReferenceFinder.ProjectionProjectionReferenceSingleFinderForRelatedClasses projectionProjectionReferenceSubClass()
{
return finder.projectionProjectionReferenceSubClass();
}
public static class ProjectionWithAssociationEndProjectionProjectionReferenceSubClassFinderSubclass extends ProjectionProjectionReferenceFinder.ProjectionProjectionReferenceSingleFinderForRelatedClasses
{
public ProjectionWithAssociationEndProjectionProjectionReferenceSubClassFinderSubclass(Mapper mapper, NormalAndListValueSelector parentSelector )
{
super(mapper);
this._parentSelector = (AbstractRelatedFinder) parentSelector;
this._orderBy = null;
this._type = SIMPLE_TO_ONE;
this._name = "projectionProjectionReferenceSubClass";
}
public DeepRelationshipAttribute copy()
{
return new ProjectionWithAssociationEndProjectionProjectionReferenceSubClassFinderSubclass(zGetMapper(), (NormalAndListValueSelector) this._parentSelector
);
}
public boolean isModifiedSinceDetachment(MithraTransactionalObject _obj)
{
return ((ProjectionWithAssociationEnd) _obj).isProjectionProjectionReferenceSubClassModifiedSinceDetachment();
}
protected ProjectionProjectionReference plainValueOf(ProjectionWithAssociationEnd _obj)
{
return _obj.getProjectionProjectionReferenceSubClass();
}
protected ProjectionProjectionReferenceList plainListValueOf(Object _obj)
{
return ((ProjectionWithAssociationEndList)_obj).getProjectionProjectionReferenceSubClass();
}
}
public static ProjectionElementFinder.ProjectionElementSingleFinderForRelatedClasses projectionElementSuperClass()
{
return finder.projectionElementSuperClass();
}
public static class ProjectionWithAssociationEndProjectionElementSuperClassFinderSubclass extends ProjectionElementFinder.ProjectionElementSingleFinderForRelatedClasses
{
public ProjectionWithAssociationEndProjectionElementSuperClassFinderSubclass(Mapper mapper, NormalAndListValueSelector parentSelector )
{
super(mapper);
this._parentSelector = (AbstractRelatedFinder) parentSelector;
this._orderBy = null;
this._type = SIMPLE_TO_ONE;
this._name = "projectionElementSuperClass";
}
public DeepRelationshipAttribute copy()
{
return new ProjectionWithAssociationEndProjectionElementSuperClassFinderSubclass(zGetMapper(), (NormalAndListValueSelector) this._parentSelector
);
}
protected ProjectionElement plainValueOf(ProjectionWithAssociationEnd _obj)
{
return _obj.getProjectionElementSuperClass();
}
protected ProjectionElementList plainListValueOf(Object _obj)
{
return ((ProjectionWithAssociationEndList)_obj).getProjectionElementSuperClass();
}
}
public static Operation eq(ProjectionWithAssociationEnd other)
{
return finder.eq(other);
}
public static Operation all()
{
return new All(id());
}
public static ProjectionWithAssociationEndSingleFinder 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[]
{
associationEndClass()
, associationEndName()
}
);
}
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[]
{
AssociationEndFinder.getFinderInstance(),ProjectionElementFinder.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[]
{
AssociationEndFinder.getFinderInstance(),ProjectionElementFinder.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.ProjectionWithAssociationEnd");
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