org.hibernate.cache.entry.StructuredMapCacheEntry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate Show documentation
Show all versions of hibernate Show documentation
Relational Persistence for Java
//$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