List of usage examples for org.hibernate FlushMode COMMIT
FlushMode COMMIT
To view the source code for org.hibernate FlushMode COMMIT.
Click Source Link
From source file:com.gisgraphy.domain.geoloc.importer.GeonamesCountryImporter.java
License:Open Source License
@Override protected void setCommitFlushMode() { this.languageDao.setFlushMode(FlushMode.COMMIT); this.countryDao.setFlushMode(FlushMode.COMMIT); }
From source file:com.gisgraphy.domain.geoloc.importer.GeonamesFeatureImporter.java
License:Open Source License
@Override protected void setCommitFlushMode() { this.cityDao.setFlushMode(FlushMode.COMMIT); this.gisFeatureDao.setFlushMode(FlushMode.COMMIT); this.alternateNameDao.setFlushMode(FlushMode.COMMIT); this.admDao.setFlushMode(FlushMode.COMMIT); }
From source file:com.gisgraphy.domain.geoloc.importer.GeonamesLanguageImporter.java
License:Open Source License
@Override protected void setCommitFlushMode() { this.languageDao.setFlushMode(FlushMode.COMMIT); }
From source file:com.gisgraphy.domain.geoloc.importer.OpenStreetMapImporter.java
License:Open Source License
@Override protected void setCommitFlushMode() { this.openStreetMapDao.setFlushMode(FlushMode.COMMIT); }
From source file:com.gisgraphy.importer.GeonamesZipCodeSimpleImporter.java
License:Open Source License
@Override protected void setCommitFlushMode() { this.gisFeatureDao.setFlushMode(FlushMode.COMMIT); this.cityDao.setFlushMode(FlushMode.COMMIT); this.admDao.setFlushMode(FlushMode.COMMIT); this.zipCodeDao.setFlushMode(FlushMode.COMMIT); }
From source file:com.gisgraphy.importer.OpenStreetMapCitiesSimpleImporter.java
License:Open Source License
@Override protected void setCommitFlushMode() { this.cityDao.setFlushMode(FlushMode.COMMIT); }
From source file:com.gisgraphy.importer.OpenStreetMapHouseNumberSimpleImporter.java
License:Open Source License
@Override protected void setCommitFlushMode() { this.openStreetMapDao.setFlushMode(FlushMode.COMMIT); this.houseNumberDao.setFlushMode(FlushMode.COMMIT); }
From source file:com.gisgraphy.importer.OpenStreetMapPoisSimpleImporter.java
License:Open Source License
@Override protected void setCommitFlushMode() { this.gisFeatureDao.setFlushMode(FlushMode.COMMIT); }
From source file:com.gisgraphy.importer.OpenStreetMapSimpleImporter.java
License:Open Source License
@Override protected void setCommitFlushMode() { this.openStreetMapDao.setFlushMode(FlushMode.COMMIT); this.cityDao.setFlushMode(FlushMode.COMMIT); }
From source file:com.globalsight.persistence.hibernate.HibernateUtil.java
License:Apache License
/** * Gets a session from ThreadLocal./* ww w . j a v a 2 s . c o m*/ * * @return session */ public static Session getSession() throws HibernateException { Session session = sessionContext.get(); if (session == null || !session.isOpen()) { session = sessionFactory.openSession(); session.setFlushMode(FlushMode.COMMIT); sessionContext.set(session); s_logger.debug("Hibernate open session"); } return session; }