com.heliorm.def.Executable Maven / Gradle / Ivy
The newest version!
package com.heliorm.def;
import com.heliorm.OrmException;
import java.util.List;
import java.util.Optional;
import java.util.stream.Stream;
/**
* @param Object type
* @author gideon
*/
public interface Executable {
/**
* Query data and return a list of POJOs.
*
* @return The list
*/
List list() throws OrmException;
/**
* Query data and return a stream of POJOs.
*
* @return The stream
*/
Stream stream() throws OrmException;
O one() throws OrmException;
Optional optional() throws OrmException;
}