public static void clearQueryCache() { objectPortal.clearQueryCache(); }
public static void zResetPortal() { objectPortal.destroy(); objectPortal = new UninitializedPortal("bitemporalbank.domain.CustomerAccount"); isFullCache = false; isOffHeap = false; }
public static MithraObjectPortal getMithraObjectPortal() { return objectPortal.getInitializedPortal(); }
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.setIndependent(true); config.initializePortal(portal); objectPortal.destroy(); objectPortal = portal; }
public Cache zGetCache() { return PersonFinder.getMithraObjectPortal().getCache(); }
private static Customer findOne(com.gs.fw.finder.Operation operation, boolean bypassCache) { List found = getMithraObjectPortal().find((Operation) operation, bypassCache); return (Customer) FinderUtils.findOne(found); }
public static Employee zFindOneForRelationship(Operation operation) { List found = getMithraObjectPortal().findAsCachedQuery(operation, null, false, true, 0).getResult(); return (Employee) FinderUtils.findOne(found); }
public static void registerForNotification(MithraApplicationClassLevelNotificationListener listener) { getMithraObjectPortal().registerForApplicationClassLevelNotification(listener); } }
public static void reloadCache() { objectPortal.reloadCache(); }
public AllTypes findByPrimaryKey(int id) { AllTypes _result = null; Operation _op = null; Object _related = null; { I3O3L3 _bean = I3O3L3.POOL.getOrConstruct(); _bean.setI1AsInteger(id); MithraObjectPortal _portal = this.getMithraObjectPortal(); _related = _portal.getAsOneFromCacheForFind(_bean, _bean, forPrimaryKey, null, null); _bean.release(); } if (!(_related instanceof NulledRelation)) _result = (AllTypes) _related; if (_related == null) { _op = this.id().eq(id); } if (_op != null) { _result = this.findOne(_op); } return _result; } }
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.setIndependent(true); config.initializePortal(portal); objectPortal.destroy(); objectPortal = portal; }
public Cache zGetCache() { return EmployeeFinder.getMithraObjectPortal().getCache(); }
private static CustomerAccount findOne(com.gs.fw.finder.Operation operation, boolean bypassCache) { List found = getMithraObjectPortal().find((Operation) operation, bypassCache); return (CustomerAccount) FinderUtils.findOne(found); }
public static AccountBalance zFindOneForRelationship(Operation operation) { List found = getMithraObjectPortal().findAsCachedQuery(operation, null, false, true, 0).getResult(); return (AccountBalance) FinderUtils.findOne(found); }
public static void registerForNotification(MithraApplicationClassLevelNotificationListener listener) { getMithraObjectPortal().registerForApplicationClassLevelNotification(listener); } }
public static void reloadCache() { objectPortal.reloadCache(); }
public PetType findByPrimaryKey(int petTypeId) { PetType _result = null; Operation _op = null; Object _related = null; { I3O3L3 _bean = I3O3L3.POOL.getOrConstruct(); _bean.setI1AsInteger(petTypeId); MithraObjectPortal _portal = this.getMithraObjectPortal(); _related = _portal.getAsOneFromCacheForFind(_bean, _bean, forPrimaryKey, null, null); _bean.release(); } if (!(_related instanceof NulledRelation)) _result = (PetType) _related; if (_related == null) { _op = this.petTypeId().eq(petTypeId); } if (_op != null) { _result = this.findOne(_op); } return _result; } }
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.setIndependent(true); config.initializePortal(portal); objectPortal.destroy(); objectPortal = portal; }
public Cache zGetCache() { return CustomerAccountFinder.getMithraObjectPortal().getCache(); }
private static ObjectSequence findOne(com.gs.fw.finder.Operation operation, boolean bypassCache) { List found = getMithraObjectPortal().find((Operation) operation, bypassCache); return (ObjectSequence) FinderUtils.findOne(found); }