com.talk2object.plum.repository.biz.interafce.Collection Maven / Gradle / Ivy
package com.talk2object.plum.repository.biz.interafce;
import java.io.Serializable;
import java.util.List;
import com.talk2object.plum.domain.repository.search.condition.Condition;
/***
*
* collection is for one type of entity. it maps a table.
*
* @author jack
*
* @param
*/
public interface Collection {
long size();
List getAll();
T get(Serializable id);
List getByPage(int pageLength, int pageNumber);
void add(T entity);
void update(T entity);
void remove(T entity);
List find(Condition condition);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy