Class QueryAPIQuery<T>
- java.lang.Object
-
- com.djrapitops.plan.storage.database.queries.QueryAPIQuery<T>
-
-
Constructor Summary
Constructors Constructor Description QueryAPIQuery(java.lang.String sql, QueryService.ThrowingFunction<java.sql.PreparedStatement,T> performQuery)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
T
executeQuery(SQLDB db)
T
executeWithConnection(java.sql.Connection connection)
int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
QueryAPIQuery
public QueryAPIQuery(java.lang.String sql, QueryService.ThrowingFunction<java.sql.PreparedStatement,T> performQuery)
-
-
Method Detail
-
executeQuery
public T executeQuery(SQLDB db)
- Specified by:
executeQuery
in interfaceQuery<T>
-
executeWithConnection
public T executeWithConnection(java.sql.Connection connection)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-