klass.model.meta.domain.ProjectionElementFinder 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 ProjectionElementFinder
{
private static final String IMPL_CLASS_NAME_WITH_SLASHES = "klass/model/meta/domain/ProjectionElement";
private static final String BUSINESS_CLASS_NAME_WITH_DOTS = "klass.model.meta.domain.ProjectionElement";
private static final FinderMethodMap finderMethodMap;
private static boolean isFullCache;
private static boolean isOffHeap;
private static volatile MithraObjectPortal objectPortal = new UninitializedPortal("klass.model.meta.domain.ProjectionElement");
private static final ProjectionElementSingleFinder finder = new ProjectionElementSingleFinder();
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(ProjectionElementFinder.ProjectionElementRelatedFinder.class);
finderMethodMap.addNormalAttributeName("id");
finderMethodMap.addNormalAttributeName("parentId");
finderMethodMap.addNormalAttributeName("ordinal");
finderMethodMap.addNormalAttributeName("name");
finderMethodMap.addRelationshipName("children");
finderMethodMap.addRelationshipName("rootProjectionSubClass");
finderMethodMap.addRelationshipName("projectionWithAssociationEndSubClass");
finderMethodMap.addRelationshipName("projectionDataTypePropertySubClass");
finderMethodMap.addRelationshipName("parent");
}
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] = ProjectionElementFinder.id().constructEqualityMapper(ProjectionElementFinder.parentId());
result[1] = ProjectionElementFinder.parentId().constructEqualityMapper(ProjectionElementFinder.id());
result[2] = ProjectionElementFinder.id().constructEqualityMapper(RootProjectionFinder.id());
result[3] = RootProjectionFinder.id().constructEqualityMapper(ProjectionElementFinder.id());
result[4] = ProjectionElementFinder.id().constructEqualityMapper(ProjectionWithAssociationEndFinder.id());
result[5] = ProjectionWithAssociationEndFinder.id().constructEqualityMapper(ProjectionElementFinder.id());
result[6] = ProjectionElementFinder.id().constructEqualityMapper(ProjectionDataTypePropertyFinder.id());
result[7] = ProjectionDataTypePropertyFinder.id().constructEqualityMapper(ProjectionElementFinder.id());
constantJoinPool = result;
}
return constantJoinPool;
}
public static SourceAttributeType getSourceAttributeType()
{
return null;
}
public static ProjectionElement findOne(com.gs.fw.finder.Operation operation)
{
return findOne(operation, false);
}
public static ProjectionElement findOneBypassCache(com.gs.fw.finder.Operation operation)
{
return findOne(operation, true);
}
public static ProjectionElementList findMany(com.gs.fw.finder.Operation operation)
{
return (ProjectionElementList) finder.findMany(operation);
}
public static ProjectionElementList findManyBypassCache(com.gs.fw.finder.Operation operation)
{
return (ProjectionElementList) finder.findManyBypassCache(operation);
}
private static ProjectionElement findOne(com.gs.fw.finder.Operation operation, boolean bypassCache)
{
List found = getMithraObjectPortal().find((Operation) operation, bypassCache);
return (ProjectionElement) FinderUtils.findOne(found);
}
public static ProjectionElement 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;
ProjectionElementData _castedTargetData = (ProjectionElementData) _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 ProjectionElement zFindOneForRelationship(Operation operation)
{
List found = getMithraObjectPortal().findAsCachedQuery(operation, null, false, true, 0).getResult();
return (ProjectionElement) 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 ProjectionElementRelatedFinder extends AbstractRelatedFinder
implements NamedElementFinder
{
private List relationshipFinders;
private List dependentRelationshipFinders;
private LongAttribute id;
private LongAttribute parentId;
private IntegerAttribute ordinal;
private StringAttribute name;
private ProjectionElementChildrenFinderSubclass children;
private ProjectionElementRootProjectionSubClassFinderSubclass rootProjectionSubClass;
private ProjectionElementProjectionWithAssociationEndSubClassFinderSubclass projectionWithAssociationEndSubClass;
private ProjectionElementProjectionDataTypePropertySubClassFinderSubclass projectionDataTypePropertySubClass;
private ProjectionElementParentFinderSubclass parent;
public ProjectionElementRelatedFinder()
{
super();
}
public ProjectionElementRelatedFinder(Mapper mapper)
{
super(mapper);
}
public String getFinderClassName()
{
return "klass.model.meta.domain.ProjectionElementFinder";
}
public RelatedFinder getRelationshipFinderByName(String relationshipName)
{
return ProjectionElementFinder.finderMethodMap.getRelationshipFinderByName(relationshipName, this);
}
public Attribute getAttributeByName(String attributeName)
{
return ProjectionElementFinder.finderMethodMap.getAttributeByName(attributeName, this);
}
public com.gs.fw.common.mithra.extractor.Function getAttributeOrRelationshipSelector(String attributeName)
{
return ProjectionElementFinder.finderMethodMap.getAttributeOrRelationshipSelectorFunction(attributeName, this);
}
public Attribute[] getPersistentAttributes()
{
Attribute[] attributes = new Attribute[4];
attributes[0] = this.id();
attributes[1] = this.parentId();
attributes[2] = this.ordinal();
attributes[3] = this.name();
return attributes;
}
public List getRelationshipFinders()
{
if (relationshipFinders == null)
{
List relatedFinders = new ArrayList(5);
relatedFinders.add(this.children());
relatedFinders.add(this.rootProjectionSubClass());
relatedFinders.add(this.projectionWithAssociationEndSubClass());
relatedFinders.add(this.projectionDataTypePropertySubClass());
relatedFinders.add(this.parent());
relationshipFinders = Collections.unmodifiableList(relatedFinders);
}
return relationshipFinders;
}
public List getDependentRelationshipFinders()
{
if (dependentRelationshipFinders == null)
{
List dependentRelatedFinders = new ArrayList(3);
dependentRelatedFinders.add(this.rootProjectionSubClass());
dependentRelatedFinders.add(this.projectionWithAssociationEndSubClass());
dependentRelatedFinders.add(this.projectionDataTypePropertySubClass());
dependentRelationshipFinders = Collections.unmodifiableList(dependentRelatedFinders);
}
return dependentRelationshipFinders;
}
public ProjectionElement findOne(com.gs.fw.finder.Operation operation)
{
return ProjectionElementFinder.findOne(operation, false);
}
public ProjectionElement findOneBypassCache(com.gs.fw.finder.Operation operation)
{
return ProjectionElementFinder.findOne(operation, true);
}
public MithraList extends ProjectionElement> findMany(com.gs.fw.finder.Operation operation)
{
return new ProjectionElementList((Operation) operation);
}
public MithraList extends ProjectionElement> findManyBypassCache(com.gs.fw.finder.Operation operation)
{
ProjectionElementList result = (ProjectionElementList) this.findMany(operation);
result.setBypassCache(true);
return result;
}
public MithraList extends ProjectionElement> constructEmptyList()
{
return new ProjectionElementList();
}
public int getSerialVersionId()
{
return -1360775308;
}
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(ProjectionElementFinder.id(), this.mapper, this.zGetValueSelector());
this.id = result;
}
return result;
}
public LongAttribute parentId()
{
LongAttribute result = this.parentId;
if (result == null)
{
result = mapper == null ? SingleColumnLongAttribute.generate("\"PARENT_ID\"","","parentId",BUSINESS_CLASS_NAME_WITH_DOTS,IMPL_CLASS_NAME_WITH_SLASHES,true,false,this,null,true,false,false,-1,-1,-1,false, false) :
new MappedLongAttribute(ProjectionElementFinder.parentId(), this.mapper, this.zGetValueSelector());
result.zSetOwningRelationship("parent");
result.zSetOwningReverseRelationship("klass.model.meta.domain", "ProjectionElement", "children");
this.parentId = result;
}
return result;
}
public IntegerAttribute ordinal()
{
IntegerAttribute result = this.ordinal;
if (result == null)
{
result = mapper == null ? SingleColumnIntegerAttribute.generate("\"ORDINAL\"","","ordinal",BUSINESS_CLASS_NAME_WITH_DOTS,IMPL_CLASS_NAME_WITH_SLASHES,false,false,this,null,true,false,false,-1,-1,-1,false, false) :
new MappedIntegerAttribute(ProjectionElementFinder.ordinal(), this.mapper, this.zGetValueSelector());
this.ordinal = result;
}
return result;
}
public StringAttribute name()
{
StringAttribute result = this.name;
if (result == null)
{
result = mapper == null ? SingleColumnStringAttribute.generate("\"NAME\"","","name",BUSINESS_CLASS_NAME_WITH_DOTS,IMPL_CLASS_NAME_WITH_SLASHES,false,false,this,null,true,false,-1,-1,-1,256,false, false) :
new MappedStringAttribute(ProjectionElementFinder.name(), this.mapper, this.zGetValueSelector());
this.name = result;
}
return result;
}
public ProjectionElementFinder.ProjectionElementCollectionFinderForRelatedClasses children()
{
ProjectionElementChildrenFinderSubclass result = this.children;
if (result == null)
{
Mapper newMapper = combineWithMapperIfExists(ProjectionElementFinder.zGetProjectionElementChildrenReverseMapper());
newMapper.setToMany(true);
result = new ProjectionElementChildrenFinderSubclass(newMapper , this.zGetValueSelector() );
this.children = result;
}
return result;
}
public RootProjectionFinder.RootProjectionSingleFinderForRelatedClasses rootProjectionSubClass()
{
ProjectionElementRootProjectionSubClassFinderSubclass result = this.rootProjectionSubClass;
if (result == null)
{
Mapper newMapper = combineWithMapperIfExists(ProjectionElementFinder.zGetProjectionElementRootProjectionSubClassReverseMapper());
newMapper.setToMany(false);
result = new ProjectionElementRootProjectionSubClassFinderSubclass(newMapper , this.zGetValueSelector() );
this.rootProjectionSubClass = result;
}
return result;
}
public ProjectionWithAssociationEndFinder.ProjectionWithAssociationEndSingleFinderForRelatedClasses projectionWithAssociationEndSubClass()
{
ProjectionElementProjectionWithAssociationEndSubClassFinderSubclass result = this.projectionWithAssociationEndSubClass;
if (result == null)
{
Mapper newMapper = combineWithMapperIfExists(ProjectionElementFinder.zGetProjectionElementProjectionWithAssociationEndSubClassReverseMapper());
newMapper.setToMany(false);
result = new ProjectionElementProjectionWithAssociationEndSubClassFinderSubclass(newMapper , this.zGetValueSelector() );
this.projectionWithAssociationEndSubClass = result;
}
return result;
}
public ProjectionDataTypePropertyFinder.ProjectionDataTypePropertySingleFinderForRelatedClasses projectionDataTypePropertySubClass()
{
ProjectionElementProjectionDataTypePropertySubClassFinderSubclass result = this.projectionDataTypePropertySubClass;
if (result == null)
{
Mapper newMapper = combineWithMapperIfExists(ProjectionElementFinder.zGetProjectionElementProjectionDataTypePropertySubClassReverseMapper());
newMapper.setToMany(false);
result = new ProjectionElementProjectionDataTypePropertySubClassFinderSubclass(newMapper , this.zGetValueSelector() );
this.projectionDataTypePropertySubClass = result;
}
return result;
}
public ProjectionElementFinder.ProjectionElementSingleFinderForRelatedClasses parent()
{
ProjectionElementParentFinderSubclass result = this.parent;
if (result == null)
{
Mapper newMapper = combineWithMapperIfExists(ProjectionElementFinder.zGetProjectionElementChildrenMapper());
newMapper.setToMany(false);
result = new ProjectionElementParentFinderSubclass(newMapper , this.zGetValueSelector() );
this.parent = 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 ProjectionElementFinder.getPrimaryKeyAttributes();
}
public VersionAttribute getVersionAttribute()
{
return null;
}
public MithraObjectPortal getMithraObjectPortal()
{
return ProjectionElementFinder.getMithraObjectPortal();
}
}
public static class ProjectionElementCollectionFinder extends ProjectionElementRelatedFinder
{
public ProjectionElementCollectionFinder(Mapper mapper)
{
super(mapper);
}
}
public static abstract class ProjectionElementCollectionFinderForRelatedClasses
extends ProjectionElementCollectionFinder
implements DeepRelationshipAttribute
{
public ProjectionElementCollectionFinderForRelatedClasses(Mapper mapper)
{
super(mapper);
}
protected NormalAndListValueSelector zGetValueSelector()
{
return this;
}
}
public static class ProjectionElementSingleFinder extends ProjectionElementRelatedFinder
implements ToOneFinder
{
public ProjectionElementSingleFinder(Mapper mapper)
{
super(mapper);
}
public ProjectionElementSingleFinder()
{
super(null);
}
public Operation eq(ProjectionElement 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 ProjectionElement findByPrimaryKey(long id)
{
ProjectionElement _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 = (ProjectionElement) _related;
if (_related == null)
{
_op = this.id().eq(id);
}
if (_op != null)
{
_result = this.findOne(_op);
}
return _result;
}
}
public static abstract class ProjectionElementSingleFinderForRelatedClasses extends ProjectionElementSingleFinder implements DeepRelationshipAttribute
{
public ProjectionElementSingleFinderForRelatedClasses(Mapper mapper)
{
super(mapper);
}
protected NormalAndListValueSelector zGetValueSelector()
{
return this;
}
}
private static Mapper childrenReverseMapper = null;
public static Mapper zGetProjectionElementChildrenReverseMapper()
{
if (childrenReverseMapper == null)
{
childrenReverseMapper = zConstructProjectionElementChildrenReverseMapper();
}
return childrenReverseMapper;
}
private static Mapper childrenMapper = null;
public static Mapper zGetProjectionElementChildrenMapper()
{
if (childrenMapper == null)
{
childrenMapper = zConstructProjectionElementChildrenMapper();
}
return childrenMapper;
}
private static Mapper childrenPureReverseMapper = null;
public static Mapper zGetProjectionElementChildrenPureReverseMapper()
{
if (childrenPureReverseMapper == null)
{
childrenPureReverseMapper = zConstructProjectionElementChildrenPureReverseMapper();
}
return childrenPureReverseMapper;
}
private static Mapper zConstructProjectionElementChildrenPureReverseMapper()
{
Mapper childrenMapper = ProjectionElementFinder.zGetConstantJoin(0);
childrenMapper.setName("children");
return childrenMapper;
}
private static Mapper zConstructProjectionElementChildrenReverseMapper()
{
Mapper childrenMapper = ProjectionElementFinder.zGetConstantJoin(0);
childrenMapper.setName("children");
return childrenMapper;
}
private static Mapper zConstructProjectionElementChildrenMapper()
{
Mapper childrenMapper = ProjectionElementFinder.zGetConstantJoin(1);
childrenMapper.setName("parent");
return childrenMapper;
}
private static Mapper rootProjectionSubClassReverseMapper = null;
public static Mapper zGetProjectionElementRootProjectionSubClassReverseMapper()
{
if (rootProjectionSubClassReverseMapper == null)
{
rootProjectionSubClassReverseMapper = zConstructProjectionElementRootProjectionSubClassReverseMapper();
}
return rootProjectionSubClassReverseMapper;
}
private static Mapper rootProjectionSubClassMapper = null;
public static Mapper zGetProjectionElementRootProjectionSubClassMapper()
{
if (rootProjectionSubClassMapper == null)
{
rootProjectionSubClassMapper = zConstructProjectionElementRootProjectionSubClassMapper();
}
return rootProjectionSubClassMapper;
}
private static Mapper rootProjectionSubClassPureReverseMapper = null;
public static Mapper zGetProjectionElementRootProjectionSubClassPureReverseMapper()
{
if (rootProjectionSubClassPureReverseMapper == null)
{
rootProjectionSubClassPureReverseMapper = zConstructProjectionElementRootProjectionSubClassPureReverseMapper();
}
return rootProjectionSubClassPureReverseMapper;
}
private static Mapper zConstructProjectionElementRootProjectionSubClassPureReverseMapper()
{
Mapper rootProjectionSubClassMapper = ProjectionElementFinder.zGetConstantJoin(2);
rootProjectionSubClassMapper.setName("rootProjectionSubClass");
return rootProjectionSubClassMapper;
}
private static Mapper zConstructProjectionElementRootProjectionSubClassReverseMapper()
{
Mapper rootProjectionSubClassMapper = ProjectionElementFinder.zGetConstantJoin(2);
rootProjectionSubClassMapper.setName("rootProjectionSubClass");
return rootProjectionSubClassMapper;
}
private static Mapper zConstructProjectionElementRootProjectionSubClassMapper()
{
Mapper rootProjectionSubClassMapper = ProjectionElementFinder.zGetConstantJoin(3);
rootProjectionSubClassMapper.setName("projectionElementSuperClass");
return rootProjectionSubClassMapper;
}
private static Mapper projectionWithAssociationEndSubClassReverseMapper = null;
public static Mapper zGetProjectionElementProjectionWithAssociationEndSubClassReverseMapper()
{
if (projectionWithAssociationEndSubClassReverseMapper == null)
{
projectionWithAssociationEndSubClassReverseMapper = zConstructProjectionElementProjectionWithAssociationEndSubClassReverseMapper();
}
return projectionWithAssociationEndSubClassReverseMapper;
}
private static Mapper projectionWithAssociationEndSubClassMapper = null;
public static Mapper zGetProjectionElementProjectionWithAssociationEndSubClassMapper()
{
if (projectionWithAssociationEndSubClassMapper == null)
{
projectionWithAssociationEndSubClassMapper = zConstructProjectionElementProjectionWithAssociationEndSubClassMapper();
}
return projectionWithAssociationEndSubClassMapper;
}
private static Mapper projectionWithAssociationEndSubClassPureReverseMapper = null;
public static Mapper zGetProjectionElementProjectionWithAssociationEndSubClassPureReverseMapper()
{
if (projectionWithAssociationEndSubClassPureReverseMapper == null)
{
projectionWithAssociationEndSubClassPureReverseMapper = zConstructProjectionElementProjectionWithAssociationEndSubClassPureReverseMapper();
}
return projectionWithAssociationEndSubClassPureReverseMapper;
}
private static Mapper zConstructProjectionElementProjectionWithAssociationEndSubClassPureReverseMapper()
{
Mapper projectionWithAssociationEndSubClassMapper = ProjectionElementFinder.zGetConstantJoin(4);
projectionWithAssociationEndSubClassMapper.setName("projectionWithAssociationEndSubClass");
return projectionWithAssociationEndSubClassMapper;
}
private static Mapper zConstructProjectionElementProjectionWithAssociationEndSubClassReverseMapper()
{
Mapper projectionWithAssociationEndSubClassMapper = ProjectionElementFinder.zGetConstantJoin(4);
projectionWithAssociationEndSubClassMapper.setName("projectionWithAssociationEndSubClass");
return projectionWithAssociationEndSubClassMapper;
}
private static Mapper zConstructProjectionElementProjectionWithAssociationEndSubClassMapper()
{
Mapper projectionWithAssociationEndSubClassMapper = ProjectionElementFinder.zGetConstantJoin(5);
projectionWithAssociationEndSubClassMapper.setName("projectionElementSuperClass");
return projectionWithAssociationEndSubClassMapper;
}
private static Mapper projectionDataTypePropertySubClassReverseMapper = null;
public static Mapper zGetProjectionElementProjectionDataTypePropertySubClassReverseMapper()
{
if (projectionDataTypePropertySubClassReverseMapper == null)
{
projectionDataTypePropertySubClassReverseMapper = zConstructProjectionElementProjectionDataTypePropertySubClassReverseMapper();
}
return projectionDataTypePropertySubClassReverseMapper;
}
private static Mapper projectionDataTypePropertySubClassMapper = null;
public static Mapper zGetProjectionElementProjectionDataTypePropertySubClassMapper()
{
if (projectionDataTypePropertySubClassMapper == null)
{
projectionDataTypePropertySubClassMapper = zConstructProjectionElementProjectionDataTypePropertySubClassMapper();
}
return projectionDataTypePropertySubClassMapper;
}
private static Mapper projectionDataTypePropertySubClassPureReverseMapper = null;
public static Mapper zGetProjectionElementProjectionDataTypePropertySubClassPureReverseMapper()
{
if (projectionDataTypePropertySubClassPureReverseMapper == null)
{
projectionDataTypePropertySubClassPureReverseMapper = zConstructProjectionElementProjectionDataTypePropertySubClassPureReverseMapper();
}
return projectionDataTypePropertySubClassPureReverseMapper;
}
private static Mapper zConstructProjectionElementProjectionDataTypePropertySubClassPureReverseMapper()
{
Mapper projectionDataTypePropertySubClassMapper = ProjectionElementFinder.zGetConstantJoin(6);
projectionDataTypePropertySubClassMapper.setName("projectionDataTypePropertySubClass");
return projectionDataTypePropertySubClassMapper;
}
private static Mapper zConstructProjectionElementProjectionDataTypePropertySubClassReverseMapper()
{
Mapper projectionDataTypePropertySubClassMapper = ProjectionElementFinder.zGetConstantJoin(6);
projectionDataTypePropertySubClassMapper.setName("projectionDataTypePropertySubClass");
return projectionDataTypePropertySubClassMapper;
}
private static Mapper zConstructProjectionElementProjectionDataTypePropertySubClassMapper()
{
Mapper projectionDataTypePropertySubClassMapper = ProjectionElementFinder.zGetConstantJoin(7);
projectionDataTypePropertySubClassMapper.setName("projectionElementSuperClass");
return projectionDataTypePropertySubClassMapper;
}
/** maps to \"PROJECTION_ELEMENT\".\"ID\" **/
public static LongAttribute id()
{
return finder.id();
}
/** maps to \"PROJECTION_ELEMENT\".\"PARENT_ID\" **/
public static LongAttribute parentId()
{
return finder.parentId();
}
/** maps to \"PROJECTION_ELEMENT\".\"ORDINAL\" **/
public static IntegerAttribute ordinal()
{
return finder.ordinal();
}
/** maps to \"PROJECTION_ELEMENT\".\"NAME\" **/
public static StringAttribute name()
{
return finder.name();
}
public static ProjectionElementFinder.ProjectionElementCollectionFinderForRelatedClasses children()
{
return finder.children();
}
public static class ProjectionElementChildrenFinderSubclass extends ProjectionElementFinder.ProjectionElementCollectionFinderForRelatedClasses
{
public ProjectionElementChildrenFinderSubclass(Mapper mapper, NormalAndListValueSelector parentSelector )
{
super(mapper);
this._parentSelector = (AbstractRelatedFinder) parentSelector;
this._orderBy = ProjectionElementFinder.ordinal().ascendingOrderBy();
this._type = SIMPLE_TO_MANY;
this._name = "children";
}
public DeepRelationshipAttribute copy()
{
return new ProjectionElementChildrenFinderSubclass(zGetMapper(), (NormalAndListValueSelector) this._parentSelector
);
}
protected ProjectionElementList plainValueOf(ProjectionElement _obj)
{
return _obj.getChildren();
}
protected ProjectionElementList plainListValueOf(Object _obj)
{
return ((ProjectionElementList)_obj).getChildren();
}
}
public static RootProjectionFinder.RootProjectionSingleFinderForRelatedClasses rootProjectionSubClass()
{
return finder.rootProjectionSubClass();
}
public static class ProjectionElementRootProjectionSubClassFinderSubclass extends RootProjectionFinder.RootProjectionSingleFinderForRelatedClasses
{
public ProjectionElementRootProjectionSubClassFinderSubclass(Mapper mapper, NormalAndListValueSelector parentSelector )
{
super(mapper);
this._parentSelector = (AbstractRelatedFinder) parentSelector;
this._orderBy = null;
this._type = SIMPLE_TO_ONE;
this._name = "rootProjectionSubClass";
}
public DeepRelationshipAttribute copy()
{
return new ProjectionElementRootProjectionSubClassFinderSubclass(zGetMapper(), (NormalAndListValueSelector) this._parentSelector
);
}
public boolean isModifiedSinceDetachment(MithraTransactionalObject _obj)
{
return ((ProjectionElement) _obj).isRootProjectionSubClassModifiedSinceDetachment();
}
protected RootProjection plainValueOf(ProjectionElement _obj)
{
return _obj.getRootProjectionSubClass();
}
protected RootProjectionList plainListValueOf(Object _obj)
{
return ((ProjectionElementList)_obj).getRootProjectionSubClass();
}
}
public static ProjectionWithAssociationEndFinder.ProjectionWithAssociationEndSingleFinderForRelatedClasses projectionWithAssociationEndSubClass()
{
return finder.projectionWithAssociationEndSubClass();
}
public static class ProjectionElementProjectionWithAssociationEndSubClassFinderSubclass extends ProjectionWithAssociationEndFinder.ProjectionWithAssociationEndSingleFinderForRelatedClasses
{
public ProjectionElementProjectionWithAssociationEndSubClassFinderSubclass(Mapper mapper, NormalAndListValueSelector parentSelector )
{
super(mapper);
this._parentSelector = (AbstractRelatedFinder) parentSelector;
this._orderBy = null;
this._type = SIMPLE_TO_ONE;
this._name = "projectionWithAssociationEndSubClass";
}
public DeepRelationshipAttribute copy()
{
return new ProjectionElementProjectionWithAssociationEndSubClassFinderSubclass(zGetMapper(), (NormalAndListValueSelector) this._parentSelector
);
}
public boolean isModifiedSinceDetachment(MithraTransactionalObject _obj)
{
return ((ProjectionElement) _obj).isProjectionWithAssociationEndSubClassModifiedSinceDetachment();
}
protected ProjectionWithAssociationEnd plainValueOf(ProjectionElement _obj)
{
return _obj.getProjectionWithAssociationEndSubClass();
}
protected ProjectionWithAssociationEndList plainListValueOf(Object _obj)
{
return ((ProjectionElementList)_obj).getProjectionWithAssociationEndSubClass();
}
}
public static ProjectionDataTypePropertyFinder.ProjectionDataTypePropertySingleFinderForRelatedClasses projectionDataTypePropertySubClass()
{
return finder.projectionDataTypePropertySubClass();
}
public static class ProjectionElementProjectionDataTypePropertySubClassFinderSubclass extends ProjectionDataTypePropertyFinder.ProjectionDataTypePropertySingleFinderForRelatedClasses
{
public ProjectionElementProjectionDataTypePropertySubClassFinderSubclass(Mapper mapper, NormalAndListValueSelector parentSelector )
{
super(mapper);
this._parentSelector = (AbstractRelatedFinder) parentSelector;
this._orderBy = null;
this._type = SIMPLE_TO_ONE;
this._name = "projectionDataTypePropertySubClass";
}
public DeepRelationshipAttribute copy()
{
return new ProjectionElementProjectionDataTypePropertySubClassFinderSubclass(zGetMapper(), (NormalAndListValueSelector) this._parentSelector
);
}
public boolean isModifiedSinceDetachment(MithraTransactionalObject _obj)
{
return ((ProjectionElement) _obj).isProjectionDataTypePropertySubClassModifiedSinceDetachment();
}
protected ProjectionDataTypeProperty plainValueOf(ProjectionElement _obj)
{
return _obj.getProjectionDataTypePropertySubClass();
}
protected ProjectionDataTypePropertyList plainListValueOf(Object _obj)
{
return ((ProjectionElementList)_obj).getProjectionDataTypePropertySubClass();
}
}
public static ProjectionElementFinder.ProjectionElementSingleFinderForRelatedClasses parent()
{
return finder.parent();
}
public static class ProjectionElementParentFinderSubclass extends ProjectionElementFinder.ProjectionElementSingleFinderForRelatedClasses
{
public ProjectionElementParentFinderSubclass(Mapper mapper, NormalAndListValueSelector parentSelector )
{
super(mapper);
this._parentSelector = (AbstractRelatedFinder) parentSelector;
this._orderBy = null;
this._type = SIMPLE_TO_ONE;
this._name = "parent";
}
public DeepRelationshipAttribute copy()
{
return new ProjectionElementParentFinderSubclass(zGetMapper(), (NormalAndListValueSelector) this._parentSelector
);
}
protected ProjectionElement plainValueOf(ProjectionElement _obj)
{
return _obj.getParent();
}
protected ProjectionElementList plainListValueOf(Object _obj)
{
return ((ProjectionElementList)_obj).getParents();
}
}
public static Operation eq(ProjectionElement other)
{
return finder.eq(other);
}
public static Operation all()
{
return new All(id());
}
public static ProjectionElementSingleFinder 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[]
{
parentId()
}
);
}
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[]
{
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[]
{
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.ProjectionElement");
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