⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 orderedmaptype.java

📁 一个Java持久层类库
💻 JAVA
字号:
//$Id: OrderedMapType.java 10100 2006-07-10 16:31:09Z steve.ebersole@jboss.com $package org.hibernate.type;import java.util.LinkedHashMap;/** * A specialization of the map type, with (resultset-based) ordering. */public class OrderedMapType extends MapType {	/**	 * Constructs a map type capable of creating ordered maps of the given	 * role.	 *	 * @param role The collection role name.	 * @param propertyRef The property ref name.	 * @param isEmbeddedInXML Is this collection to embed itself in xml	 */	public OrderedMapType(String role, String propertyRef, boolean isEmbeddedInXML) {		super( role, propertyRef, isEmbeddedInXML );	}	/**	 * {@inheritDoc}	 */	public Object instantiate(int anticipatedSize) {		return anticipatedSize > 0				? new LinkedHashMap( anticipatedSize )				: new LinkedHashMap();	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -