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

org.xblackcat.sjpu.storage.consumer.IRowConsumer Maven / Gradle / Ivy

Go to download

Service for generating DB access logic in simple way via interfaces and annotations

There is a newer version: 2.0
Show newest version
package org.xblackcat.sjpu.storage.consumer;

import org.xblackcat.sjpu.storage.ConsumeException;

/**
 * Process (consume) an object after conversion from result row. If object can't be consumed a
 * {@linkplain org.xblackcat.sjpu.storage.ConsumeException ConsumeException} should be thrown.
 *
 * @author xBlackCat
 */
public interface IRowConsumer {
    /**
     * Consume an object mapped from query result set row.
     *
     * @param o object to consume
     * @return true to stop consuming rows
     * @throws ConsumeException if passed object can't be consumed
     */
    boolean consume(O o) throws ConsumeException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy