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

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

?? configuration.java

?? 通過系統(tǒng)把幾乎所有與人力資源相關(guān)的數(shù)據(jù)統(tǒng)一管理
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
	/**	 * 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) {			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-2.0.dtd</tt>.	 *	 * 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.0.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-2.0.dtd</tt>.	 *	 * @param configFile <tt>File</tt> from which you wish to load the configuration	 * @return A configuration configured via the file	 * @throws HibernateException	 */	public Configuration configure(File configFile) throws HibernateException {		log.info( "configuring from file: " + configFile.getName() );		try {			return doConfigure( new FileInputStream(configFile), configFile.toString() );		}		catch (FileNotFoundException fnfe) {			throw new HibernateException("could not find file: " + configFile, fnfe);		}	}	/**	 * Use the mappings and properties specified in the given application	 * resource. The format of the resource is defined in	 * <tt>hibernate-configuration-2.0.dtd</tt>.	 *	 * @param stream Inputstream to be read from	 * @param resourceName The name to use in warning/error messages	 * @return A configuration configured via the stream	 * @throws HibernateException	 */	protected Configuration doConfigure(InputStream stream, String resourceName) throws HibernateException {		org.dom4j.Document doc;		try {			List errors = new ArrayList();			doc = XMLHelper.createSAXReader(resourceName, errors).read( new InputSource(stream) );			if ( errors.size()!=0 ) throw new MappingException( "invalid configuration", (Throwable) errors.get(0) );		}		catch (Exception e) {			log.error("problem parsing configuration" + resourceName, e);			throw new HibernateException("problem parsing configuration" + resourceName, e);		}		finally {			try{				stream.close();			} 			catch (IOException ioe){				log.error("could not close stream on: " + resourceName, ioe);				}		}				return doConfigure(doc);	}	/**	 * Use the mappings and properties specified in the given XML document.	 * The format of the file is defined in	 * <tt>hibernate-configuration-2.0.dtd</tt>.	 *	 * @param document an XML document from which you wish to load the configuration	 * @return A configuration configured via the <tt>Document</tt>	 * @throws HibernateException if there is problem in accessing the file.	 */	public Configuration configure(Document document) throws HibernateException {		log.info("configuring from XML document");		org.dom4j.Document doc;		try {			doc = XMLHelper.createDOMReader().read(document);		}		catch (Exception e) {			log.error("problem parsing document", e);			throw new HibernateException("problem parsing document", e);		}		return doConfigure(doc);	}	protected Configuration doConfigure(org.dom4j.Document doc) throws HibernateException {		Element sfNode = doc.getRootElement().element("session-factory");		String name = sfNode.attributeValue("name");		if (name!=null) properties.setProperty(Environment.SESSION_FACTORY_NAME, name);		addProperties(sfNode);		Iterator elements = sfNode.elementIterator();		while ( elements.hasNext() ) {			Element mapElement = (Element) elements.next();			String elemname = mapElement.getName();			if ( "mapping".equals(elemname) ) {				Attribute rsrc = mapElement.attribute("resource");				Attribute file = mapElement.attribute("file");				Attribute jar = mapElement.attribute("jar");				if (rsrc!=null) {					log.debug(name + "<-" + rsrc);					try {						addResource( rsrc.getValue(), Thread.currentThread().getContextClassLoader() );					}					catch (MappingException me) {						addResource( rsrc.getValue(), Environment.class.getClassLoader() );					}				}				else if ( jar!=null ) {					log.debug(name + "<-" + jar);					addJar( jar.getValue() );				}				else {					if (file==null) throw new MappingException("<mapping> element in configuration specifies no attributes");					log.debug(name + "<-" + file);					addFile( file.getValue() );				}			}			else if ( "jcs-class-cache".equals(elemname) || "class-cache".equals(elemname) ) {				String className = mapElement.attributeValue("class");				final Class clazz;				try {					clazz = ReflectHelper.classForName(className);				}				catch (ClassNotFoundException cnfe) {					throw new MappingException("Could not find class: " + className, cnfe);				}				Attribute regionNode = mapElement.attribute("region");				final String region = (regionNode==null) ? className : regionNode.getValue();				CacheConcurrencyStrategy cache = CacheFactory.createCache(					mapElement, region, getRootClassMapping(clazz).isMutable()				);				setCacheConcurrencyStrategy(clazz, cache, region);			}			else if ( "jcs-collection-cache".equals(elemname) || "collection-cache".equals(elemname) ) {				String role = mapElement.attributeValue("collection");				Collection collection = getCollectionMapping(role);				Attribute regionNode = mapElement.attribute("region");				final String region = (regionNode==null) ? role : regionNode.getValue();				CacheConcurrencyStrategy cache = CacheFactory.createCache( 					mapElement, region, collection.getOwner().isMutable()				);				setCacheConcurrencyStrategy(role, cache, region);			}		}		log.info("Configured SessionFactory: " + name);		log.debug("properties: " + properties);		return this;	}		RootClass getRootClassMapping(Class clazz) throws MappingException {		try {			return (RootClass) getClassMapping(clazz);		}		catch (ClassCastException cce) {			throw new MappingException("You may only specify a cache for root <class> mappings");		}	}		/**	 * Set up a cache for an entity class	 * @param clazz	 * @param concurrencyStrategy	 * @return Configuration	 * @throws MappingException	 */	public Configuration setCacheConcurrencyStrategy(Class clazz, CacheConcurrencyStrategy concurrencyStrategy) 	throws MappingException {		setCacheConcurrencyStrategy( clazz, concurrencyStrategy, clazz.getName() );		return this;	}		void setCacheConcurrencyStrategy(Class clazz, CacheConcurrencyStrategy concurrencyStrategy, String region) 	throws MappingException {		RootClass rootClass = getRootClassMapping(clazz);		rootClass.setCache(concurrencyStrategy);		caches.put( rootClass.getMappedClass().getName(), concurrencyStrategy );	}		/**	 * Set up a cache for a collection role	 * @param collectionRole	 * @param concurrencyStrategy	 * @return Configuration	 * @throws MappingException	 */	public Configuration setCacheConcurrencyStrategy(String collectionRole, CacheConcurrencyStrategy concurrencyStrategy) 	throws MappingException {		setCacheConcurrencyStrategy(collectionRole, concurrencyStrategy, collectionRole);		return this;	}		void setCacheConcurrencyStrategy(String collectionRole, CacheConcurrencyStrategy concurrencyStrategy, String region) 	throws MappingException {		Collection collection = getCollectionMapping(collectionRole);		collection.setCache(concurrencyStrategy);		Object old = caches.put( collection.getRole(), concurrencyStrategy );		if (old!=null) throw new MappingException("duplicate cache region");	}		protected void configureCaches(Settings settings) throws HibernateException {				//TODO: this is actually broken, I guess, since changing the		//      cache provider property and rebuilding the SessionFactory		//      will affect existing SessionFactory!		log.info("instantiating and configuring caches");				String prefix = properties.getProperty(Environment.CACHE_REGION_PREFIX);				Iterator iter = caches.entrySet().iterator();		while ( iter.hasNext() ) {			Map.Entry me = (Map.Entry) iter.next();			String name = (String) me.getKey();			if (prefix != null)			    name = prefix + "." + name;			CacheConcurrencyStrategy strat = (CacheConcurrencyStrategy) me.getValue();			if ( log.isDebugEnabled() ) log.debug("instantiating cache " + name);			Cache cache;			try {				cache = settings.getCacheProvider().buildCache(name, properties);			}			catch (CacheException e) {				throw new HibernateException( "Could not instantiate Cache", e );			}			strat.setCache(cache);			strat.setMinimalPuts( settings.isMinimalPutsEnabled() );		}				caches.clear();	}	/**	 * Get the query language imports	 *	 * @return a mapping from "import" names to fully qualified class names	 */	public Map getImports() {		return imports;	}	/**	 * Create an object-oriented view of the configuration properties	 */	protected Settings buildSettings() throws HibernateException {		return SettingsFactory.buildSettings(properties);	}	public Map getNamedSQLQueries() {		return namedSqlQueries;	}	/**	 * @return the NamingStrategy.	 */	public NamingStrategy getNamingStrategy() {		return namingStrategy;	}	/**	 * Set a custom naming strategy	 * 	 * @param namingStrategy the NamingStrategy to set	 */	public void setNamingStrategy(NamingStrategy namingStrategy) {		this.namingStrategy = namingStrategy;	}}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
粉嫩一区二区三区性色av| 91尤物视频在线观看| 久久天堂av综合合色蜜桃网| 激情综合网av| 亚洲精品一区二区三区99| 国产毛片精品视频| 国产精品不卡在线| 在线观看亚洲a| 日韩av一级电影| 久久久久久日产精品| 99在线热播精品免费| 亚洲精品美腿丝袜| 6080亚洲精品一区二区| 九九**精品视频免费播放| 国产人伦精品一区二区| 91网站最新网址| 午夜精品久久久久影视| 欧美成人激情免费网| 岛国av在线一区| 一区二区三区不卡视频在线观看| 欧美猛男gaygay网站| 国内偷窥港台综合视频在线播放| 国产精品你懂的在线欣赏| 在线视频一区二区三区| 另类小说综合欧美亚洲| 中文在线免费一区三区高中清不卡| 色老头久久综合| 麻豆视频观看网址久久| 国产精品动漫网站| 91精品啪在线观看国产60岁| 国产一区二区精品久久| 亚洲黄网站在线观看| 欧美成人免费网站| 91免费观看视频在线| 美日韩一级片在线观看| 中文字幕一区av| 91麻豆精品91久久久久久清纯| 国产美女av一区二区三区| 亚洲一区在线观看免费| 亚洲大型综合色站| 国产一区二区三区在线观看精品| 国产成人在线免费| 一区二区三区精品在线观看| 欧美一区二区三区成人| 不卡一区二区中文字幕| 日韩高清在线观看| 国产精品护士白丝一区av| 91.com在线观看| av在线一区二区| 老司机午夜精品| 亚洲精品成人少妇| 久久免费美女视频| 欧美日韩国产小视频| 成人晚上爱看视频| 日韩精品一级二级 | 国产原创一区二区三区| 亚洲特级片在线| 欧美成人欧美edvon| 色呦呦国产精品| 国产精品自拍在线| 三级一区在线视频先锋| 中文字幕亚洲电影| www一区二区| 4438x亚洲最大成人网| 91免费视频网址| 国产成人一区在线| 日韩av中文在线观看| 一区二区三区四区在线| 国产女主播视频一区二区| 日韩三级精品电影久久久| 色婷婷综合久久久久中文一区二区| 国产一区二区三区四区五区美女| 精品国产青草久久久久福利| 成人免费福利片| 亚洲午夜视频在线| 中文字幕在线观看一区二区| 亚洲精品在线电影| 91精品欧美福利在线观看| 在线视频你懂得一区二区三区| 成人午夜免费av| 国产麻豆午夜三级精品| 久久国产日韩欧美精品| 天堂影院一区二区| 一区二区成人在线| 亚洲视频电影在线| 国产精品久久久久影院亚瑟| 久久这里都是精品| 日韩免费观看高清完整版在线观看| 欧美日韩精品一二三区| 91久久精品一区二区三区| av成人老司机| 成人国产在线观看| 粉嫩av一区二区三区在线播放| 26uuu久久综合| 91精品国产高清一区二区三区| 欧美日韩久久久| 欧洲av一区二区嗯嗯嗯啊| 91视频.com| 91麻豆精品在线观看| 99久久精品情趣| av爱爱亚洲一区| 不卡视频在线观看| av一本久道久久综合久久鬼色| 福利一区二区在线| 国产成人h网站| 国产一区二区伦理片| 国产精品自拍在线| 国产凹凸在线观看一区二区| 国产乱子轮精品视频| 日韩欧美区一区二| 91一区二区三区在线观看| 在线播放中文一区| 欧美视频在线观看一区二区| 91福利在线看| 欧美日韩亚洲综合在线 欧美亚洲特黄一级 | 国精产品一区一区三区mba桃花 | 亚洲国产精品黑人久久久| 欧美激情自拍偷拍| 国产精品久久福利| 亚洲色图另类专区| 亚洲精品成a人| 亚洲va欧美va天堂v国产综合| 亚洲成人久久影院| 日本中文字幕不卡| 国内成+人亚洲+欧美+综合在线| 国产伦精品一区二区三区视频青涩 | 91视频观看免费| 色天天综合色天天久久| 欧美三日本三级三级在线播放| 91精品91久久久中77777| 欧美三级日韩三级| 日韩一区二区在线观看视频播放| 欧美成人精品1314www| 久久综合资源网| 国产精品久久久久久福利一牛影视 | 91精品国产欧美一区二区成人| 欧美网站大全在线观看| 欧美军同video69gay| 日韩欧美国产一区在线观看| 久久久精品免费观看| 一区在线播放视频| 亚洲国产精品久久艾草纯爱| 青青草成人在线观看| 国产资源在线一区| av不卡一区二区三区| 欧美日韩国产经典色站一区二区三区| 91精品国产欧美一区二区18| 久久嫩草精品久久久久| ...中文天堂在线一区| 午夜久久久影院| 国产精品正在播放| 亚洲欧美偷拍三级| 亚洲精品国产一区二区精华液| 午夜成人在线视频| 国产精品99久久久久久有的能看| 99久久精品免费看| 这里只有精品视频在线观看| 久久九九久久九九| 一区二区三区在线观看国产| 蜜桃91丨九色丨蝌蚪91桃色| 成人久久久精品乱码一区二区三区| 91国偷自产一区二区三区观看 | 久久99精品久久久久| 不卡一卡二卡三乱码免费网站| 欧美日韩亚洲高清一区二区| 久久亚洲春色中文字幕久久久| 亚洲欧美一区二区三区久本道91| 青草国产精品久久久久久| 成人天堂资源www在线| 在线成人午夜影院| 国产精品色哟哟网站| 日本vs亚洲vs韩国一区三区| 成人综合婷婷国产精品久久| 欧美久久久久中文字幕| 国产精品视频线看| 青青草原综合久久大伊人精品优势| 不卡的电影网站| 91精品国产乱码久久蜜臀| 中文字幕一区在线| 久久精品国产久精国产| 亚洲精品成人在线| 国产一区二区三区av电影| 在线观看亚洲专区| 欧美激情一区不卡| 青青草国产精品亚洲专区无| 91亚洲国产成人精品一区二区三| 日韩无一区二区| 一二三四社区欧美黄| 国产综合成人久久大片91| 欧美日韩电影在线播放| 国产精品久久久久7777按摩| 九九精品视频在线看| 欧美日韩亚洲综合| 136国产福利精品导航| 国产九九视频一区二区三区| 欧美日韩精品欧美日韩精品一综合| 国产精品拍天天在线| 九色综合国产一区二区三区| 欧美色精品在线视频| 中文字幕亚洲在|