public void setBooleanValue(boolean newValue) { zSetBoolean(AllTypesFinder.booleanValue(), newValue, false, false ,false); }
public void setByteArrayValue(byte[] newValue) { zSetByteArray(AllTypesFinder.byteArrayValue(), newValue, false, false ); }
public void setByteValue(byte newValue) { zSetByte(AllTypesFinder.byteValue(), newValue); }
public static DoubleAttribute[] zGetDoubleAttributes() { DoubleAttribute[] result = new DoubleAttribute[2]; result[0] = doubleValue(); result[1] = nullableDoubleValue(); return result; }
protected boolean issueUpdatesForNonPrimaryKeys(TransactionalBehavior behavior, MithraDataObject data, MithraDataObject newData) { boolean changed = false; changed |= zUpdateBoolean(behavior, data, newData, AllTypesFinder.booleanValue(), false); changed |= zUpdateByteArray(behavior, data, newData, AllTypesFinder.byteArrayValue(), false); changed |= zUpdateByte(behavior, data, newData, AllTypesFinder.byteValue(), false); changed |= zUpdateChar(behavior, data, newData, AllTypesFinder.charValue(), false); changed |= zUpdateDate(behavior, data, newData, AllTypesFinder.dateValue(), false); changed |= zUpdateDouble(behavior, data, newData, AllTypesFinder.doubleValue(), false); changed |= zUpdateFloat(behavior, data, newData, AllTypesFinder.floatValue(), false); changed |= zUpdateInteger(behavior, data, newData, AllTypesFinder.intValue(), false); changed |= zUpdateLong(behavior, data, newData, AllTypesFinder.longValue(), false); changed |= zUpdateByteArray(behavior, data, newData, AllTypesFinder.nullableByteArrayValue(), false); changed |= zUpdateByte(behavior, data, newData, AllTypesFinder.nullableByteValue(), false); changed |= zUpdateChar(behavior, data, newData, AllTypesFinder.nullableCharValue(), false); changed |= zUpdateDate(behavior, data, newData, AllTypesFinder.nullableDateValue(), false); changed |= zUpdateDouble(behavior, data, newData, AllTypesFinder.nullableDoubleValue(), false); changed |= zUpdateFloat(behavior, data, newData, AllTypesFinder.nullableFloatValue(), false); changed |= zUpdateInteger(behavior, data, newData, AllTypesFinder.nullableIntValue(), false); changed |= zUpdateLong(behavior, data, newData, AllTypesFinder.nullableLongValue(), false); changed |= zUpdateShort(behavior, data, newData, AllTypesFinder.nullableShortValue(), false); changed |= zUpdateString(behavior, data, newData, AllTypesFinder.nullableStringValue(), false); changed |= zUpdateTimestamp(behavior, data, newData, AllTypesFinder.nullableTimestampValue(), false); changed |= zUpdateShort(behavior, data, newData, AllTypesFinder.shortValue(), false); changed |= zUpdateString(behavior, data, newData, AllTypesFinder.stringValue(), false); changed |= zUpdateTimestamp(behavior, data, newData, AllTypesFinder.timestampValue(), false); return changed; }
public Cache instantiateFullCache(MithraConfigurationManager.Config config) { Cache result; if (config.isParticipatingInTx()) { result = new FullNonDatedTransactionalCache(AllTypesFinder.getPrimaryKeyAttributes(), this, AllTypesFinder.getImmutableAttributes()); } else { result = new FullNonDatedCache(AllTypesFinder.getPrimaryKeyAttributes(), this, AllTypesFinder.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)); } portal.setIndependent(true); config.initializePortal(portal); objectPortal.destroy(); objectPortal = portal; }
public void setFloatValue(float newValue) { zSetFloat(AllTypesFinder.floatValue(), newValue); }
public void setDateValue(Date newValue) { zSetDate(AllTypesFinder.dateValue(), newValue); }
public void setCharValue(char newValue) { zSetChar(AllTypesFinder.charValue(), newValue); }
public void setDoubleValue(double newValue) { zSetDouble(AllTypesFinder.doubleValue(), newValue, false, false ,false); }
public static AllTypes findOne(com.gs.fw.finder.Operation operation) { return findOne(operation, false); }
public RelatedFinder getFinder() { return AllTypesFinder.getFinderInstance(); }
public Cache instantiatePartialCache(MithraConfigurationManager.Config config) { Cache result; if (config.isParticipatingInTx()) { result = new PartialNonDatedTransactionalCache(AllTypesFinder.getPrimaryKeyAttributes(), this, AllTypesFinder.getImmutableAttributes(), config.getCacheTimeToLive(), config.getRelationshipCacheTimeToLive()); } else { result = new PartialNonDatedCache(AllTypesFinder.getPrimaryKeyAttributes(), this, AllTypesFinder.getImmutableAttributes(), new NonTransactionalUnderlyingObjectGetter(), config.getCacheTimeToLive(), config.getRelationshipCacheTimeToLive()); } 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); } portal.setIndependent(true); config.initializePortal(portal); objectPortal.destroy(); objectPortal = portal; }
public void setFloatValue(float newValue) { zSetFloat(AllTypesFinder.floatValue(), newValue, false, false ,false); }
public void setDateValue(Date newValue) { zSetDate(AllTypesFinder.dateValue(), newValue, false, false ); }
public void setCharValue(char newValue) { zSetChar(AllTypesFinder.charValue(), newValue, false, false ,false); }
public void setDoubleValue(double newValue) { zSetDouble(AllTypesFinder.doubleValue(), newValue); }