All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.cache.entry.StructuredMapCacheEntry Maven / Gradle / Ivy

There is a newer version: 3.6.0.Beta2
Show newest version
//$Id: StructuredMapCacheEntry.java 5707 2005-02-13 12:47:01Z oneovthafew $
package org.hibernate.cache.entry;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

import org.hibernate.engine.SessionFactoryImplementor;

/**
 * @author Gavin King
 */
public class StructuredMapCacheEntry implements CacheEntryStructure {

	public Object structure(Object item) {
		CollectionCacheEntry entry = (CollectionCacheEntry) item;
		Serializable[] state = entry.getState();
		Map map = new HashMap(state.length);
		for ( int i=0; i




© 2015 - 2024 Weber Informatics LLC | Privacy Policy