Hibernate ORM CollectionRegion - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM CollectionRegion class.

This code example shows how to use the following methods:contains, put
	/** 
	 * {@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 { 
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:contains, put
	/** 
	 * {@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; 
		} 
	} 
 
	/** 
	 * Since this is a non-strict read/write strategy item locking is not used. 
	 */ 
	public SoftLock lockItem(Object key, Object version) throws CacheException { 
		return null; 
	} 
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java