用Java实现的23个常用设计模式源代码

源代码在线查看: array.java

软件大小: 12795 K
上传用户: haorenkv3
关键词: Java 设计模式 源代码
下载地址: 免注册下载 普通下载 VIP

相关代码

				//$Id: Array.java,v 1.7.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;								/**				 * An array mapping has a primary key consisting of				 * the key columns + index column.				 * @author Gavin King				 */				public class Array extends List {										private Class elementClass;										/**					 * Constructor for Array.					 * @param owner					 */					public Array(PersistentClass owner) {						super(owner);					}									public Class getElementClass() {						return elementClass;					}										public PersistentCollectionType getCollectionType() {						return TypeFactory.array( getRole(), getElementClass() );					}										public boolean isArray() {						return true;					}										/**					 * Sets the elementClass.					 * @param elementClass The elementClass to set					 */					public void setElementClass(Class elementClass) {						this.elementClass = elementClass;					}								}																																			

相关资源