sortedmaptype.java
来自「人力资源管理系统主要包括:人员管理、招聘管理、培训管理、奖惩管理和薪金管理五大管」· Java 代码 · 共 42 行
JAVA
42 行
//$Id: SortedMapType.java,v 1.9.2.3 2004/01/26 04:57:09 oneovthafew Exp $package net.sf.hibernate.type;import java.util.Comparator;import net.sf.hibernate.collection.CollectionPersister;import net.sf.hibernate.collection.PersistentCollection;import net.sf.hibernate.collection.SortedMap;import net.sf.hibernate.engine.SessionImplementor;public class SortedMapType extends MapType { private final Comparator comparator; public SortedMapType(String role, Comparator comparator) { super(role); this.comparator = comparator; } public PersistentCollection instantiate(SessionImplementor session, CollectionPersister persister) { SortedMap map = new SortedMap(session); map.setComparator(comparator); return map; } public Class getReturnedClass() { return java.util.SortedMap.class; } public PersistentCollection wrap(SessionImplementor session, Object collection) { return new SortedMap( session, (java.util.SortedMap) collection ); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?