EntityService

public interface EntityService<T, Q>{
	
	public Object home(Q query);

	public Iterable<?> findForm(Q query, EntityPageable pageable);

	public Iterable<?> find(Q query, EntityPageable pageable);
	
	public Object read(T entity) ;
	
	public Object createForm(T entity);
	
	public Object create(T entity) ;
	
	public Object updateForm(T entity);
	
	public Object update(T entity) ;
	
	public Object delete(T entity);

	public boolean validate(T entity);

	public boolean reset(T entity);

}
		

T : Entity Object

Q : Entity Query Object