com.evolveum.midpoint.repo.sql
Class SqlBaseService
java.lang.Object
com.evolveum.midpoint.repo.sql.SqlBaseService
- Direct Known Subclasses:
- SqlAuditServiceImpl, SqlRepositoryServiceImpl
public class SqlBaseService
- extends Object
- Author:
- lazyman
Method Summary |
protected org.hibernate.Session |
beginTransaction()
|
protected org.hibernate.Session |
beginTransaction(boolean readOnly)
|
protected void |
cleanupSessionAndResult(org.hibernate.Session session,
OperationResult result)
|
PrismContext |
getPrismContext()
|
org.hibernate.SessionFactory |
getSessionFactory()
|
protected void |
handleGeneralCheckedException(Exception ex,
org.hibernate.Session session,
OperationResult result)
|
protected void |
handleGeneralRuntimeException(RuntimeException ex,
org.hibernate.Session session,
OperationResult result)
|
protected int |
logOperationAttempt(String oid,
String operation,
int attempt,
RuntimeException ex,
OperationResult result)
|
protected void |
rollbackTransaction(org.hibernate.Session session)
|
protected void |
rollbackTransaction(org.hibernate.Session session,
Exception ex,
OperationResult result,
boolean fatal)
|
protected void |
rollbackTransaction(org.hibernate.Session session,
Exception ex,
String message,
OperationResult result,
boolean fatal)
|
void |
setPrismContext(PrismContext prismContext)
|
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SqlBaseService
public SqlBaseService()
getPrismContext
public PrismContext getPrismContext()
setPrismContext
public void setPrismContext(PrismContext prismContext)
getSessionFactory
public org.hibernate.SessionFactory getSessionFactory()
setSessionFactory
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
logOperationAttempt
protected int logOperationAttempt(String oid,
String operation,
int attempt,
RuntimeException ex,
OperationResult result)
beginTransaction
protected org.hibernate.Session beginTransaction()
beginTransaction
protected org.hibernate.Session beginTransaction(boolean readOnly)
rollbackTransaction
protected void rollbackTransaction(org.hibernate.Session session)
rollbackTransaction
protected void rollbackTransaction(org.hibernate.Session session,
Exception ex,
OperationResult result,
boolean fatal)
rollbackTransaction
protected void rollbackTransaction(org.hibernate.Session session,
Exception ex,
String message,
OperationResult result,
boolean fatal)
cleanupSessionAndResult
protected void cleanupSessionAndResult(org.hibernate.Session session,
OperationResult result)
handleGeneralRuntimeException
protected void handleGeneralRuntimeException(RuntimeException ex,
org.hibernate.Session session,
OperationResult result)
handleGeneralCheckedException
protected void handleGeneralCheckedException(Exception ex,
org.hibernate.Session session,
OperationResult result)
Copyright © 2013 evolveum. All Rights Reserved.