public static Person findOneBypassCache(com.gs.fw.finder.Operation operation) { return findOne(operation, true); }
public RelatedFinder getFinder() { return PersonFinder.getFinderInstance(); }
public MithraObjectPortal getMithraObjectPortal() { return PersonFinder.getMithraObjectPortal(); } }
public Cache instantiateFullCache(MithraConfigurationManager.Config config) { Cache result; if (config.isParticipatingInTx()) { result = new FullNonDatedTransactionalCache(PersonFinder.getPrimaryKeyAttributes(), this, PersonFinder.getImmutableAttributes()); } else { result = new FullNonDatedCache(PersonFinder.getPrimaryKeyAttributes(), this, PersonFinder.getImmutableAttributes(), new NonTransactionalUnderlyingObjectGetter()); } initPortal(result, config); return result; }
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)); } config.initializePortal(portal); objectPortal.destroy(); objectPortal = portal; }
_portal = PersonFinder.getMithraObjectPortal(); Object _related = _portal.getAsOneFromCache(this, _data, forowner, null, null); if (!(_related instanceof NulledRelation)) _result = (Person) _related; if (_related == null) _op = PersonFinder.personId().eq(_data.getPersonId()); Operation detachedOp = PersonFinder.personId().eq(_data.getPersonId()); _result = PersonFinder.zFindOneForRelationship(detachedOp); if(_result != null) _op = PersonFinder.personId().eq(_data.getPersonId()); _result = PersonFinder.zFindOneForRelationship(_op);
private void initPortal(Cache cache, MithraConfigurationManager.Config config) { if (config.isThreeTierClient()) { PersonFinder.initializeClientPortal(this, cache, config); } else { PersonFinder.initializePortal(this, cache, config); } if (config.isParticipatingInTx()) { Person.zConfigFullTx(); } else { Person.zConfigNonTx(); } }
public void zDeserializeFullData(ObjectInput in) throws IOException, ClassNotFoundException { this.age = in.readInt(); this.country = StringPool.getInstance().getOrAddToCache((String)in.readObject(), PersonFinder.isFullCache()); this.name = StringPool.getInstance().getOrAddToCache((String)in.readObject(), PersonFinder.isFullCache()); this.personId = in.readInt(); _isPersonIdSet = in.readBoolean(); }
public Attribute[] getPrimaryKeyAttributes() { return PersonFinder.getPrimaryKeyAttributes(); }
public Cache instantiateFullCache(MithraConfigurationManager.Config config) { Cache result; if (config.isParticipatingInTx()) { result = new FullNonDatedTransactionalCache(PersonFinder.getPrimaryKeyAttributes(), this, PersonFinder.getImmutableAttributes()); } else { result = new FullNonDatedCache(PersonFinder.getPrimaryKeyAttributes(), this, PersonFinder.getImmutableAttributes(), new NonTransactionalUnderlyingObjectGetter()); } initPortal(result, config); 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); } config.initializePortal(portal); objectPortal.destroy(); objectPortal = portal; }
private void initPortal(Cache cache, MithraConfigurationManager.Config config) { if (config.isThreeTierClient()) { PersonFinder.initializeClientPortal(this, cache, config); } else { PersonFinder.initializePortal(this, cache, config); } if (config.isParticipatingInTx()) { Person.zConfigFullTx(); } else { Person.zConfigNonTx(); } }
public void zDeserializeFullData(ObjectInput in) throws IOException, ClassNotFoundException { this.firstName = StringPool.getInstance().getOrAddToCache((String)in.readObject(), PersonFinder.isFullCache()); this.lastName = StringPool.getInstance().getOrAddToCache((String)in.readObject(), PersonFinder.isFullCache()); this.personId = in.readInt(); _isPersonIdSet = in.readBoolean(); }
public Attribute[] getPrimaryKeyAttributes() { return PersonFinder.getPrimaryKeyAttributes(); }
public MithraObjectPortal getMithraObjectPortal() { return PersonFinder.getMithraObjectPortal(); } }
public static Attribute[] getPrimaryKeyAttributes() { return new Attribute[] { personId() } ; }