map.java
来自「用Java实现的23个常用设计模式源代码」· Java 代码 · 共 35 行
JAVA
35 行
//$Id: Map.java,v 1.9.2.2 2003/11/09 01:46:25 oneovthafew Exp $package net.sf.hibernate.mapping;import net.sf.hibernate.type.PersistentCollectionType;import net.sf.hibernate.type.TypeFactory;/** * A map has a primary key consisting of * the key columns + index columns. */public class Map extends IndexedCollection { /** * Constructor for Map. * @param owner */ public Map(PersistentClass owner) { super(owner); } public PersistentCollectionType getCollectionType() { return isSorted() ? TypeFactory.sortedMap( getRole(), getComparator() ) : TypeFactory.map( getRole() ); } }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?