edu.sc.seis.fissuresUtil.hibernate
Class AbstractHibernateDB
java.lang.Object
edu.sc.seis.fissuresUtil.hibernate.AbstractHibernateDB
- Direct Known Subclasses:
- EventDB, NetworkDB, PlottableDB, SeismogramFileRefDB
public abstract class AbstractHibernateDB
- extends java.lang.Object
Method Summary |
static void |
commit()
commits the current session that is associated with the current thread. |
protected static org.hibernate.Session |
createSession()
|
static void |
deploySchema()
|
static void |
flush()
|
static org.hibernate.StatelessSession |
getReadOnlySession()
|
static org.hibernate.Session |
getSession()
|
protected static java.util.HashSet<edu.iris.Fissures.model.UnitImpl> |
getUnitCache()
|
protected static edu.iris.Fissures.model.UnitImpl |
intern(edu.iris.Fissures.model.UnitImpl unit)
|
static void |
internUnit(edu.iris.Fissures.Location loc)
|
static void |
internUnit(edu.iris.Fissures.Quantity q)
|
static boolean |
isSessionOpen()
|
static void |
rollback()
rolls back the current session that is associated with the current thread. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEBUG_SESSION_CREATION
public static boolean DEBUG_SESSION_CREATION
DEBUG_SESSION_CREATION_SECONDS
public static int DEBUG_SESSION_CREATION_SECONDS
AbstractHibernateDB
public AbstractHibernateDB()
deploySchema
public static void deploySchema()
createSession
protected static org.hibernate.Session createSession()
getReadOnlySession
public static org.hibernate.StatelessSession getReadOnlySession()
isSessionOpen
public static boolean isSessionOpen()
getSession
public static org.hibernate.Session getSession()
flush
public static void flush()
commit
public static void commit()
- commits the current session that is associated with the current thread.
rollback
public static void rollback()
- rolls back the current session that is associated with the current thread.
internUnit
public static void internUnit(edu.iris.Fissures.Location loc)
internUnit
public static void internUnit(edu.iris.Fissures.Quantity q)
intern
protected static edu.iris.Fissures.model.UnitImpl intern(edu.iris.Fissures.model.UnitImpl unit)
getUnitCache
protected static java.util.HashSet<edu.iris.Fissures.model.UnitImpl> getUnitCache()