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

io.ifar.skidroad.jdbi.JDBILogFileDAOWithArraySupport Maven / Gradle / Ivy

There is a newer version: 9
Show newest version
package io.ifar.skidroad.jdbi;

import io.ifar.skidroad.LogFile;
import org.joda.time.DateTime;
import org.skife.jdbi.v2.ResultIterator;

import java.util.Set;

/**
 * Extend JDBILogFileDAO for more efficient queries against Databases such as Postgres that have array support.
 */
public interface JDBILogFileDAOWithArraySupport extends JDBILogFileDAO {

    ResultIterator findByOwnerAndState(String ownerUri, Set states);

    Long totalSize(Set states, DateTime startDate, DateTime endDate);

    int count(Set states);

    int count(Set states, DateTime startDate, DateTime endDate);

    ResultIterator listLogFilesByDateAndState(Set state, DateTime startDate, DateTime endDate);

    void close();

    ResultIterator listLogFilesByOwnerAndDateAndState(Set states, String s, DateTime startDate, DateTime endDate);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy