public class SqlBaseService extends Object
Constructor and Description |
---|
SqlBaseService(SqlRepositoryFactory repositoryFactory) |
Modifier and Type | Method and Description |
---|---|
protected org.hibernate.Session |
beginTransaction() |
protected org.hibernate.Session |
beginTransaction(boolean readOnly) |
protected void |
cleanup(Class entity,
CleanupPolicyType policy,
OperationResult subResult) |
protected int |
cleanupAttempt(Class entity,
Date minValue,
org.hibernate.Session session) |
protected void |
cleanupSessionAndResult(org.hibernate.Session session,
OperationResult result) |
SqlRepositoryConfiguration |
getConfiguration() |
SqlPerformanceMonitor |
getPerformanceMonitor() |
PrismContext |
getPrismContext() |
org.hibernate.SessionFactory |
getSessionFactory() |
protected org.springframework.orm.hibernate4.LocalSessionFactoryBean |
getSessionFactoryBean() |
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) |
public SqlBaseService(SqlRepositoryFactory repositoryFactory)
public SqlRepositoryConfiguration getConfiguration()
public SqlPerformanceMonitor getPerformanceMonitor()
protected org.springframework.orm.hibernate4.LocalSessionFactoryBean getSessionFactoryBean()
public PrismContext getPrismContext()
public void setPrismContext(PrismContext prismContext)
public org.hibernate.SessionFactory getSessionFactory()
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
protected int logOperationAttempt(String oid, String operation, int attempt, RuntimeException ex, OperationResult result)
protected org.hibernate.Session beginTransaction()
protected org.hibernate.Session beginTransaction(boolean readOnly)
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)
protected void cleanupSessionAndResult(org.hibernate.Session session, OperationResult result)
protected void handleGeneralRuntimeException(RuntimeException ex, org.hibernate.Session session, OperationResult result)
protected void handleGeneralCheckedException(Exception ex, org.hibernate.Session session, OperationResult result)
protected void cleanup(Class entity, CleanupPolicyType policy, OperationResult subResult)
Copyright © 2013 evolveum. All rights reserved.