Examples of executeUpdate()


Examples of javax.persistence.TypedQuery.executeUpdate()

    expect(em.getTransaction()).andReturn(et);
    expect(et.isActive()).andReturn(true);
    expect(em.createQuery("UPDATE ClusterEntity SET provisioningState = " +
      ":provisioningState", ClusterEntity.class)).andReturn(query);
    expect(query.setParameter("provisioningState", State.INSTALLED)).andReturn(null);
    expect(query.executeUpdate()).andReturn(0);
   
    upgradeCatalog.updateConfigurationProperties("hbase-site",
        Collections.singletonMap("hbase.regionserver.info.port", "60030"), false);
    expectLastCall();
View Full Code Here

Examples of jodd.db.DbQuery.executeUpdate()

    if (isPersistent(ded, entity) == false) {
      DbQuery q;
      if (keysGeneratedByDatabase == true) {
        q = query(insert(entity));
        q.setGeneratedKey();
        q.executeUpdate();
        long nextId = q.getGeneratedKey();
        setEntityId(ded, entity, nextId);
      } else {
        long nextId = generateNextId(ded);
        setEntityId(ded, entity, nextId);
View Full Code Here

Examples of l2p.database.FiltredPreparedStatement.executeUpdate()

      {
        con = L2DatabaseFactory.getInstance().getConnection();
        statement = con.prepareStatement("UPDATE characters SET accesslevel=? WHERE obj_Id=?");
        statement.setInt(1, acc_level);
        statement.setInt(2, obj_id);
        statement.executeUpdate();
        DatabaseUtils.closeStatement(statement);
        if(acc_level < 0)
        {
          int endban;
          if(period == -1)
View Full Code Here

Examples of l2p.database.FiltredStatement.executeUpdate()

    FiltredStatement statement = null;
    try
    {
      con = L2DatabaseFactory.getInstance().getConnection();
      statement = con.createStatement();
      statement.executeUpdate("UPDATE epic_boss_spawn SET respawnDate=" + _respawnDate / 1000 + ", state=" + _state.ordinal() + " WHERE bossId=" + _bossId);
      _log.info("update EpicBossState: ID:" + _bossId + ", RespawnDate:" + _respawnDate / 1000 + ", State:" + _state.toString());
    }
    catch(Exception e)
    {
      _log.warn("Exeption on update EpicBossState: ID " + _bossId + ", RespawnDate:" + _respawnDate / 1000 + ", State:" + _state.toString(), e);
View Full Code Here

Examples of net.sf.xbus.technical.database.DBConnection.executeUpdate()

      DBConnection dbcon = DBConnection.getInstance(dbConnectionName);

      if ((dbcon.getUrl() != null)
          && (dbcon.getUrl().startsWith("jdbc:hsqldb")))
      {
        dbcon.executeUpdate("shutdown compact");
      }
    }
    catch (XException e)
    {
      System.exit(1);
View Full Code Here

Examples of oracle.jdbc.driver.OracleCallableStatement.executeUpdate()

            // Register the output parameter as cursor.
            cstmt.registerOutParameter(1, oracle.jdbc.driver.OracleTypes.CURSOR);

            // Call the stored procedure to insert the data.
            try {
                cstmt.executeUpdate();

                // If the Procedure node had the IdColumnName attribute set,
                // retrieve the ID value using the column name.
                Console.displayDev("ID column name: ", idColumnName, true, "scb");
View Full Code Here

Examples of org.adbcj.Connection.executeUpdate()

  public void testRollback() throws Exception {
    Connection connection = connectionManager.connect().get();
    try {
      // Clear out updates table
      Result result = connection.executeUpdate("DELETE FROM updates").get();
      assertNotNull(result);

      // Make sure updates is empty
      ResultSet rs = connection.executeQuery("SELECT id FROM updates").get();
      assertNotNull(rs);
View Full Code Here

Examples of org.apache.hadoop.hbase.hbql.client.HPreparedStatement.executeUpdate()

                this.getCachedMappingsMap().remove(mappingName);

            final String sql = "DELETE FROM " + SYSTEM_MAPPINGS + " WITH KEYS ?";
            final HPreparedStatement stmt = this.getConnection().prepareStatement(sql);
            stmt.setParameter(1, mappingName);
            final int cnt = stmt.executeUpdate().getCount();
            return cnt > 0;
        }
    }

    public synchronized TableMapping createMapping(final boolean isTemp,
View Full Code Here

Examples of org.apache.hadoop.hbase.hbql.client.HStatement.executeUpdate()

        return stmt.executeQueryAndFetch(sql, clazz);
    }

    public ExecutionResults executeUpdate(final String sql) throws HBqlException {
        final HStatement stmt = this.createStatement();
        return stmt.executeUpdate(sql);
    }

    // Mapping Routines
    public boolean mappingExists(final String mappingName) throws HBqlException {
        return this.getMappingManager().mappingExists(mappingName);
View Full Code Here

Examples of org.apache.metamodel.MockUpdateableDataContext.executeUpdate()

        assertEquals(2, ds.getRow().getValue(0));
        assertTrue(ds.next());
        assertEquals(3, ds.getRow().getValue(0));
        assertFalse(ds.next());

        dc.executeUpdate(new UpdateScript() {
            @Override
            public void run(UpdateCallback callback) {
                callback.insertInto(table).value("foo", 4).value("bar", "heidiho!").execute();
            }
        });
View Full Code Here
TOP
Copyright © 2015 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.