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 java.lang.Object
- Author:
- lazyman
Method Summary |
protected org.hibernate.Session |
beginTransaction()
|
protected void |
cleanupSessionAndResult(org.hibernate.Session session,
OperationResult result)
|
PrismContext |
getPrismContext()
|
org.hibernate.SessionFactory |
getSessionFactory()
|
protected void |
handleGeneralException(java.lang.Exception ex,
org.hibernate.Session session,
OperationResult result)
|
protected int |
logOperationAttempt(java.lang.String oid,
java.lang.String operation,
int attempt,
java.lang.RuntimeException ex,
OperationResult result)
|
protected void |
rollbackTransaction(org.hibernate.Session session)
|
protected void |
rollbackTransaction(org.hibernate.Session session,
java.lang.Exception ex,
OperationResult result,
boolean fatal)
|
protected void |
rollbackTransaction(org.hibernate.Session session,
java.lang.Exception ex,
java.lang.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(java.lang.String oid,
java.lang.String operation,
int attempt,
java.lang.RuntimeException ex,
OperationResult result)
beginTransaction
protected org.hibernate.Session beginTransaction()
rollbackTransaction
protected void rollbackTransaction(org.hibernate.Session session)
rollbackTransaction
protected void rollbackTransaction(org.hibernate.Session session,
java.lang.Exception ex,
OperationResult result,
boolean fatal)
rollbackTransaction
protected void rollbackTransaction(org.hibernate.Session session,
java.lang.Exception ex,
java.lang.String message,
OperationResult result,
boolean fatal)
cleanupSessionAndResult
protected void cleanupSessionAndResult(org.hibernate.Session session,
OperationResult result)
handleGeneralException
protected void handleGeneralException(java.lang.Exception ex,
org.hibernate.Session session,
OperationResult result)
Copyright © 2012 evolveum. All Rights Reserved.