com.discursive.dao.generic.hibernate.FinderExecutor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of generic-dao Show documentation
Show all versions of generic-dao Show documentation
A generics DAO pattern/library
The newest version!
package com.discursive.dao.generic.hibernate;
import java.lang.reflect.Method;
import java.util.Iterator;
import java.util.List;
import org.hibernate.LockMode;
import org.hibernate.ScrollableResults;
public interface FinderExecutor {
List executeFinder(Method method, final Object[] queryArgs, LockMode lockMode);
Iterator executeIterator(Method method, final Object[] queryArgs, LockMode lockMode);
ScrollableResults executeScroller(Method method, final Object[] queryArgs, LockMode lockMode);
T executeUnique(Method method, final Object[] queryArgs, LockMode lockMode);
Long executeCount(Method method, final Object[] queryArgs, LockMode lockMode);
}