org.domdrides.ibatis.repository
Class IbatisRepository<EntityType extends org.domdrides.entity.Entity<IdType>,IdType extends Serializable>

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.ibatis.support.SqlMapClientDaoSupport
          extended by 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

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
IbatisRepository(Class<EntityType> entityClass)
           
 
Method Summary
 EntityType add(EntityType entity)
           
 boolean contains(EntityType entity)
           
 String getAddId()
           
 Set<EntityType> getAll()
           
 EntityType getById(IdType id)
           
 String getGetAllId()
           
 String getGetByIdId()
           
 String getRemoveId()
           
 String getSizeId()
           
 String getUpdateId()
           
 void remove(EntityType entity)
           
 void setAddId(String addId)
           
 void setGetAllId(String getAllId)
           
 void setGetByIdId(String getByIdId)
           
 void setRemoveId(String removeId)
           
 void setSizeId(String sizeId)
           
 void setUpdateId(String updateId)
           
 int size()
           
 EntityType update(EntityType entity)
           
 
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
 

Constructor Detail

IbatisRepository

public IbatisRepository(Class<EntityType> entityClass)
Method Detail

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.