@Component public class BaseHelper extends Object
Constructor and Description |
---|
BaseHelper() |
Modifier and Type | Method and Description |
---|---|
org.hibernate.Session |
beginReadOnlyTransaction() |
org.hibernate.Session |
beginTransaction() |
org.hibernate.Session |
beginTransaction(boolean readOnly) |
void |
cleanupSessionAndResult(org.hibernate.Session session,
OperationResult result) |
SQLException |
findSqlException(Throwable ex) |
SqlRepositoryConfiguration |
getConfiguration() |
org.hibernate.SessionFactory |
getSessionFactory() |
org.springframework.orm.hibernate4.LocalSessionFactoryBean |
getSessionFactoryBean() |
void |
handleGeneralCheckedException(Exception ex,
org.hibernate.Session session,
OperationResult result) |
void |
handleGeneralException(Exception ex,
org.hibernate.Session session,
OperationResult result) |
void |
handleGeneralRuntimeException(RuntimeException ex,
org.hibernate.Session session,
OperationResult result) |
int |
logOperationAttempt(String oid,
String operation,
int attempt,
RuntimeException ex,
OperationResult result) |
void |
rollbackTransaction(org.hibernate.Session session) |
void |
rollbackTransaction(org.hibernate.Session session,
Exception ex,
OperationResult result,
boolean fatal) |
void |
rollbackTransaction(org.hibernate.Session session,
Exception ex,
String message,
OperationResult result,
boolean fatal) |
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory) |
public org.hibernate.SessionFactory getSessionFactory()
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
public org.springframework.orm.hibernate4.LocalSessionFactoryBean getSessionFactoryBean()
public org.hibernate.Session beginReadOnlyTransaction()
public org.hibernate.Session beginTransaction()
public org.hibernate.Session beginTransaction(boolean readOnly)
public SqlRepositoryConfiguration getConfiguration()
public void rollbackTransaction(org.hibernate.Session session)
public void rollbackTransaction(org.hibernate.Session session, Exception ex, OperationResult result, boolean fatal)
public void rollbackTransaction(org.hibernate.Session session, Exception ex, String message, OperationResult result, boolean fatal)
public void cleanupSessionAndResult(org.hibernate.Session session, OperationResult result)
public void handleGeneralException(Exception ex, org.hibernate.Session session, OperationResult result)
public void handleGeneralRuntimeException(RuntimeException ex, org.hibernate.Session session, OperationResult result)
public void handleGeneralCheckedException(Exception ex, org.hibernate.Session session, OperationResult result)
public int logOperationAttempt(String oid, String operation, int attempt, RuntimeException ex, OperationResult result)
public SQLException findSqlException(Throwable ex)
Copyright © 2016 evolveum. All rights reserved.