Examples of updateObject()


Examples of java.sql.ResultSet.updateObject()

        ResultSet rs = s.executeQuery("select * from t");
        assertTrue(rs.next());

        try {
            rs.updateObject("x", 1, null);
            fail("updateObject should fail when type is null");
        } catch (SQLException se) { assertUnimplemented( se ); }

        try {
            rs.updateObject(1, 1, null);
View Full Code Here

Examples of java.sql.ResultSet.updateObject()

            rs.updateObject("x", 1, null);
            fail("updateObject should fail when type is null");
        } catch (SQLException se) { assertUnimplemented( se ); }

        try {
            rs.updateObject(1, 1, null);
            fail("updateObject should fail when type is null");
        } catch (SQLException se) { assertUnimplemented( se ); }

        try {
            rs.updateObject("x", 1, null, 1);
View Full Code Here

Examples of java.sql.ResultSet.updateObject()

            rs.updateObject(1, 1, null);
            fail("updateObject should fail when type is null");
        } catch (SQLException se) { assertUnimplemented( se ); }

        try {
            rs.updateObject("x", 1, null, 1);
            fail("updateObject should fail when type is null");
        } catch (SQLException se) { assertUnimplemented( se ); }

        try {
            rs.updateObject(1, 1, null, 1);
View Full Code Here

Examples of java.sql.ResultSet.updateObject()

            rs.updateObject("x", 1, null, 1);
            fail("updateObject should fail when type is null");
        } catch (SQLException se) { assertUnimplemented( se ); }

        try {
            rs.updateObject(1, 1, null, 1);
            fail("updateObject should fail when type is null");
        } catch (SQLException se) { assertUnimplemented( se ); }

        // There should be no more rows.
        JDBC.assertEmpty(rs);
View Full Code Here

Examples of java.sql.ResultSet.updateObject()

  public void testArray() throws SQLException {
    Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
    stmt.executeUpdate("INSERT INTO updateable (id, intarr) VALUES (1, '{1,2,3}'::int4[])");
    ResultSet rs = stmt.executeQuery("SELECT id, intarr FROM updateable");
    assertTrue(rs.next());
    rs.updateObject(2, rs.getArray(2));
    rs.updateRow();

    Array arr = rs.getArray(2);
    assertEquals(Types.INTEGER, arr.getBaseType());
    Integer[] intarr = (Integer[]) arr.getArray();
View Full Code Here

Examples of javax.sql.rowset.spi.SyncResolver.updateObject()

            fail("should throw UnsupportedOperationException");
        } catch (UnsupportedOperationException e) {
            // expected
        }
        try {
            resolver.updateObject(100, null);
            fail("should throw UnsupportedOperationException");
        } catch (UnsupportedOperationException e) {
            // expected
        }
        try {
View Full Code Here

Examples of kpi.asoiu.dao.SimpleDAO.updateObject()

        }
        for (TripletEntity tripletEntity : tripletEntities) {
            tripletEntity.setId(simpleDAO.addObjects(tripletEntity));
        }
        article.setTriplets(tripletEntities);
        simpleDAO.updateObject(article);
    }

    private TripletEntity createEntityFromTriplet(Triplet triplet, Map<String, SubjectsEntity> subjects) {
        TripletEntity tripletEntity = new TripletEntity();
        tripletEntity.setObject(triplet.getObject());
View Full Code Here

Examples of org.olat.core.commons.persistence.DB.updateObject()

      return null;
    }
    // Update DB entry
    rating.setRating(newRatingValue);
    DB db = DBFactory.getInstance();
    db.updateObject(rating);
    return rating;
  }

  /**
   * Helper method to check if the given commerating has the same resource and
View Full Code Here

Examples of org.olat.core.commons.persistence.DB.updateObject()

      return null;
    }
    // Update DB entry
    comment.setComment(newCommentText);
    DB db = DBFactory.getInstance();
    db.updateObject(comment);
    return comment;
  }

  /**
   * @see org.olat.core.commons.services.commentAndRating.UserCommentsManager#deleteComment(org.olat.core.commons.services.commentAndRating.model.UserComment, boolean)
View Full Code Here

Examples of org.olat.core.commons.persistence.DB.updateObject()

    } else {
      // To not delete the replies we have to set the parent to the parent
      // of the original comment for each reply
      for (UserComment reply : replies) {
        reply.setParent(comment.getParent());
        db.updateObject(reply);
      }
    }
    // Now delete this comment and finish
    db.deleteObject(comment);
    return counter+1;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.