Package org.itracker.persistence.dao

This package contains all Data Access Object (XxxDAO) interfaces along with their Hibernate implementations (XxxDAOImpl).

See:
          Description

Interface Summary
BaseDAO<T extends Entity>  
ComponentDAO Component Data Access Object interface.
ConfigurationDAO  
CustomFieldDAO  
CustomFieldValueDAO  
IssueActivityDAO  
IssueAttachmentDAO  
IssueDAO Issue Data Access Object interface.
IssueHistoryDAO  
IssueRelationDAO  
LanguageDAO  
NotificationDAO  
PermissionDAO  
ProjectDAO  
ProjectScriptDAO Interface to define basic operations to deal with the ProjectScript entity
ReportDAO  
UserDAO User Data Access Object interface.
UserPreferencesDAO  
VersionDAO  
WorkflowScriptDAO Interface to define basic operations to deal with the WorkflowScript entity
 

Class Summary
AbstractEnumUserType Base class for custom Hibernate UserTypes to persist a Java 5 enum constant.
BaseHibernateDAOImpl<T extends Entity> Contains common behaviour to all hibernate factories
ComponentDAOImpl  
ConfigurationDAOImpl  
CustomFieldDAOImpl  
CustomFieldValueDAOImpl  
EnumCodeUserType Custom Hibernate UserType to persist a Java 5 enum constant that implement IntCodeEnum as an INTEGER using its integer code.
EnumNameUserType Custom Hibernate UserType to persist a Java 5 enum constant as a VARCHAR using its name.
EnumOrdinalUserType Custom Hibernate UserType to persist a Java 5 enum constant as an INTEGER using its ordinal position.
IntBooleanType A Hibernate UserType to map a Java boolean or java.lang.Boolean property to an SQL column of type INT with the values 0 (= false) or 1 (= true).
IssueActivityDAOImpl  
IssueAttachmentDAOImpl Persistence Hibernate POJO
IssueDAOImpl Default implementation of IssueDAO using Hibernate.
IssueHistoryDAOImpl  
IssueRelationDAOImpl  
LanguageDAOImpl  
NotificationDAOImpl  
PermissionDAOImpl  
ProjectDAOImpl This is the implementation bean that seems to make the Hibernate request.
ProjectScriptDAOImpl ProjectScript DAO implementation.
ReportDAOImpl  
TimestampInterceptor A Hibernate Interceptor that automatically sets the createDate and lastModifiedDate of any AbstractEntity instance that is inserted or updated.
UserDAOImpl  
UserPreferencesDAOImpl  
VersionDAOImpl Hibernate implementation of VersionDAO interface
WorkflowScriptDAOImpl  
 

Exception Summary
NoSuchEntityException  
 

Package org.itracker.persistence.dao Description

This package contains all Data Access Object (XxxDAO) interfaces along with their Hibernate implementations (XxxDAOImpl).

DAO interfaces are implementation independent : all DAO methods throw org.springframework.dao.DataAccessException instead of implementation-specific exceptions like java.sql.SQLException or org.hibernate.HibernateException.
Since this is a general convention, DAO methods don't need to specify it in their throws clause.

DAO implementations that don't use Spring's HibernateTemplate and callbacks must explicitly catch HibernateExceptions and convert them to DataAccessExceptions by wrapping all Hibernate code that can throw such exceptions like this:

      try {
          getSession()...
      } catch (HibernateException ex) {
          throw convertHibernateAccessException(ex);
      }
 

Session management (opening and closing the Hibernate session) is handled automatically by the HibernateTransactionManager or an AOP interceptor, if a DAO method is invoked outside the scope of a transaction.

Since:
3.0


Copyright © 2002-2012 itracker. All Rights Reserved.