reflectedcollectionproperty.java

来自「hibernate框架例子程序」· Java 代码 · 共 45 行

JAVA
45
字号
package net.sf.hibernate.tool.class2hbm;/** * @version 	1.x * @author		<a href="mailto:doug.currie@alum.mit.edu">e</a> */class ReflectedCollectionProperty extends ReflectedProperty {		/**	 * Constructor for ReflectedListProperty.	 * @param name	 * @param type	 */	ReflectedCollectionProperty(String name, Class type, MapGenerator map) {		super(name, type, map, "bag");	}		protected void getXMLinArray( int level, StringBuffer buf ) {		this.buf = buf;		emitSubCollectionStr(level, name);	}		protected void getXMLinComposite( int level, StringBuffer buf ) {		this.buf = buf;		emitCollectionInCompositeStr(level);	}		protected void getXML( int level, StringBuffer buf ) {		this.buf = buf;		if( comment != null ) {			emitPCommentStr(level, comment, name, type.getName());		}		emitCollectionStrL(level, "bag", name, true);		emitCollectionStrK(level+1, "uid");		emitCollectionStrET(level+1, "elm", "string");		emitCollectionStrR(level, "bag");	}}

⌨️ 快捷键说明

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