org.xblackcat.sjpu.storage.consumer.IRowConsumer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sjpu-dbah Show documentation
Show all versions of sjpu-dbah Show documentation
Service for generating DB access logic in simple way via interfaces and annotations
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