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

📄 orderedsettype.java

📁 一个Java持久层类库
💻 JAVA
字号:
//$Id: OrderedSetType.java 10100 2006-07-10 16:31:09Z steve.ebersole@jboss.com $package org.hibernate.type;import java.util.LinkedHashSet;/** * A specialization of the set type, with (resultset-based) ordering. */public class OrderedSetType extends SetType {	/**	 * Constructs a set type capable of creating ordered sets 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 OrderedSetType(String role, String propertyRef, boolean isEmbeddedInXML) {		super( role, propertyRef, isEmbeddedInXML );	}	/**	 * {@inheritDoc}	 */	public Object instantiate(int anticipatedSize) {		return anticipatedSize > 0				? new LinkedHashSet( anticipatedSize )				: new LinkedHashSet();	}}

⌨️ 快捷键说明

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