Class QueryStatement<T>
java.lang.Object
com.djrapitops.plan.storage.database.queries.QueryStatement<T>
- All Implemented Interfaces:
Query<T>
- Direct Known Subclasses:
ExtensionUserIdsInGroupQuery
,HasMoreThanZeroQueryStatement
,NewerConfigQuery
,QueryAllStatement
SQL query that closes proper elements.
-
Constructor Summary
ModifierConstructorDescriptionprotected
QueryStatement
(String sql) protected
QueryStatement
(String sql, int fetchSize) -
Method Summary
Modifier and TypeMethodDescriptionboolean
executeQuery
(SQLDB db) executeQuery
(PreparedStatement statement) executeWithConnection
(Connection connection) getSql()
int
hashCode()
abstract void
prepare
(PreparedStatement statement) abstract T
processResults
(ResultSet set) toString()
-
Constructor Details
-
QueryStatement
-
QueryStatement
-
-
Method Details
-
executeQuery
- Specified by:
executeQuery
in interfaceQuery<T>
-
executeWithConnection
-
executeQuery
- Throws:
SQLException
-
prepare
- Throws:
SQLException
-
processResults
- Throws:
SQLException
-
getSql
-
toString
-
equals
-
hashCode
public int hashCode()
-