Class OpenbravoJDBCPersistenceSupport


  • public class OpenbravoJDBCPersistenceSupport
    extends Object
    Provides utility methods related with the JDBC persistence
    • Method Detail

      • setBooleanValue

        public static void setBooleanValue​(PreparedStatement ps,
                                           int index,
                                           boolean val)
                                    throws SQLException
        Sets the designated parameter to the given Java String value, after replacing a boolean with its String representation
        Throws:
        SQLException
      • getBooleanValue

        public static boolean getBooleanValue​(ResultSet rs,
                                              String columnName)
                                       throws SQLException
        Given a ResultSet and a columnName, returns a boolean after replacing the string contained in the ResultSet by its boolean representation
        Throws:
        SQLException
      • getBooleanValue

        public static boolean getBooleanValue​(ResultSet rs,
                                              int columnIndex)
                                       throws SQLException
        Given a ResultSet and a column index, returns a boolean after replacing the string contained in the ResultSet by its boolean representation
        Throws:
        SQLException