Code example for CollectionRegion

Methods: contains, put

0
	/** 
	 * {@inheritDoc} 
	 */ 
	public boolean putFromLoad(Object key, Object value, long txTimestamp, Object version, boolean minimalPutOverride) 
			throws CacheException { 
		if ( minimalPutOverride && region.contains( key ) ) { 
			return false; 
		} 
		else { 
			region.put( key, value ); 
			return true; 
		} 
	} 
 
	/** 
	 * Throws UnsupportedOperationException since this cache is read-only 
	 * 
	 * @throws UnsupportedOperationException always 
	 */ 
	public SoftLock lockItem(Object key, Object version) throws UnsupportedOperationException {