Code example for PreparedStatement

Methods: setBytes

0
  private static final Logger LOG = LoggerFactory.getLogger(Utils.class); 
   
  private Utils() {} 
   
  public static void setBytes(PreparedStatement ps, int index, KUID value) throws SQLException {
    ps.setBytes(index, value.getBytes(false));
  } 
   
  public static void close(Connection c) {
    if (c != null) {
      try { 
        c.close();
      } catch (SQLException e) {
        LOG.trace("SQLException", e);
      } 
    } 
  } 
   
  public static void close(Statement s) {
    if (s != null) {
      try {