klass.model.meta.domain.EnumerationFinder 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 EnumerationFinder
{
private static final String IMPL_CLASS_NAME_WITH_SLASHES = "klass/model/meta/domain/Enumeration";
private static final String BUSINESS_CLASS_NAME_WITH_DOTS = "klass.model.meta.domain.Enumeration";
private static final FinderMethodMap finderMethodMap;
private static boolean isFullCache;
private static boolean isOffHeap;
private static volatile MithraObjectPortal objectPortal = new UninitializedPortal("klass.model.meta.domain.Enumeration");
private static final EnumerationSingleFinder finder = new EnumerationSingleFinder();
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(EnumerationFinder.EnumerationRelatedFinder.class);
finderMethodMap.addNormalAttributeName("name");
finderMethodMap.addRelationshipName("enumerationLiterals");
finderMethodMap.addRelationshipName("enumerationParameters");
finderMethodMap.addRelationshipName("enumerationProperties");
finderMethodMap.addRelationshipName("packageableElementSuperClass");
}
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] = EnumerationFinder.name().constructEqualityMapper(EnumerationLiteralFinder.enumerationName());
result[1] = EnumerationLiteralFinder.enumerationName().constructEqualityMapper(EnumerationFinder.name());
constantJoinPool = result;
}
return constantJoinPool;
}
public static SourceAttributeType getSourceAttributeType()
{
return null;
}
public static Enumeration findOne(com.gs.fw.finder.Operation operation)
{
return findOne(operation, false);
}
public static Enumeration findOneBypassCache(com.gs.fw.finder.Operation operation)
{
return findOne(operation, true);
}
public static EnumerationList findMany(com.gs.fw.finder.Operation operation)
{
return (EnumerationList) finder.findMany(operation);
}
public static EnumerationList findManyBypassCache(com.gs.fw.finder.Operation operation)
{
return (EnumerationList) finder.findManyBypassCache(operation);
}
private static Enumeration findOne(com.gs.fw.finder.Operation operation, boolean bypassCache)
{
List found = getMithraObjectPortal().find((Operation) operation, bypassCache);
return (Enumeration) FinderUtils.findOne(found);
}
public static Enumeration 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;
EnumerationData _castedTargetData = (EnumerationData) _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 Enumeration zFindOneForRelationship(Operation operation)
{
List found = getMithraObjectPortal().findAsCachedQuery(operation, null, false, true, 0).getResult();
return (Enumeration) 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 EnumerationRelatedFinder extends AbstractRelatedFinder
{
private List relationshipFinders;
private List dependentRelationshipFinders;
private StringAttribute name;
private EnumerationEnumerationLiteralsFinderSubclass enumerationLiterals;
private EnumerationEnumerationParametersFinderSubclass enumerationParameters;
private EnumerationEnumerationPropertiesFinderSubclass enumerationProperties;
private EnumerationPackageableElementSuperClassFinderSubclass packageableElementSuperClass;
public EnumerationRelatedFinder()
{
super();
}
public EnumerationRelatedFinder(Mapper mapper)
{
super(mapper);
}
public String getFinderClassName()
{
return "klass.model.meta.domain.EnumerationFinder";
}
public RelatedFinder getRelationshipFinderByName(String relationshipName)
{
return EnumerationFinder.finderMethodMap.getRelationshipFinderByName(relationshipName, this);
}
public Attribute getAttributeByName(String attributeName)
{
return EnumerationFinder.finderMethodMap.getAttributeByName(attributeName, this);
}
public com.gs.fw.common.mithra.extractor.Function getAttributeOrRelationshipSelector(String attributeName)
{
return EnumerationFinder.finderMethodMap.getAttributeOrRelationshipSelectorFunction(attributeName, this);
}
public Attribute[] getPersistentAttributes()
{
Attribute[] attributes = new Attribute[1];
attributes[0] = this.name();
return attributes;
}
public List getRelationshipFinders()
{
if (relationshipFinders == null)
{
List relatedFinders = new ArrayList(4);
relatedFinders.add(this.enumerationLiterals());
relatedFinders.add(this.enumerationParameters());
relatedFinders.add(this.enumerationProperties());
relatedFinders.add(this.packageableElementSuperClass());
relationshipFinders = Collections.unmodifiableList(relatedFinders);
}
return relationshipFinders;
}
public List getDependentRelationshipFinders()
{
if (dependentRelationshipFinders == null)
{
List dependentRelatedFinders = new ArrayList(1);
dependentRelatedFinders.add(this.enumerationLiterals());
dependentRelationshipFinders = Collections.unmodifiableList(dependentRelatedFinders);
}
return dependentRelationshipFinders;
}
public Enumeration findOne(com.gs.fw.finder.Operation operation)
{
return EnumerationFinder.findOne(operation, false);
}
public Enumeration findOneBypassCache(com.gs.fw.finder.Operation operation)
{
return EnumerationFinder.findOne(operation, true);
}
public MithraList extends Enumeration> findMany(com.gs.fw.finder.Operation operation)
{
return new EnumerationList((Operation) operation);
}
public MithraList extends Enumeration> findManyBypassCache(com.gs.fw.finder.Operation operation)
{
EnumerationList result = (EnumerationList) this.findMany(operation);
result.setBypassCache(true);
return result;
}
public MithraList extends Enumeration> constructEmptyList()
{
return new EnumerationList();
}
public int getSerialVersionId()
{
return 328511091;
}
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(EnumerationFinder.name(), this.mapper, this.zGetValueSelector());
result.zSetOwningRelationship("packageableElementSuperClass");
result.zSetOwningReverseRelationship("klass.model.meta.domain", "PackageableElement", "enumerationSubClass");
this.name = result;
}
return result;
}
public EnumerationLiteralFinder.EnumerationLiteralCollectionFinderForRelatedClasses enumerationLiterals()
{
EnumerationEnumerationLiteralsFinderSubclass result = this.enumerationLiterals;
if (result == null)
{
Mapper newMapper = combineWithMapperIfExists(EnumerationFinder.zGetEnumerationEnumerationLiteralsReverseMapper());
newMapper.setToMany(true);
result = new EnumerationEnumerationLiteralsFinderSubclass(newMapper , this.zGetValueSelector() );
this.enumerationLiterals = result;
}
return result;
}
public EnumerationParameterFinder.EnumerationParameterCollectionFinderForRelatedClasses enumerationParameters()
{
EnumerationEnumerationParametersFinderSubclass result = this.enumerationParameters;
if (result == null)
{
Mapper newMapper = combineWithMapperIfExists(EnumerationParameterFinder.zGetEnumerationParameterEnumerationMapper());
newMapper.setToMany(true);
result = new EnumerationEnumerationParametersFinderSubclass(newMapper , this.zGetValueSelector() );
this.enumerationParameters = result;
}
return result;
}
public EnumerationPropertyFinder.EnumerationPropertyCollectionFinderForRelatedClasses enumerationProperties()
{
EnumerationEnumerationPropertiesFinderSubclass result = this.enumerationProperties;
if (result == null)
{
Mapper newMapper = combineWithMapperIfExists(EnumerationPropertyFinder.zGetEnumerationPropertyEnumerationMapper());
newMapper.setToMany(true);
result = new EnumerationEnumerationPropertiesFinderSubclass(newMapper , this.zGetValueSelector() );
this.enumerationProperties = result;
}
return result;
}
public PackageableElementFinder.PackageableElementSingleFinderForRelatedClasses packageableElementSuperClass()
{
EnumerationPackageableElementSuperClassFinderSubclass result = this.packageableElementSuperClass;
if (result == null)
{
Mapper newMapper = combineWithMapperIfExists(PackageableElementFinder.zGetPackageableElementEnumerationSubClassMapper());
newMapper.setToMany(false);
result = new EnumerationPackageableElementSuperClassFinderSubclass(newMapper , this.zGetValueSelector() );
this.packageableElementSuperClass = 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 EnumerationFinder.getPrimaryKeyAttributes();
}
public VersionAttribute getVersionAttribute()
{
return null;
}
public MithraObjectPortal getMithraObjectPortal()
{
return EnumerationFinder.getMithraObjectPortal();
}
}
public static class EnumerationCollectionFinder extends EnumerationRelatedFinder
{
public EnumerationCollectionFinder(Mapper mapper)
{
super(mapper);
}
}
public static abstract class EnumerationCollectionFinderForRelatedClasses
extends EnumerationCollectionFinder
implements DeepRelationshipAttribute
{
public EnumerationCollectionFinderForRelatedClasses(Mapper mapper)
{
super(mapper);
}
protected NormalAndListValueSelector zGetValueSelector()
{
return this;
}
}
public static class EnumerationSingleFinder extends EnumerationRelatedFinder
implements ToOneFinder
{
public EnumerationSingleFinder(Mapper mapper)
{
super(mapper);
}
public EnumerationSingleFinder()
{
super(null);
}
public Operation eq(Enumeration 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 Enumeration findByPrimaryKey(String name)
{
Enumeration _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 = (Enumeration) _related;
if (_related == null)
{
_op = this.name().eq(name);
}
if (_op != null)
{
_result = this.findOne(_op);
}
return _result;
}
}
public static abstract class EnumerationSingleFinderForRelatedClasses extends EnumerationSingleFinder implements DeepRelationshipAttribute
{
public EnumerationSingleFinderForRelatedClasses(Mapper mapper)
{
super(mapper);
}
protected NormalAndListValueSelector zGetValueSelector()
{
return this;
}
}
private static Mapper enumerationLiteralsReverseMapper = null;
public static Mapper zGetEnumerationEnumerationLiteralsReverseMapper()
{
if (enumerationLiteralsReverseMapper == null)
{
enumerationLiteralsReverseMapper = zConstructEnumerationEnumerationLiteralsReverseMapper();
}
return enumerationLiteralsReverseMapper;
}
private static Mapper enumerationLiteralsMapper = null;
public static Mapper zGetEnumerationEnumerationLiteralsMapper()
{
if (enumerationLiteralsMapper == null)
{
enumerationLiteralsMapper = zConstructEnumerationEnumerationLiteralsMapper();
}
return enumerationLiteralsMapper;
}
private static Mapper enumerationLiteralsPureReverseMapper = null;
public static Mapper zGetEnumerationEnumerationLiteralsPureReverseMapper()
{
if (enumerationLiteralsPureReverseMapper == null)
{
enumerationLiteralsPureReverseMapper = zConstructEnumerationEnumerationLiteralsPureReverseMapper();
}
return enumerationLiteralsPureReverseMapper;
}
private static Mapper zConstructEnumerationEnumerationLiteralsPureReverseMapper()
{
Mapper enumerationLiteralsMapper = EnumerationFinder.zGetConstantJoin(0);
enumerationLiteralsMapper.setName("enumerationLiterals");
return enumerationLiteralsMapper;
}
private static Mapper zConstructEnumerationEnumerationLiteralsReverseMapper()
{
Mapper enumerationLiteralsMapper = EnumerationFinder.zGetConstantJoin(0);
enumerationLiteralsMapper.setName("enumerationLiterals");
return enumerationLiteralsMapper;
}
private static Mapper zConstructEnumerationEnumerationLiteralsMapper()
{
Mapper enumerationLiteralsMapper = EnumerationFinder.zGetConstantJoin(1);
enumerationLiteralsMapper.setName("enumeration");
return enumerationLiteralsMapper;
}
/** maps to \"ENUMERATION\".\"NAME\" **/
public static StringAttribute name()
{
return finder.name();
}
public static EnumerationLiteralFinder.EnumerationLiteralCollectionFinderForRelatedClasses enumerationLiterals()
{
return finder.enumerationLiterals();
}
public static class EnumerationEnumerationLiteralsFinderSubclass extends EnumerationLiteralFinder.EnumerationLiteralCollectionFinderForRelatedClasses
{
public EnumerationEnumerationLiteralsFinderSubclass(Mapper mapper, NormalAndListValueSelector parentSelector )
{
super(mapper);
this._parentSelector = (AbstractRelatedFinder) parentSelector;
this._orderBy = EnumerationLiteralFinder.ordinal().ascendingOrderBy();
this._type = SIMPLE_TO_MANY;
this._name = "enumerationLiterals";
}
public DeepRelationshipAttribute copy()
{
return new EnumerationEnumerationLiteralsFinderSubclass(zGetMapper(), (NormalAndListValueSelector) this._parentSelector
);
}
public boolean isModifiedSinceDetachment(MithraTransactionalObject _obj)
{
return ((Enumeration) _obj).isEnumerationLiteralsModifiedSinceDetachment();
}
protected EnumerationLiteralList plainValueOf(Enumeration _obj)
{
return _obj.getEnumerationLiterals();
}
protected EnumerationLiteralList plainListValueOf(Object _obj)
{
return ((EnumerationList)_obj).getEnumerationLiterals();
}
}
public static EnumerationParameterFinder.EnumerationParameterCollectionFinderForRelatedClasses enumerationParameters()
{
return finder.enumerationParameters();
}
public static class EnumerationEnumerationParametersFinderSubclass extends EnumerationParameterFinder.EnumerationParameterCollectionFinderForRelatedClasses
{
public EnumerationEnumerationParametersFinderSubclass(Mapper mapper, NormalAndListValueSelector parentSelector )
{
super(mapper);
this._parentSelector = (AbstractRelatedFinder) parentSelector;
this._orderBy = null;
this._type = SIMPLE_TO_MANY;
this._name = "enumerationParameters";
}
public DeepRelationshipAttribute copy()
{
return new EnumerationEnumerationParametersFinderSubclass(zGetMapper(), (NormalAndListValueSelector) this._parentSelector
);
}
protected EnumerationParameterList plainValueOf(Enumeration _obj)
{
return _obj.getEnumerationParameters();
}
protected EnumerationParameterList plainListValueOf(Object _obj)
{
return ((EnumerationList)_obj).getEnumerationParameters();
}
}
public static EnumerationPropertyFinder.EnumerationPropertyCollectionFinderForRelatedClasses enumerationProperties()
{
return finder.enumerationProperties();
}
public static class EnumerationEnumerationPropertiesFinderSubclass extends EnumerationPropertyFinder.EnumerationPropertyCollectionFinderForRelatedClasses
{
public EnumerationEnumerationPropertiesFinderSubclass(Mapper mapper, NormalAndListValueSelector parentSelector )
{
super(mapper);
this._parentSelector = (AbstractRelatedFinder) parentSelector;
this._orderBy = null;
this._type = SIMPLE_TO_MANY;
this._name = "enumerationProperties";
}
public DeepRelationshipAttribute copy()
{
return new EnumerationEnumerationPropertiesFinderSubclass(zGetMapper(), (NormalAndListValueSelector) this._parentSelector
);
}
protected EnumerationPropertyList plainValueOf(Enumeration _obj)
{
return _obj.getEnumerationProperties();
}
protected EnumerationPropertyList plainListValueOf(Object _obj)
{
return ((EnumerationList)_obj).getEnumerationProperties();
}
}
public static PackageableElementFinder.PackageableElementSingleFinderForRelatedClasses packageableElementSuperClass()
{
return finder.packageableElementSuperClass();
}
public static class EnumerationPackageableElementSuperClassFinderSubclass extends PackageableElementFinder.PackageableElementSingleFinderForRelatedClasses
{
public EnumerationPackageableElementSuperClassFinderSubclass(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 EnumerationPackageableElementSuperClassFinderSubclass(zGetMapper(), (NormalAndListValueSelector) this._parentSelector
);
}
protected PackageableElement plainValueOf(Enumeration _obj)
{
return _obj.getPackageableElementSuperClass();
}
protected PackageableElementList plainListValueOf(Object _obj)
{
return ((EnumerationList)_obj).getPackageableElementSuperClass();
}
}
public static Operation eq(Enumeration other)
{
return finder.eq(other);
}
public static Operation all()
{
return new All(name());
}
public static EnumerationSingleFinder 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)
{
}
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.Enumeration");
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