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 |
cleanupSessionAndResult(org.hibernate.Session session,
OperationResult result) |
SqlRepositoryConfiguration |
getConfiguration() |
MatchingRuleRegistry |
getMatchingRuleRegistry() |
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 |
handleGeneralException(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 |
setMatchingRuleRegistry(MatchingRuleRegistry matchingRuleRegistry) |
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)
public MatchingRuleRegistry getMatchingRuleRegistry()
public void setMatchingRuleRegistry(MatchingRuleRegistry matchingRuleRegistry)
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 handleGeneralException(Exception ex, 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)
Copyright © 2014 evolveum. All rights reserved.