Class JdbcHelper

java.lang.Object
com.valqueries.JdbcHelper

public class JdbcHelper extends Object
  • Constructor Details

    • JdbcHelper

      public JdbcHelper(Connection connection)
  • Method Details

    • update

      public UpdateResult update(OrmStatement statement)
    • update

      public void update(String sql)
    • query

      public <T> List<T> query(OrmStatement statement, IRowMapper<T> rowMapper)
    • streamQuery

      public <T> Stream<T> streamQuery(OrmStatement statement, IRowMapper<T> rowMapper, boolean autoClose)
    • close

      public void close()
    • rollback

      public void rollback()
    • commit

      public void commit()
    • isDebug

      public static boolean isDebug()
    • setDebug

      public static void setDebug(boolean debug)
    • setCalendarTimeZone

      @Deprecated(since="2024-04-17") public static void setCalendarTimeZone(TimeZone calendarTimeZone)
      Deprecated.
      Do not use this method unless you have a very good reason to do so. In that case, please contact us first, to confirm that it is indeed a very good reason. Note that you have to call it on the very first run when updating past the version that introduced it, before any migrations from that version are ran. Also, once used, it has to be used forever with the same argument.
    • getCalendar

      public static Calendar getCalendar()
    • getDialectType

      public DialectType getDialectType()
      Returns:
      The dialect type of the current connection
      See Also: