Class DefaultServiceImpl<ID,​T extends AbstractEntity<ID>>

  • Type Parameters:
    ID - the type of the primary key of the entity
    T - the type of the entity
    All Implemented Interfaces:
    BaseService<ID,​T>

    public class DefaultServiceImpl<ID,​T extends AbstractEntity<ID>>
    extends BaseServiceImpl<ID,​T>
    Default implementation of BaseService for dealing with simple entities
    Author:
    Bas Rutten
    • Constructor Detail

      • DefaultServiceImpl

        public DefaultServiceImpl​(com.querydsl.core.types.dsl.EntityPathBase<T> dslRoot,
                                  Class<T> entityClass)
        Constructor - no unique property
        Parameters:
        dslRoot - the DSL root
        entityClass - the entity class
      • DefaultServiceImpl

        public DefaultServiceImpl​(com.querydsl.core.types.dsl.EntityPathBase<T> dslRoot,
                                  Class<T> entityClass,
                                  String[] uniquePropertyIds)
        Constructor - with unique property, not case sensitive
        Parameters:
        dslRoot - the DSL root
        entityClass - the entity class
        uniquePropertyIds - the unique property name
      • DefaultServiceImpl

        public DefaultServiceImpl​(com.querydsl.core.types.dsl.EntityPathBase<T> dslRoot,
                                  Class<T> entityClass,
                                  String[] uniquePropertyIds,
                                  boolean uniqueCaseSensitive)
        Constructor
        Parameters:
        dslRoot - the QueryDSL root
        entityClass - the entity class
        uniquePropertyIds -
        uniqueCaseSensitive -
      • DefaultServiceImpl

        public DefaultServiceImpl​(BaseDao<ID,​T> dao)
        Parameters:
        dao -
      • DefaultServiceImpl

        public DefaultServiceImpl​(BaseDao<ID,​T> dao,
                                  String... uniquePropertyIds)
        Constructor
        Parameters:
        dao - the DAO
        uniquePropertyIds - the name of the property that must be unique
      • DefaultServiceImpl

        public DefaultServiceImpl​(BaseDao<ID,​T> dao,
                                  String[] uniquePropertyIds,
                                  boolean uniqueCaseSensitive)
        Constructor
        Parameters:
        dao - the DAO used to retrieve the data
        uniquePropertyIds - the unique property
        uniqueCaseSensitive - whether the unique property is case sensitive