Subversion Repositories SmartDukaan

Rev

Rev 24168 | Rev 24592 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 24168 Rev 24383
Line 10... Line 10...
10
import org.springframework.stereotype.Repository;
10
import org.springframework.stereotype.Repository;
11
 
11
 
12
@Repository
12
@Repository
13
@Transactional
13
@Transactional
14
public interface GenericRepository {
14
public interface GenericRepository {
-
 
15
	public final String IS_NULL="IS_NULL";
-
 
16
	public final String IS_NOT_NULL="IS_NOT_NULL";
15
	public <T> void persist(Object object);
17
	public <T> void persist(Object object);
16
	
-
 
17
	public <T> void delete(Object object);
18
	public <T> void delete(Object object);
18
	public <T> List<T> selectAllOrderByDesc(Class<T> clazz, String orderByDescKey);
19
	public <T> List<T> selectAllOrderByDesc(Class<T> clazz, String orderByDescKey);
19
	
20
	
20
	public <T> long selectCount(Class<T> clazz);
21
	public <T> long selectCount(Class<T> clazz);
21
	public <T> long selectCountByNotNull(Class<T> clazz, String notNullKey);
22
	public <T> long selectCountByNotNull(Class<T> clazz, String notNullKey);