亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? binder.java

?? 人力資源管理系統主要包括:人員管理、招聘管理、培訓管理、獎懲管理和薪金管理五大管理模塊。
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
				if ( indexNode!=null && table!=null ) {					table.getIndex( indexNode.getValue() ).addColumn(col);				}				Attribute uniqueNode = columnElement.attribute("unique-key");				if ( uniqueNode!=null && table!=null ) {					table.getUniqueKey( uniqueNode.getValue() ).addColumn(col);				}			}		}		else {			Column col = new Column( model.getType(), 0 );			bindColumn(node, col, isNullable);			col.setName( mappings.getNamingStrategy().columnName( columnAttribute.getValue() ) );			Table table = model.getTable();			if (table!=null) table.addColumn(col); //table=null -> an association - fill it in later			model.addColumn(col);		}		if ( autoColumn && model.getColumnSpan()==0 ) {			Column col = new Column( model.getType(), 0 );			bindColumn(node, col, isNullable);			col.setName( mappings.getNamingStrategy().propertyToColumnName(propertyPath) );			model.getTable().addColumn(col);			model.addColumn(col);		}	}	//automatically makes a column with the default name if none is specifed by XML	public static void bindSimpleValue(Element node, SimpleValue model, boolean isNullable, String path, Mappings mappings) 	throws MappingException {		model.setType( getTypeFromXML(node) );		Attribute formulaNode = node.attribute("formula");		if (formulaNode!=null) {			Formula f = new Formula();			f.setFormula( formulaNode.getText() );			model.setFormula(f);		}		else {			bindColumns(node, model, isNullable, true, path, mappings);		}		Attribute fkNode = node.attribute("foreign-key");		if (fkNode!=null) model.setForeignKeyName( fkNode.getValue() );	}	public static void bindProperty(Element node, Property model, Mappings mappings) throws MappingException {		model.setName( node.attributeValue("name") );		Type type = model.getValue().getType();		if (type==null) throw new MappingException(			"Could not determine a property type for: " + model.getName()		);		Attribute accessNode = node.attribute("access");		if (accessNode!=null) {			model.setPropertyAccessorName( accessNode.getValue() );		} 		else {			model.setPropertyAccessorName( mappings.getDefaultAccess() );		}		Attribute cascadeNode = node.attribute("cascade");		model.setCascade( (cascadeNode==null) ?			mappings.getDefaultCascade() :			cascadeNode.getValue()		);		Attribute updateNode = node.attribute("update");		model.setUpdateable( (updateNode==null) ?			true :			"true".equals( updateNode.getValue() )		);		Attribute insertNode = node.attribute("insert");		model.setInsertable( (insertNode==null) ?			true :			"true".equals( insertNode.getValue() )		);				if ( log.isDebugEnabled() ) {			String msg = "Mapped property: " + model.getName();			String columns = columns( model.getValue() );			if ( columns.length() > 0  ) msg += " -> " + columns;			if ( model.getType()!=null ) msg += ", type: " + model.getType().getName();			log.debug(msg);		}				model.setMetaAttributes( getMetas(node) );	}	private static String columns(Value val) {		StringBuffer columns = new StringBuffer();		Iterator iter = val.getColumnIterator();		while ( iter.hasNext() ) {			columns.append( ( (Column) iter.next() ).getName() );			if ( iter.hasNext() ) columns.append(", ");		}		return columns.toString();	}	/**	 * Called for all collections	 */	public static void bindCollection(Element node, Collection model, String className, String path, Mappings mappings) throws MappingException {		//ROLENAME		model.setRole( StringHelper.qualify(className, path) );		Attribute inverseNode = node.attribute("inverse");		if ( inverseNode!=null) model.setInverse( StringHelper.booleanValue( inverseNode.getValue() ) );		Attribute orderNode = node.attribute("order-by");		if ( orderNode!=null) {			if ( Environment.jvmSupportsLinkedHashCollections() || ( model instanceof Bag ) ) {				model.setOrderBy( orderNode.getValue() );			}			else {				log.warn("Attribute \"order-by\" ignored in JDK1.3 or less");			}		}		Attribute whereNode = node.attribute("where");		if (whereNode!=null) {			model.setWhere( whereNode.getValue() );		}		Attribute batchNode = node.attribute("batch-size");		if (batchNode!=null) {			model.setBatchSize( Integer.parseInt( batchNode.getValue() ) );		}		//PERSISTER		Attribute persisterNode = node.attribute("persister");		if (persisterNode==null) {			//persister = CollectionPersisterImpl.class;		} 		else {			try {				model.setCollectionPersisterClass( ReflectHelper.classForName( persisterNode.getValue() ) );			}			catch (ClassNotFoundException cnfe) {				throw new MappingException( "Could not find collection persister class: " + persisterNode.getValue() );			}		}		initOuterJoinFetchSetting(node, model);		Element oneToManyNode = node.element("one-to-many");		if (oneToManyNode!=null) {			OneToMany oneToMany = new OneToMany( model.getOwner() );			model.setElement(oneToMany);			bindOneToMany(oneToManyNode, oneToMany, mappings);			//we have to set up the table later!! yuck		}		else {			//TABLE			Attribute tableNode = node.attribute("table");			String tableName;			if (tableNode!=null) {				tableName = mappings.getNamingStrategy()					.tableName( tableNode.getValue() );			}			else {				tableName = mappings.getNamingStrategy()					.propertyToTableName(className, path);			}			Attribute schemaNode = node.attribute("schema");			String schema = schemaNode==null ? mappings.getSchemaName() : schemaNode.getValue();			model.setCollectionTable( mappings.addTable(schema, tableName) );			log.info("Mapping collection: " + model.getRole() + " -> " + model.getCollectionTable().getName() );		}		//LAZINESS		Attribute lazyNode = node.attribute("lazy");		if (lazyNode!=null) {			model.setLazy( StringHelper.booleanValue( lazyNode.getValue() ) );		}		//SORT		Attribute sortedAtt = node.attribute("sort");		// unsorted, natural, comparator.class.name		if ( sortedAtt==null || sortedAtt.getValue().equals("unsorted") ) {			model.setSorted(false);		}		else {			model.setSorted(true);			String comparatorClassName = sortedAtt.getValue();			if ( !comparatorClassName.equals("natural") ) {				try {					model.setComparator( (Comparator) ReflectHelper.classForName(comparatorClassName).newInstance() );				}				catch (Exception e) {					throw new MappingException( "Could not instantiate comparator class: " + comparatorClassName );				}			}		}		//ORPHAN DELETE (used for programmer error detection)		Attribute cascadeAtt = node.attribute("cascade");		if ( cascadeAtt!=null && cascadeAtt.getValue().equals("all-delete-orphan") ) model.setOrphanDelete(true);		//set up second pass		if (model instanceof List) {			mappings.addSecondPass( new ListSecondPass(node, mappings, (List) model) );		}		else if (model instanceof Map) {			mappings.addSecondPass( new MapSecondPass(node, mappings, (Map) model) );		}		else if (model instanceof IdentifierCollection) {			mappings.addSecondPass( new IdentifierCollectionSecondPass(node, mappings, (IdentifierCollection) model) );		}		else {			mappings.addSecondPass( new CollectionSecondPass(node, mappings, model) );		}	}	public static void bindManyToOne(Element node, ManyToOne model, String path, boolean isNullable, Mappings mappings) 	throws MappingException {		bindColumns(node, model, isNullable, true, path, mappings);		initOuterJoinFetchSetting(node, model);		Attribute ukName = node.attribute("property-ref");		if (ukName!=null) model.setReferencedPropertyName( ukName.getValue() );		Attribute classNode = node.attribute("class");		if (classNode!=null) {			try {				model.setType( TypeFactory.manyToOne( 					ReflectHelper.classForName( getClassName(classNode, mappings) ), 					model.getReferencedPropertyName()				) );			}			catch (Exception e) {				throw new MappingException( "Could not find class: " + classNode.getValue() );			}		}		Attribute fkNode = node.attribute("foreign-key");		if (fkNode!=null) model.setForeignKeyName( node.attributeValue("foreign-key") );	}	public static void bindAny(Element node, Any model, boolean isNullable, Mappings mappings) throws MappingException {		model.setIdentifierType( getTypeFromXML(node) );		Attribute metaAttribute = node.attribute("meta-type");		if (metaAttribute!=null) {			Type metaType = TypeFactory.heuristicType( metaAttribute.getValue() );			if ( metaType==null ) throw new MappingException("could not interpret meta-type");			model.setMetaType(metaType);						Iterator iter = node.elementIterator("meta-value");			HashMap values = new HashMap();			while ( iter.hasNext() ) {				Element metaValue = (Element) iter.next();				try {					Object value = ( (DiscriminatorType) model.getMetaType() ).fromString( metaValue.attributeValue("value") );					Class clazz = ReflectHelper.classForName( getClassName( metaValue.attribute("class"), mappings ) );					values.put(value, clazz);				}				catch (ClassCastException cce) {					throw new MappingException( "meta-type was not a DiscriminatorType: " + metaType.getName() );				}				catch (HibernateException he) {					throw new MappingException("could not interpret meta-value", he);				}				catch (ClassNotFoundException cnfe) {					throw new MappingException("meta-value class not found", cnfe);				}			}			if ( values.size()>0 ) model.setMetaType( new MetaType( values, model.getMetaType() ) );		}				bindColumns(node, model, isNullable, false, null, mappings);	}	public static void bindOneToOne(Element node, OneToOne model, boolean isNullable, Mappings mappings) throws MappingException {		//bindColumns(node, model, isNullable, false, null, mappings);		initOuterJoinFetchSetting(node, model);		Attribute constrNode = node.attribute("constrained");		boolean constrained = constrNode!=null && constrNode.getValue().equals("true");		model.setConstrained(constrained);		model.setForeignKeyType(			constrained ?			ForeignKeyDirection.FOREIGN_KEY_FROM_PARENT :			ForeignKeyDirection.FOREIGN_KEY_TO_PARENT		);		Attribute fkNode = node.attribute("foreign-key");		if (fkNode!=null) model.setForeignKeyName( fkNode.getValue() );				Attribute ukName = node.attribute("property-ref");		if (ukName!=null) model.setReferencedPropertyName( ukName.getValue() );				Attribute classNode = node.attribute("class");		if (classNode!=null) {			try {				model.setType( TypeFactory.oneToOne(					ReflectHelper.classForName( getClassName(classNode, mappings) ),					model.getForeignKeyType(),					model.getReferencedPropertyName()				) );			}			catch (Exception e) {				throw new MappingException( "Could not find class: " + classNode.getValue() );			}		}	}	public static void bindOneToMany(Element node, OneToMany model, Mappings mappings) throws MappingException {		try {			model.setType( (EntityType) Hibernate.entity(				ReflectHelper.classForName( getClassName( node.attribute("class"), mappings ) )			) );		}		catch (ClassNotFoundException cnfe) {			throw new MappingException("Associated class not found", cnfe);		}	}	public static void bindColumn(Element node, Column model, boolean isNullable) {		Attribute lengthNode = node.attribute("length");		if (lengthNode!=null) model.setLength( Integer.parseInt( lengthNode.getValue() ) );		Attribute nullNode = node.attribute("not-null");		model.setNullable( (nullNode!=null) ?			!StringHelper.booleanValue( nullNode.getValue() ) :			isNullable		);		Attribute unqNode = node.attribute("unique");		model.setUnique( unqNode!=null && StringHelper.booleanValue( unqNode.getValue() ) );		model.setCheckConstraint( node.attributeValue("check") );		//Attribute qtNode = node.attribute("quote");		//model.setQuoted( qtNode!=null && StringHelper.booleanValue( qtNode.getValue() ) );		Attribute typeNode = node.attribute("sql-type");		model.setSqlType( (typeNode==null) ? null : typeNode.getValue() );	}	/**	 * Called for arrays and primitive arrays	 */	public static void bindArray(Element node, Array model, String prefix, String path, Mappings mappings) throws MappingException {		bindCollection(node, model, prefix, path, mappings);		Attribute att = node.attribute("element-class");		if ( att!=null ) {			try {				model.setElementClass( ReflectHelper.classForName( getClassName(att, mappings) ) );			}			catch (ClassNotFoundException cnfe) {				throw new MappingException(cnfe);			}		}		else {			Iterator iter = node.elementIterator();			while ( iter.hasNext() ) {				Element subnode = (Element) iter.next();				String name = subnode.getName();				if ( "element".equals(name) ) {					Type type = getTypeFromXML(subnode);					model.setElementClass( model.isPrimitiveArray() ?						( (PrimitiveType) type ).getPrimitiveClass() :						type.getReturnedClass()					);				}				else if (					"one-to-many".equals(name) ||					"many-to-many".equals(name) ||					"composite-element".equals(name)				) {					try {						model.setElementClass(							ReflectHelper.classForName( getClassName( subnode.attribute("class"), mappings ) )						);					}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区美女视频| 国产91精品精华液一区二区三区 | 国产精品久久久久影院亚瑟 | 精品一区二区三区免费观看 | 国产成人在线电影| 欧美色精品在线视频| 2023国产精品自拍| 日韩精品欧美成人高清一区二区| youjizz国产精品| 欧美大胆一级视频| 天堂久久久久va久久久久| av在线播放一区二区三区| 久久亚洲春色中文字幕久久久| 亚洲福利一区二区三区| 91久久香蕉国产日韩欧美9色| 久久中文字幕电影| 久久久久久影视| 成av人片一区二区| 国产午夜精品久久久久久免费视| 日本视频一区二区| 欧美日韩精品一区视频| 亚洲伦理在线免费看| 成+人+亚洲+综合天堂| 欧美激情综合在线| 国产成人在线色| 国产亚洲综合av| 国产高清视频一区| 国产欧美一区二区三区网站 | a美女胸又www黄视频久久| 久久婷婷国产综合精品青草| 青青草国产精品亚洲专区无| 6080国产精品一区二区| 日韩福利电影在线| 欧美一区二区三区爱爱| 久久精品国产精品亚洲综合| 欧美一级电影网站| 久久99精品视频| 国产丝袜在线精品| av一区二区三区在线| 国产精品三级av| 99r精品视频| 亚洲成人1区2区| 精品日韩欧美一区二区| 韩国欧美国产1区| 国产精品少妇自拍| 色综合久久天天综合网| 一区二区三区欧美视频| 欧美丝袜丝交足nylons| 免费看欧美美女黄的网站| 亚洲精品在线网站| jizzjizzjizz欧美| 亚洲国产精品麻豆| 欧美电视剧在线看免费| 国产99久久久国产精品免费看 | 精品裸体舞一区二区三区| 国产精品一区二区果冻传媒| 国产精品伦一区二区三级视频| 色又黄又爽网站www久久| 日韩成人午夜精品| 久久久久国产精品麻豆ai换脸 | 日韩欧美一区二区久久婷婷| 国产馆精品极品| 亚洲一区二区免费视频| 日韩女优av电影在线观看| 成人一区二区三区视频在线观看 | 国产精品全国免费观看高清 | 亚洲一区二区在线免费观看视频 | 欧美手机在线视频| 精品一二线国产| 亚洲欧美韩国综合色| 欧美另类久久久品| 成人免费毛片a| 日韩电影在线一区二区三区| 国产精品污www在线观看| 欧美视频在线播放| 成人网在线免费视频| 五月综合激情日本mⅴ| 国产蜜臀av在线一区二区三区| 欧美在线制服丝袜| 国产精品一区久久久久| 午夜久久久久久久久久一区二区| 日本一区二区电影| 欧美一区二区三区四区五区 | 日韩一区日韩二区| 日韩欧美一二区| 在线观看91视频| 国产一区二区三区精品视频| 亚洲成人手机在线| 亚洲欧美色一区| 亚洲国产成人私人影院tom| 日韩午夜中文字幕| 欧美日韩国产另类一区| 99精品一区二区| 国产麻豆欧美日韩一区| 免费高清成人在线| 丝袜脚交一区二区| 日韩精品亚洲专区| 精品久久一区二区| 欧美日韩成人综合在线一区二区| a亚洲天堂av| 国产福利一区二区| 久久精品久久99精品久久| 无码av免费一区二区三区试看 | 国产欧美视频在线观看| 欧美精品一区二区三区四区| 日韩一区二区在线观看视频播放| 色婷婷国产精品久久包臀 | 亚洲啪啪综合av一区二区三区| 久久网站热最新地址| 久久天堂av综合合色蜜桃网| 精品少妇一区二区三区在线播放| 91麻豆精品国产91久久久| 欧洲视频一区二区| 91福利社在线观看| 欧美中文字幕久久| 欧美在线播放高清精品| 色综合天天综合在线视频| 91蜜桃婷婷狠狠久久综合9色| 岛国av在线一区| aa级大片欧美| 91社区在线播放| 91国在线观看| 欧美精品精品一区| 欧美一级久久久久久久大片| 欧美大片在线观看| 国产午夜亚洲精品不卡| 中文字幕欧美激情一区| 亚洲婷婷综合色高清在线| 亚洲私人影院在线观看| 亚洲自拍另类综合| 日本不卡视频在线| 国产精品亚洲一区二区三区妖精| 国产91露脸合集magnet| 色8久久人人97超碰香蕉987| 欧美人妖巨大在线| 久久综合九色欧美综合狠狠| 欧美国产成人在线| 亚洲国产精品综合小说图片区| 日韩精品视频网站| 成人做爰69片免费看网站| 欧美在线一二三| 欧美成人一区二区三区| 综合久久久久久| 日本aⅴ亚洲精品中文乱码| 国产乱码精品一区二区三区五月婷| 成人中文字幕在线| 欧美日韩国产不卡| 久久久精品日韩欧美| 亚洲综合小说图片| 久久精品国产一区二区三 | 亚洲女人的天堂| 日本一道高清亚洲日美韩| 国产精品一区二区在线播放| 欧美在线视频不卡| 日本一区二区三区在线不卡| 一区二区视频免费在线观看| 激情另类小说区图片区视频区| 91香蕉视频污在线| 精品国内二区三区| 亚洲一区二区av电影| 国产.欧美.日韩| 日韩一区二区在线看片| 日韩理论电影院| 国产一区二区三区电影在线观看| 日本高清免费不卡视频| 国产视频一区在线观看| 天天av天天翘天天综合网| 国产jizzjizz一区二区| 日韩一区二区三区在线视频| 亚洲色图欧洲色图婷婷| 国内不卡的二区三区中文字幕| 欧美亚洲尤物久久| 国产精品美女一区二区三区| 免费成人在线影院| 欧美日韩视频在线一区二区| 国产精品久久久久久久久久久免费看 | 亚洲国产另类精品专区| 懂色av一区二区夜夜嗨| 精品国产第一区二区三区观看体验| 一区二区三区国产| 99精品视频中文字幕| 久久久久综合网| 麻豆91精品91久久久的内涵| 欧美性xxxxxx少妇| 亚洲品质自拍视频网站| 成人99免费视频| 欧美激情一区二区| 国产美女精品人人做人人爽| 精品国产伦一区二区三区免费| 午夜视频在线观看一区二区| 91黄色免费看| 一区二区三区产品免费精品久久75| www.欧美日韩| 亚洲欧洲日韩一区二区三区| 菠萝蜜视频在线观看一区| 国产精品午夜久久| 成人激情校园春色| 欧美国产日本韩| 99精品视频一区二区| 亚洲美女在线国产|