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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? configuration.java

?? 介紹了hibernate的入門有一些基本常用的事例
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
			while ( subIter.hasNext() ) {				UniqueKey uk = (UniqueKey) subIter.next();				if ( tableInfo==null || tableInfo.getIndexMetadata( uk.getFilterName() ) == null ) {					script.add( uk.sqlCreateString(dialect, mapping) );				}			}*/		}		iter = iterateGenerators( dialect );		while ( iter.hasNext() ) {			PersistentIdentifierGenerator generator = ( PersistentIdentifierGenerator ) iter.next();			Object key = generator.generatorKey();			if ( !databaseMetadata.isSequence( key ) && !databaseMetadata.isTable( key ) ) {				String[] lines = generator.sqlCreateStrings( dialect );				for ( int i = 0; i < lines.length; i++ ) script.add( lines[i] );			}		}		return ArrayHelper.toStringArray( script );	}	private void validate() throws MappingException {		Iterator iter = classes.values().iterator();		while ( iter.hasNext() ) ( ( PersistentClass ) iter.next() ).validate( mapping );		iter = collections.values().iterator();		while ( iter.hasNext() ) ( ( Collection ) iter.next() ).validate( mapping );	}	/**	 * Call this to ensure the mappings are fully compiled/built. Usefull to ensure getting	 * access to all information in the metamodel when calling e.g. getClassMappings().	 */	public void buildMappings() {		secondPassCompile();	}	/**	 * Find the first possible element in the queue of extends.	 */	protected org.dom4j.Document findPossibleExtends() {		Iterator iter = extendsQueue.entrySet().iterator();		while ( iter.hasNext() ) {			Map.Entry entry = ( Entry ) iter.next();			String superclass = ( String ) entry.getKey();			if ( getClassMapping( superclass ) != null ) {				List queue = (List) entry.getValue();				if(queue.isEmpty()) {					iter.remove();					continue;				} else {					return ( org.dom4j.Document ) queue.remove(0);				}			}		}		return null;	}	// This method may be called many times!!	protected void secondPassCompile() throws MappingException {		log.info( "processing extends queue" );		processExtendsQueue();		log.info( "processing collection mappings" );		Iterator iter = secondPasses.iterator();		while ( iter.hasNext() ) {			HbmBinder.SecondPass sp = ( HbmBinder.SecondPass ) iter.next();			sp.doSecondPass( classes, CollectionHelper.EMPTY_MAP ); // TODO: align meta-attributes with normal bind...			iter.remove();		}		log.info( "processing association property references" );		iter = propertyReferences.iterator();		while ( iter.hasNext() ) {			Mappings.PropertyReference upr = ( Mappings.PropertyReference ) iter.next();			PersistentClass clazz = getClassMapping( upr.referencedClass );			if ( clazz == null ) throw new MappingException( "property-ref to unmapped class: " + upr.referencedClass );			boolean found = false;			Iterator propIter = clazz.isJoinedSubclass() ? 				clazz.getPropertyIterator() : 				clazz.getPropertyClosureIterator();			while ( propIter.hasNext() ) {				Property prop = ( Property ) propIter.next();				if ( upr.propertyName.equals( prop.getName() ) ) {					if ( upr.unique ) {						( ( SimpleValue ) prop.getValue() ).setAlternateUniqueKey( true );					}					found = true;					break;				}			}			if ( !found ) {				throw new MappingException( "property-ref not found: " + upr.propertyName +						" in class: " + upr.referencedClass );			}		}		//TODO: Somehow add the newly created foreign keys to the internal collection		log.info( "processing foreign key constraints" );		iter = getTableMappings();		Set done = new HashSet();		while ( iter.hasNext() ) secondPassCompileForeignKeys( ( Table ) iter.next(), done );	}	/**	 * Try to empty the extends queue.	 */	private void processExtendsQueue() {		org.dom4j.Document document = findPossibleExtends();		while ( document != null ) {			add( document );			document = findPossibleExtends();		}		if ( extendsQueue.size() > 0 ) {			Iterator iterator = extendsQueue.keySet().iterator();			StringBuffer buf = new StringBuffer( "Following superclasses referenced in extends not found: " );			while ( iterator.hasNext() ) {				String element = ( String ) iterator.next();				buf.append( element );				if ( iterator.hasNext() ) buf.append( "," );			}			throw new MappingException( buf.toString() );		}	}	protected void secondPassCompileForeignKeys(Table table, Set done) throws MappingException {		table.createForeignKeys();		Iterator iter = table.getForeignKeyIterator();		while ( iter.hasNext() ) {			ForeignKey fk = ( ForeignKey ) iter.next();			if ( !done.contains( fk ) ) {				done.add( fk );				final String referencedEntityName = fk.getReferencedEntityName();				if (referencedEntityName==null) {					throw new MappingException("An association from the table "+							fk.getTable().getName() +							" does not specify the referenced entity" );				}				if ( log.isDebugEnabled() ) {					log.debug( "resolving reference to class: " + referencedEntityName );				}				PersistentClass referencedClass = ( PersistentClass ) classes.get( referencedEntityName );				if ( referencedClass == null ) {					throw new MappingException( "An association from the table " +							fk.getTable().getName() +							" refers to an unmapped class: " +							referencedEntityName );				}				if ( referencedClass.isJoinedSubclass() ) {					secondPassCompileForeignKeys( referencedClass.getSuperclass().getTable(), done );				}				fk.setReferencedTable( referencedClass.getTable() );			}		}	}	/**	 * Get the named queries	 */	public Map getNamedQueries() {		return namedQueries;	}	private static final Interceptor EMPTY_INTERCEPTOR = new EmptyInterceptor();	static final class EmptyInterceptor implements Interceptor, Serializable {		public void onDelete(				Object entity, 				Serializable id, 				Object[] state, 				String[] propertyNames, 				Type[] types) {}		public boolean onFlushDirty(				Object entity, 				Serializable id, 				Object[] currentState, 				Object[] previousState, 				String[] propertyNames, 				Type[] types) {			return false;		}		public boolean onLoad(				Object entity, 				Serializable id, 				Object[] state, 				String[] propertyNames, 				Type[] types) {			return false;		}		public boolean onSave(				Object entity, 				Serializable id, 				Object[] state, 				String[] propertyNames, 				Type[] types) {			return false;		}		public void postFlush(Iterator entities) {}		public void preFlush(Iterator entities) {}		public Boolean isTransient(Object entity) {			return null;		}		public Object instantiate(String entityName, EntityMode entityMode, Serializable id) {			return null;		}		public int[] findDirty(Object entity,				Serializable id,				Object[] currentState,				Object[] previousState,				String[] propertyNames,				Type[] types) {			return null;		}		public String getEntityName(Object object) {			return null;		}		public Object getEntity(String entityName, Serializable id) {			return null;		}		public void afterTransactionBegin(Transaction tx) {}		public void afterTransactionCompletion(Transaction tx) {}		public void beforeTransactionCompletion(Transaction tx) {}			}	/**	 * Instantiate a new <tt>SessionFactory</tt>, using the properties and	 * mappings in this configuration. The <tt>SessionFactory</tt> will be	 * immutable, so changes made to the <tt>Configuration</tt> after	 * building the <tt>SessionFactory</tt> will not affect it.	 *	 * @return a new factory for <tt>Session</tt>s	 * @see org.hibernate.SessionFactory	 */	public SessionFactory buildSessionFactory() throws HibernateException {		log.debug( "Preparing to build session factory with filters : " + filterDefinitions );		secondPassCompile();		validate();		Environment.verifyProperties( properties );		Properties copy = new Properties();		copy.putAll( properties );		Settings settings = buildSettings();		return new SessionFactoryImpl( this, mapping, settings, sessionEventListenerConfig.shallowCopy() );	}	/**	 * Return the configured <tt>Interceptor</tt>	 */	public Interceptor getInterceptor() {		return interceptor;	}	/**	 * Get all properties	 */	public Properties getProperties() {		return properties;	}	/**	 * Configure an <tt>Interceptor</tt>	 */	public Configuration setInterceptor(Interceptor interceptor) {		this.interceptor = interceptor;		return this;	}	/**	 * Specify a completely new set of properties	 */	public Configuration setProperties(Properties properties) {		this.properties = properties;		return this;	}	/**	 * Set the given properties	 */	public Configuration addProperties(Properties extraProperties) {		this.properties.putAll( extraProperties );		return this;	}	/**	 * Set a property	 */	public Configuration setProperty(String propertyName, String value) {		properties.setProperty( propertyName, value );		return this;	}	/**	 * Get a property	 */	public String getProperty(String propertyName) {		return properties.getProperty( propertyName );	}	private void addProperties(Element parent) {		Iterator iter = parent.elementIterator( "property" );		while ( iter.hasNext() ) {			Element node = ( Element ) iter.next();			String name = node.attributeValue( "name" );			String value = node.getText().trim();			log.debug( name + "=" + value );			properties.setProperty( name, value );			if ( !name.startsWith( "hibernate" ) ) properties.setProperty( "hibernate." + name, value );		}		Environment.verifyProperties( properties );	}	/**	 * Get the configuration file as an <tt>InputStream</tt>. Might be overridden	 * by subclasses to allow the configuration to be located by some arbitrary	 * mechanism.	 */	protected InputStream getConfigurationInputStream(String resource) throws HibernateException {		log.info( "Configuration resource: " + resource );		InputStream stream = Environment.class.getResourceAsStream( resource );		if ( stream == null ) stream = Thread.currentThread().getContextClassLoader().getResourceAsStream( resource );		if ( stream == null ) {			log.warn( resource + " not found" );			throw new HibernateException( resource + " not found" );		}		return stream;	}	/**	 * Use the mappings and properties specified in an application	 * resource named <tt>hibernate.cfg.xml</tt>.	 */	public Configuration configure() throws HibernateException {		configure( "/hibernate.cfg.xml" );		return this;	}	/**	 * Use the mappings and properties specified in the given application	 * resource. The format of the resource is defined in	 * <tt>hibernate-configuration-3.0.dtd</tt>.	 * <p/>	 * The resource is found via <tt>getConfigurationInputStream(resource)</tt>.	 */	public Configuration configure(String resource) throws HibernateException {		log.info( "configuring from resource: " + resource );		InputStream stream = getConfigurationInputStream( resource );		return doConfigure( stream, resource );	}	/**	 * Use the mappings and properties specified in the given document.	 * The format of the document is defined in	 * <tt>hibernate-configuration-2.2.dtd</tt>.	 *	 * @param url URL from which you wish to load the configuration	 * @return A configuration configured via the file	 * @throws HibernateException	 */	public Configuration configure(URL url) throws HibernateException {		log.info( "configuring from url: " + url.toString() );		try {			return doConfigure( url.openStream(), url.toString() );		}		catch ( IOException ioe ) {			throw new HibernateException( "could not configure from URL: " + url, ioe );		}	}	/**	 * Use the mappings and properties specified in the given application	 * file. The format of the file is defined in	 * <tt>hibernate-configuration-3.0.dtd</tt>.	 *

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美调教femdomvk| 成人福利视频网站| 亚洲国产精品99久久久久久久久| 91麻豆产精品久久久久久| 美女网站色91| 亚洲精品网站在线观看| 精品粉嫩超白一线天av| 欧美性一级生活| av中文一区二区三区| 麻豆久久久久久久| 亚洲一区二区三区四区中文字幕| 国产婷婷色一区二区三区| 欧美人与z0zoxxxx视频| 99久久精品国产麻豆演员表| 国产久卡久卡久卡久卡视频精品| 亚洲国产欧美在线| 自拍偷自拍亚洲精品播放| 国产亚洲精品久| 日韩精品在线网站| 777a∨成人精品桃花网| 91久久精品午夜一区二区| 成人高清视频免费观看| 国产一区二区三区免费在线观看| 人人精品人人爱| 亚洲国产乱码最新视频| 一区二区三区中文字幕在线观看| 中文字幕av一区二区三区高| 欧美videos中文字幕| 欧美精品久久天天躁| 在线亚洲+欧美+日本专区| 不卡大黄网站免费看| 国产69精品久久777的优势| 国产真实乱对白精彩久久| 日韩av一区二区三区四区| 日韩精品一二三| 午夜精品久久久久久久| 亚洲国产精品一区二区尤物区| heyzo一本久久综合| 国产高清成人在线| 国产九九视频一区二区三区| 国产精品亚洲综合一区在线观看| 精品一区二区三区的国产在线播放| 日本亚洲三级在线| 久久精品免费观看| 精品亚洲porn| 国内成人免费视频| 粉嫩av亚洲一区二区图片| 国产精品99久| 国产成人欧美日韩在线电影| 国产精品亚洲а∨天堂免在线| 国产高清亚洲一区| 成人一区二区三区视频在线观看 | 69堂成人精品免费视频| 欧美日韩精品是欧美日韩精品| 欧美日韩一区不卡| 日韩视频一区二区| 久久亚洲免费视频| 国产欧美日韩一区二区三区在线观看| 国产女同互慰高潮91漫画| 国产精品久久午夜| 一区二区三区免费网站| 偷拍亚洲欧洲综合| 精品一区二区在线观看| 成人午夜私人影院| 91激情在线视频| 91精品在线麻豆| 国产欧美日韩另类视频免费观看| 中文字幕一区二区三区四区| 一区二区三区视频在线看| 日韩高清中文字幕一区| 国产成人在线观看| 在线视频国内自拍亚洲视频| 日韩欧美一级二级三级久久久| 国产午夜亚洲精品不卡| 亚洲精品网站在线观看| 免费看日韩a级影片| 成人涩涩免费视频| 欧美猛男超大videosgay| 久久久久久**毛片大全| 亚洲精品国产一区二区精华液| 日本不卡不码高清免费观看| 日韩免费看的电影| 中文字幕亚洲精品在线观看| 日韩成人免费电影| 成人免费视频视频| 欧美一二三区在线观看| 国产精品高潮呻吟| 男男视频亚洲欧美| 91视频精品在这里| 精品成人佐山爱一区二区| 亚洲欧美日韩一区| 久久99久久久久| 欧美无乱码久久久免费午夜一区| 欧美va亚洲va| 一区二区激情视频| 国产成人在线视频免费播放| 欧美日韩亚洲另类| 中文字幕日韩精品一区| 久久成人免费网站| 精品视频全国免费看| 国产精品美女久久久久av爽李琼 | 国产精品久久国产精麻豆99网站| 亚洲福利一二三区| 不卡高清视频专区| 久久人人爽人人爽| 日韩精品成人一区二区三区| heyzo一本久久综合| 久久久国产精华| 另类调教123区| 欧美日韩一区高清| 亚洲人成人一区二区在线观看| 国产综合色视频| 91精品国产品国语在线不卡| 亚洲激情欧美激情| 99视频在线精品| 国产亚洲美州欧州综合国| 青青青爽久久午夜综合久久午夜 | www.日韩在线| 久久久三级国产网站| 久久精品国产亚洲高清剧情介绍| 欧美亚洲国产一区二区三区va| 国产精品国产精品国产专区不片| 韩国一区二区在线观看| 精品国产乱码久久久久久老虎| 午夜视频在线观看一区二区| 欧美在线free| 一区二区三区不卡视频在线观看| 国产精品网站在线播放| 国产乱码字幕精品高清av| 日韩欧美国产一二三区| 男人的天堂亚洲一区| 欧美一级高清片| 免费的国产精品| 欧美xxxx老人做受| 国产一区二区主播在线| 精品国产成人在线影院 | 综合欧美亚洲日本| 91在线精品一区二区| 日韩美女视频一区| 91色|porny| 亚洲一区二区三区在线播放| 欧美日韩精品综合在线| 日韩精品电影在线| 欧美不卡一区二区| 国产成人午夜高潮毛片| 国产精品素人视频| 97精品视频在线观看自产线路二| 亚洲欧美日韩国产综合| 欧美日韩一区二区三区在线 | 亚洲精品一二三| 91成人免费在线| 午夜一区二区三区在线观看| 7777精品伊人久久久大香线蕉超级流畅 | 日本成人在线网站| 欧美一区二区播放| 久久精品国产免费| 欧美国产日韩一二三区| 97久久精品人人做人人爽50路| 一区二区三区精品视频| 777亚洲妇女| 韩国女主播成人在线观看| 国产乱码精品一区二区三区av| 国产日本欧美一区二区| 色综合一区二区三区| 婷婷久久综合九色综合绿巨人| 日韩丝袜情趣美女图片| 国产经典欧美精品| 亚洲免费在线视频一区 二区| 欧美日本一区二区在线观看| 九九精品一区二区| ㊣最新国产の精品bt伙计久久| 色婷婷综合久久久久中文一区二区 | 欧美一区二区黄| 国产风韵犹存在线视精品| 亚洲免费三区一区二区| 欧美一级高清大全免费观看| 成人免费观看男女羞羞视频| 亚洲国产sm捆绑调教视频| 26uuu亚洲综合色欧美| 在线观看亚洲精品| 国产欧美va欧美不卡在线 | 成人综合在线观看| 一区二区三区中文字幕| 日韩免费一区二区| 91免费国产在线| 久久国产福利国产秒拍| 一个色综合av| 久久久久久久综合日本| 欧美日韩一区二区三区视频| 国产在线看一区| 午夜一区二区三区视频| 国产精品久久国产精麻豆99网站| 8x福利精品第一导航| 91小宝寻花一区二区三区| 久久精品国产成人一区二区三区 | 亚洲美女在线国产| 久久综合久久综合久久| 欧美三级乱人伦电影| www.成人网.com| 日韩一级在线观看|