orderedsettype.java

来自「一个Java持久层类库」· Java 代码 · 共 33 行

JAVA
33
字号
//$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 + =
减小字号Ctrl + -
显示快捷键?