com.atlassian.confluence.cluster.safety
Class HibernateClusterSafetyDao

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate.support.HibernateDaoSupport
          extended by com.atlassian.confluence.cluster.safety.HibernateClusterSafetyDao
All Implemented Interfaces:
ClusterSafetyDao, org.springframework.beans.factory.InitializingBean

public class HibernateClusterSafetyDao
extends org.springframework.orm.hibernate.support.HibernateDaoSupport
implements ClusterSafetyDao


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
HibernateClusterSafetyDao()
           
 
Method Summary
 java.lang.Integer getSafetyNumber()
          Returns the current cluster safety number.
 boolean safetyNumberExists()
           
 void setSafetyNumber(int safetyNumber)
           
 
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateClusterSafetyDao

public HibernateClusterSafetyDao()
Method Detail

getSafetyNumber

public java.lang.Integer getSafetyNumber()
Description copied from interface: ClusterSafetyDao
Returns the current cluster safety number.

Specified by:
getSafetyNumber in interface ClusterSafetyDao
Returns:
the cluster safety number, or null if no cluster safety number exists.

safetyNumberExists

public boolean safetyNumberExists()
Specified by:
safetyNumberExists in interface ClusterSafetyDao
Returns:
whether or not a safety number has been written to the database

setSafetyNumber

public void setSafetyNumber(int safetyNumber)
Specified by:
setSafetyNumber in interface ClusterSafetyDao


Copyright © 2003-2014 Atlassian. All Rights Reserved.