klass.model.meta.domain.NamedProjectionFinder 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 NamedProjectionFinder
{
private static final String IMPL_CLASS_NAME_WITH_SLASHES = "klass/model/meta/domain/NamedProjection";
private static final String BUSINESS_CLASS_NAME_WITH_DOTS = "klass.model.meta.domain.NamedProjection";
private static final FinderMethodMap finderMethodMap;
private static boolean isFullCache;
private static boolean isOffHeap;
private static volatile MithraObjectPortal objectPortal = new UninitializedPortal("klass.model.meta.domain.NamedProjection");
private static final NamedProjectionSingleFinder finder = new NamedProjectionSingleFinder();
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(NamedProjectionFinder.NamedProjectionRelatedFinder.class);
finderMethodMap.addNormalAttributeName("name");
finderMethodMap.addNormalAttributeName("projectionId");
finderMethodMap.addRelationshipName("rootProjection");
finderMethodMap.addRelationshipName("packageableElementSuperClass");
finderMethodMap.addRelationshipName("projectionProjectionReferences");
finderMethodMap.addRelationshipName("services");
}
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[2];
result[0] = NamedProjectionFinder.projectionId().constructEqualityMapper(RootProjectionFinder.id());
result[1] = RootProjectionFinder.id().constructEqualityMapper(NamedProjectionFinder.projectionId());
constantJoinPool = result;
}
return constantJoinPool;
}
public static SourceAttributeType getSourceAttributeType()
{
return null;
}
public static NamedProjection findOne(com.gs.fw.finder.Operation operation)
{
return findOne(operation, false);
}
public static NamedProjection findOneBypassCache(com.gs.fw.finder.Operation operation)
{
return findOne(operation, true);
}
public static NamedProjectionList findMany(com.gs.fw.finder.Operation operation)
{
return (NamedProjectionList) finder.findMany(operation);
}
public static NamedProjectionList findManyBypassCache(com.gs.fw.finder.Operation operation)
{
return (NamedProjectionList) finder.findManyBypassCache(operation);
}
private static NamedProjection findOne(com.gs.fw.finder.Operation operation, boolean bypassCache)
{
List found = getMithraObjectPortal().find((Operation) operation, bypassCache);
return (NamedProjection) FinderUtils.findOne(found);
}
public static NamedProjection findByPrimaryKey(String name)
{
return finder.findByPrimaryKey(name);
}
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;
NamedProjectionData _castedTargetData = (NamedProjectionData) _targetData;
if (_bean.getO1AsString().equals(_castedTargetData.getName()))
{
return true;
}
return false;
}
public int computeHashCodeFromRelated(Object _srcObject, Object _srcData)
{
I3O3L3 _bean = (I3O3L3) _srcData;
return HashUtil.hash(_bean.getO1AsString());
}
public int computeOffHeapHashCodeFromRelated(Object _srcObject, Object _srcData)
{
I3O3L3 _bean = (I3O3L3) _srcData;
return HashUtil.offHeapHash(_bean.getO1AsString());
}
}
public static NamedProjection zFindOneForRelationship(Operation operation)
{
List found = getMithraObjectPortal().findAsCachedQuery(operation, null, false, true, 0).getResult();
return (NamedProjection) 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 NamedProjectionRelatedFinder extends AbstractRelatedFinder
{
private List relationshipFinders;
private List dependentRelationshipFinders;
private StringAttribute name;
private LongAttribute projectionId;
private NamedProjectionRootProjectionFinderSubclass rootProjection;
private NamedProjectionPackageableElementSuperClassFinderSubclass packageableElementSuperClass;
private NamedProjectionProjectionProjectionReferencesFinderSubclass projectionProjectionReferences;
private NamedProjectionServicesFinderSubclass services;
public NamedProjectionRelatedFinder()
{
super();
}
public NamedProjectionRelatedFinder(Mapper mapper)
{
super(mapper);
}
public String getFinderClassName()
{
return "klass.model.meta.domain.NamedProjectionFinder";
}
public RelatedFinder getRelationshipFinderByName(String relationshipName)
{
return NamedProjectionFinder.finderMethodMap.getRelationshipFinderByName(relationshipName, this);
}
public Attribute getAttributeByName(String attributeName)
{
return NamedProjectionFinder.finderMethodMap.getAttributeByName(attributeName, this);
}
public com.gs.fw.common.mithra.extractor.Function getAttributeOrRelationshipSelector(String attributeName)
{
return NamedProjectionFinder.finderMethodMap.getAttributeOrRelationshipSelectorFunction(attributeName, this);
}
public Attribute[] getPersistentAttributes()
{
Attribute[] attributes = new Attribute[2];
attributes[0] = this.name();
attributes[1] = this.projectionId();
return attributes;
}
public List getRelationshipFinders()
{
if (relationshipFinders == null)
{
List relatedFinders = new ArrayList(4);
relatedFinders.add(this.rootProjection());
relatedFinders.add(this.packageableElementSuperClass());
relatedFinders.add(this.projectionProjectionReferences());
relatedFinders.add(this.services());
relationshipFinders = Collections.unmodifiableList(relatedFinders);
}
return relationshipFinders;
}
public List getDependentRelationshipFinders()
{
if (dependentRelationshipFinders == null)
{
List dependentRelatedFinders = new ArrayList(0);
dependentRelationshipFinders = Collections.unmodifiableList(dependentRelatedFinders);
}
return dependentRelationshipFinders;
}
public NamedProjection findOne(com.gs.fw.finder.Operation operation)
{
return NamedProjectionFinder.findOne(operation, false);
}
public NamedProjection findOneBypassCache(com.gs.fw.finder.Operation operation)
{
return NamedProjectionFinder.findOne(operation, true);
}
public MithraList extends NamedProjection> findMany(com.gs.fw.finder.Operation operation)
{
return new NamedProjectionList((Operation) operation);
}
public MithraList extends NamedProjection> findManyBypassCache(com.gs.fw.finder.Operation operation)
{
NamedProjectionList result = (NamedProjectionList) this.findMany(operation);
result.setBypassCache(true);
return result;
}
public MithraList extends NamedProjection> constructEmptyList()
{
return new NamedProjectionList();
}
public int getSerialVersionId()
{
return 1214447165;
}
public boolean isPure()
{
return false;
}
public boolean isTemporary()
{
return false;
}
public int getHierarchyDepth()
{
return 0;
}
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(NamedProjectionFinder.name(), this.mapper, this.zGetValueSelector());
result.zSetOwningRelationship("packageableElementSuperClass");
result.zSetOwningReverseRelationship("klass.model.meta.domain", "PackageableElement", "namedProjectionSubClass");
this.name = result;
}
return result;
}
public LongAttribute projectionId()
{
LongAttribute result = this.projectionId;
if (result == null)
{
result = mapper == null ? SingleColumnLongAttribute.generate("\"PROJECTION_ID\"","","projectionId",BUSINESS_CLASS_NAME_WITH_DOTS,IMPL_CLASS_NAME_WITH_SLASHES,false,false,this,null,true,false,false,-1,-1,-1,false, false) :
new MappedLongAttribute(NamedProjectionFinder.projectionId(), this.mapper, this.zGetValueSelector());
result.zSetOwningRelationship("rootProjection");
result.zSetOwningReverseRelationship("klass.model.meta.domain", "RootProjection", "namedProjection");
this.projectionId = result;
}
return result;
}
public RootProjectionFinder.RootProjectionSingleFinderForRelatedClasses rootProjection()
{
NamedProjectionRootProjectionFinderSubclass result = this.rootProjection;
if (result == null)
{
Mapper newMapper = combineWithMapperIfExists(NamedProjectionFinder.zGetNamedProjectionRootProjectionReverseMapper());
newMapper.setToMany(false);
result = new NamedProjectionRootProjectionFinderSubclass(newMapper , this.zGetValueSelector() );
this.rootProjection = result;
}
return result;
}
public PackageableElementFinder.PackageableElementSingleFinderForRelatedClasses packageableElementSuperClass()
{
NamedProjectionPackageableElementSuperClassFinderSubclass result = this.packageableElementSuperClass;
if (result == null)
{
Mapper newMapper = combineWithMapperIfExists(PackageableElementFinder.zGetPackageableElementNamedProjectionSubClassMapper());
newMapper.setToMany(false);
result = new NamedProjectionPackageableElementSuperClassFinderSubclass(newMapper , this.zGetValueSelector() );
this.packageableElementSuperClass = result;
}
return result;
}
public ProjectionProjectionReferenceFinder.ProjectionProjectionReferenceCollectionFinderForRelatedClasses projectionProjectionReferences()
{
NamedProjectionProjectionProjectionReferencesFinderSubclass result = this.projectionProjectionReferences;
if (result == null)
{
Mapper newMapper = combineWithMapperIfExists(ProjectionProjectionReferenceFinder.zGetProjectionProjectionReferenceProjectionMapper());
newMapper.setToMany(true);
result = new NamedProjectionProjectionProjectionReferencesFinderSubclass(newMapper , this.zGetValueSelector() );
this.projectionProjectionReferences = result;
}
return result;
}
public ServiceFinder.ServiceCollectionFinderForRelatedClasses services()
{
NamedProjectionServicesFinderSubclass result = this.services;
if (result == null)
{
Mapper newMapper = combineWithMapperIfExists(ServiceFinder.zGetServiceProjectionMapper());
newMapper.setToMany(true);
result = new NamedProjectionServicesFinderSubclass(newMapper , this.zGetValueSelector() );
this.services = 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 NamedProjectionFinder.getPrimaryKeyAttributes();
}
public VersionAttribute getVersionAttribute()
{
return null;
}
public MithraObjectPortal getMithraObjectPortal()
{
return NamedProjectionFinder.getMithraObjectPortal();
}
}
public static class NamedProjectionCollectionFinder extends NamedProjectionRelatedFinder
{
public NamedProjectionCollectionFinder(Mapper mapper)
{
super(mapper);
}
}
public static abstract class NamedProjectionCollectionFinderForRelatedClasses
extends NamedProjectionCollectionFinder
implements DeepRelationshipAttribute
{
public NamedProjectionCollectionFinderForRelatedClasses(Mapper mapper)
{
super(mapper);
}
protected NormalAndListValueSelector zGetValueSelector()
{
return this;
}
}
public static class NamedProjectionSingleFinder extends NamedProjectionRelatedFinder
implements ToOneFinder
{
public NamedProjectionSingleFinder(Mapper mapper)
{
super(mapper);
}
public NamedProjectionSingleFinder()
{
super(null);
}
public Operation eq(NamedProjection other)
{
return this.name().eq(other.getName())
;
}
// this implementation uses private API. Do NOT copy to application code. Application code must use normal operations for lookups.
public NamedProjection findByPrimaryKey(String name)
{
NamedProjection _result = null;
Operation _op = null;
Object _related = null;
if (name != null)
{
I3O3L3 _bean = I3O3L3.POOL.getOrConstruct();
_bean.setO1(name);
MithraObjectPortal _portal = this.getMithraObjectPortal();
_related = _portal.getAsOneFromCacheForFind(_bean, _bean, forPrimaryKey, null, null);
_bean.release();
}
if (!(_related instanceof NulledRelation)) _result = (NamedProjection) _related;
if (_related == null)
{
_op = this.name().eq(name);
}
if (_op != null)
{
_result = this.findOne(_op);
}
return _result;
}
}
public static abstract class NamedProjectionSingleFinderForRelatedClasses extends NamedProjectionSingleFinder implements DeepRelationshipAttribute
{
public NamedProjectionSingleFinderForRelatedClasses(Mapper mapper)
{
super(mapper);
}
protected NormalAndListValueSelector zGetValueSelector()
{
return this;
}
}
private static Mapper rootProjectionReverseMapper = null;
public static Mapper zGetNamedProjectionRootProjectionReverseMapper()
{
if (rootProjectionReverseMapper == null)
{
rootProjectionReverseMapper = zConstructNamedProjectionRootProjectionReverseMapper();
}
return rootProjectionReverseMapper;
}
private static Mapper rootProjectionMapper = null;
public static Mapper zGetNamedProjectionRootProjectionMapper()
{
if (rootProjectionMapper == null)
{
rootProjectionMapper = zConstructNamedProjectionRootProjectionMapper();
}
return rootProjectionMapper;
}
private static Mapper rootProjectionPureReverseMapper = null;
public static Mapper zGetNamedProjectionRootProjectionPureReverseMapper()
{
if (rootProjectionPureReverseMapper == null)
{
rootProjectionPureReverseMapper = zConstructNamedProjectionRootProjectionPureReverseMapper();
}
return rootProjectionPureReverseMapper;
}
private static Mapper zConstructNamedProjectionRootProjectionPureReverseMapper()
{
Mapper rootProjectionMapper = NamedProjectionFinder.zGetConstantJoin(0);
rootProjectionMapper.setName("rootProjection");
return rootProjectionMapper;
}
private static Mapper zConstructNamedProjectionRootProjectionReverseMapper()
{
Mapper rootProjectionMapper = NamedProjectionFinder.zGetConstantJoin(0);
rootProjectionMapper.setName("rootProjection");
return rootProjectionMapper;
}
private static Mapper zConstructNamedProjectionRootProjectionMapper()
{
Mapper rootProjectionMapper = NamedProjectionFinder.zGetConstantJoin(1);
rootProjectionMapper.setName("namedProjection");
return rootProjectionMapper;
}
/** maps to \"NAMED_PROJECTION\".\"NAME\" **/
public static StringAttribute name()
{
return finder.name();
}
/** maps to \"NAMED_PROJECTION\".\"PROJECTION_ID\" **/
public static LongAttribute projectionId()
{
return finder.projectionId();
}
public static RootProjectionFinder.RootProjectionSingleFinderForRelatedClasses rootProjection()
{
return finder.rootProjection();
}
public static class NamedProjectionRootProjectionFinderSubclass extends RootProjectionFinder.RootProjectionSingleFinderForRelatedClasses
{
public NamedProjectionRootProjectionFinderSubclass(Mapper mapper, NormalAndListValueSelector parentSelector )
{
super(mapper);
this._parentSelector = (AbstractRelatedFinder) parentSelector;
this._orderBy = null;
this._type = SIMPLE_TO_ONE;
this._name = "rootProjection";
}
public DeepRelationshipAttribute copy()
{
return new NamedProjectionRootProjectionFinderSubclass(zGetMapper(), (NormalAndListValueSelector) this._parentSelector
);
}
protected RootProjection plainValueOf(NamedProjection _obj)
{
return _obj.getRootProjection();
}
protected RootProjectionList plainListValueOf(Object _obj)
{
return ((NamedProjectionList)_obj).getRootProjections();
}
}
public static PackageableElementFinder.PackageableElementSingleFinderForRelatedClasses packageableElementSuperClass()
{
return finder.packageableElementSuperClass();
}
public static class NamedProjectionPackageableElementSuperClassFinderSubclass extends PackageableElementFinder.PackageableElementSingleFinderForRelatedClasses
{
public NamedProjectionPackageableElementSuperClassFinderSubclass(Mapper mapper, NormalAndListValueSelector parentSelector )
{
super(mapper);
this._parentSelector = (AbstractRelatedFinder) parentSelector;
this._orderBy = null;
this._type = SIMPLE_TO_ONE;
this._name = "packageableElementSuperClass";
}
public DeepRelationshipAttribute copy()
{
return new NamedProjectionPackageableElementSuperClassFinderSubclass(zGetMapper(), (NormalAndListValueSelector) this._parentSelector
);
}
protected PackageableElement plainValueOf(NamedProjection _obj)
{
return _obj.getPackageableElementSuperClass();
}
protected PackageableElementList plainListValueOf(Object _obj)
{
return ((NamedProjectionList)_obj).getPackageableElementSuperClass();
}
}
public static ProjectionProjectionReferenceFinder.ProjectionProjectionReferenceCollectionFinderForRelatedClasses projectionProjectionReferences()
{
return finder.projectionProjectionReferences();
}
public static class NamedProjectionProjectionProjectionReferencesFinderSubclass extends ProjectionProjectionReferenceFinder.ProjectionProjectionReferenceCollectionFinderForRelatedClasses
{
public NamedProjectionProjectionProjectionReferencesFinderSubclass(Mapper mapper, NormalAndListValueSelector parentSelector )
{
super(mapper);
this._parentSelector = (AbstractRelatedFinder) parentSelector;
this._orderBy = null;
this._type = SIMPLE_TO_MANY;
this._name = "projectionProjectionReferences";
}
public DeepRelationshipAttribute copy()
{
return new NamedProjectionProjectionProjectionReferencesFinderSubclass(zGetMapper(), (NormalAndListValueSelector) this._parentSelector
);
}
protected ProjectionProjectionReferenceList plainValueOf(NamedProjection _obj)
{
return _obj.getProjectionProjectionReferences();
}
protected ProjectionProjectionReferenceList plainListValueOf(Object _obj)
{
return ((NamedProjectionList)_obj).getProjectionProjectionReferences();
}
}
public static ServiceFinder.ServiceCollectionFinderForRelatedClasses services()
{
return finder.services();
}
public static class NamedProjectionServicesFinderSubclass extends ServiceFinder.ServiceCollectionFinderForRelatedClasses
{
public NamedProjectionServicesFinderSubclass(Mapper mapper, NormalAndListValueSelector parentSelector )
{
super(mapper);
this._parentSelector = (AbstractRelatedFinder) parentSelector;
this._orderBy = null;
this._type = SIMPLE_TO_MANY;
this._name = "services";
}
public DeepRelationshipAttribute copy()
{
return new NamedProjectionServicesFinderSubclass(zGetMapper(), (NormalAndListValueSelector) this._parentSelector
);
}
protected ServiceList plainValueOf(NamedProjection _obj)
{
return _obj.getServices();
}
protected ServiceList plainListValueOf(Object _obj)
{
return ((NamedProjectionList)_obj).getServices();
}
}
public static Operation eq(NamedProjection other)
{
return finder.eq(other);
}
public static Operation all()
{
return new All(name());
}
public static NamedProjectionSingleFinder getFinderInstance()
{
return finder;
}
public static Attribute[] getPrimaryKeyAttributes()
{
return new Attribute[]
{
name()
}
;
}
public static Attribute[] getImmutableAttributes()
{
return new Attribute[]
{
name()
, name()
}
;
}
public static AsOfAttribute[] getAsOfAttributes()
{
return null;
}
protected static void initializeIndicies(Cache cache)
{
cache.addIndex("0 Index", new Attribute[]
{
projectionId()
}
);
}
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[]
{
PackageableElementFinder.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[]
{
PackageableElementFinder.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.NamedProjection");
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