org.domdrides.ibatis.repository
Class IbatisRepository<EntityType extends org.domdrides.entity.Entity<IdType>,IdType extends Serializable>
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.ibatis.support.SqlMapClientDaoSupport
org.domdrides.ibatis.repository.IbatisRepository<EntityType,IdType>
- All Implemented Interfaces:
- org.domdrides.repository.Repository<EntityType,IdType>, org.springframework.beans.factory.InitializingBean
public class IbatisRepository<EntityType extends org.domdrides.entity.Entity<IdType>,IdType extends Serializable>
- extends org.springframework.orm.ibatis.support.SqlMapClientDaoSupport
- implements org.domdrides.repository.Repository<EntityType,IdType>
An iBATIS-based repository implementation
- Since:
- 1.0
Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
Methods inherited from class org.springframework.orm.ibatis.support.SqlMapClientDaoSupport |
checkDaoConfig, getDataSource, getSqlMapClient, getSqlMapClientTemplate, setDataSource, setSqlMapClient, setSqlMapClientTemplate |
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 |
IbatisRepository
public IbatisRepository(Class<EntityType> entityClass)
add
@Transactional
public EntityType add(EntityType entity)
- Specified by:
add
in interface org.domdrides.repository.Repository<EntityType extends org.domdrides.entity.Entity<IdType>,IdType extends Serializable>
contains
@Transactional(readOnly=true)
public boolean contains(EntityType entity)
- Specified by:
contains
in interface org.domdrides.repository.Repository<EntityType extends org.domdrides.entity.Entity<IdType>,IdType extends Serializable>
getAll
@Transactional(readOnly=true)
public Set<EntityType> getAll()
- Specified by:
getAll
in interface org.domdrides.repository.Repository<EntityType extends org.domdrides.entity.Entity<IdType>,IdType extends Serializable>
getById
@Transactional(readOnly=true)
public EntityType getById(IdType id)
- Specified by:
getById
in interface org.domdrides.repository.Repository<EntityType extends org.domdrides.entity.Entity<IdType>,IdType extends Serializable>
remove
@Transactional
public void remove(EntityType entity)
- Specified by:
remove
in interface org.domdrides.repository.Repository<EntityType extends org.domdrides.entity.Entity<IdType>,IdType extends Serializable>
update
@Transactional
public EntityType update(EntityType entity)
- Specified by:
update
in interface org.domdrides.repository.Repository<EntityType extends org.domdrides.entity.Entity<IdType>,IdType extends Serializable>
size
@Transactional(readOnly=true)
public int size()
- Specified by:
size
in interface org.domdrides.repository.Repository<EntityType extends org.domdrides.entity.Entity<IdType>,IdType extends Serializable>
getSizeId
public String getSizeId()
setSizeId
public void setSizeId(String sizeId)
getAddId
public String getAddId()
setAddId
public void setAddId(String addId)
getGetAllId
public String getGetAllId()
setGetAllId
public void setGetAllId(String getAllId)
getGetByIdId
public String getGetByIdId()
setGetByIdId
public void setGetByIdId(String getByIdId)
getRemoveId
public String getRemoveId()
setRemoveId
public void setRemoveId(String removeId)
getUpdateId
public String getUpdateId()
setUpdateId
public void setUpdateId(String updateId)
Copyright © 2013. All Rights Reserved.