public abstract class AbstractHibernateDB
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG_SESSION_CREATION |
static int |
DEBUG_SESSION_CREATION_SECONDS |
Constructor and Description |
---|
AbstractHibernateDB() |
Modifier and Type | Method and Description |
---|---|
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 |
deploySchema(boolean failOnException) |
static void |
flush() |
static org.hibernate.StatelessSession |
getReadOnlySession() |
static org.hibernate.Session |
getSession() |
static java.lang.Object |
getTXID()
this should probably only be called for postgres databases.
|
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.
|
public static boolean DEBUG_SESSION_CREATION
public static int DEBUG_SESSION_CREATION_SECONDS
public static java.lang.Object getTXID()
public static void deploySchema() throws java.lang.Exception
java.lang.Exception
public static void deploySchema(boolean failOnException) throws java.lang.Exception
java.lang.Exception
protected static org.hibernate.Session createSession()
public static org.hibernate.StatelessSession getReadOnlySession()
public static boolean isSessionOpen()
public static org.hibernate.Session getSession()
public static void flush()
public static void commit()
public static void rollback()
public static void internUnit(edu.iris.Fissures.Location loc)
public static void internUnit(edu.iris.Fissures.Quantity q)
protected static edu.iris.Fissures.model.UnitImpl intern(edu.iris.Fissures.model.UnitImpl unit)
protected static java.util.HashSet<edu.iris.Fissures.model.UnitImpl> getUnitCache()