@Override public PersistentCollection wrap(SharedSessionContractImplementor session, Object collection) { return new PersistentSortedMap( session, (java.util.SortedMap) collection ); } }
@Override public PersistentCollection instantiate(SharedSessionContractImplementor session, CollectionPersister persister, Serializable key) { PersistentSortedMap map = new PersistentSortedMap(session); map.setComparator(comparator); return map; }
@Override public PersistentCollection instantiateWrapper( Object key, PersistentCollectionDescriptor collectionDescriptor, SharedSessionContractImplementor session) { return new PersistentSortedMap( session, collectionDescriptor, key ); }
public PersistentCollection wrap(SessionImplementor session, Object collection) { return new PersistentSortedMap( session, (java.util.SortedMap) collection ); }
@Override public PersistentCollection wrap( SortedMap rawCollection, PersistentCollectionDescriptor collectionDescriptor, SharedSessionContractImplementor session) { return new PersistentSortedMap( session, collectionDescriptor, rawCollection ); } }
public PersistentCollection wrap(SessionImplementor session, Object collection) { return new PersistentSortedMap( session, (java.util.SortedMap) collection ); }
public PersistentCollection instantiate(SessionImplementor session, CollectionPersister persister, Serializable key) { PersistentSortedMap map = new PersistentSortedMap(session); map.setComparator(comparator); return map; }
public PersistentCollection instantiate(SessionImplementor session, CollectionPersister persister, Serializable key) { PersistentSortedMap map = new PersistentSortedMap(session); map.setComparator(comparator); return map; }
public PersistentSortedMap newInstance(ExtendedObjectInput in, String className) throws IOException, ClassNotFoundException, InstantiationException, IllegalAccessException, InvocationTargetException, SecurityException, NoSuchMethodException { PersistentCollectionSnapshot snapshot = new JMFPersistentCollectionSnapshot(true, null); snapshot.readInitializationData(in); if (!snapshot.isInitialized()) return new PersistentSortedMap(null); Comparator<? super Object> comparator = snapshot.newComparator(in); return new PersistentSortedMap(null, new TreeMap<Object, Object>(comparator)); } }
if (initialized) { Map<?, ?> map = ((ExternalizablePersistentMap)value).getContentAsMap(target, comparator); coll = (sorted ? new PersistentSortedMap(null, (SortedMap<?, ?>)map) : new PersistentMap(null, map)); coll = (sorted ? new PersistentSortedMap() : new PersistentMap());