Beispiel #1
0
 private QueryBuilder<T, ID> checkQueryBuilderMethod(String methodName) throws SQLException {
   if (statementBuilder instanceof QueryBuilder) {
     return (QueryBuilder<T, ID>) statementBuilder;
   } else {
     throw new SQLException(
         "Cannot call " + methodName + " on a statement of type " + statementBuilder.getType());
   }
 }