All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy