Package com.iizix.server.db
Interface DBOperation<RESULT>
- Type Parameters:
RESULT
- The return value.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface DBOperation<RESULT>
The database function to perform.- Author:
- Christopher Mindus
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RESULT
run(java.sql.Connection conn)
Runs the function with the specified connection without performing commit.
Method Detail
run
RESULT run(java.sql.Connection conn) throws java.sql.SQLException
Runs the function with the specified connection without performing commit.- Parameters:
conn
- The JDBC connection.- Returns:
- The return property container, or null for none.
- Throws:
java.sql.SQLException
- For SQL errors.