Package com.totsp.gwittir.client.util.html5db

Examples of com.totsp.gwittir.client.util.html5db.TransactionTask


  @Override
  public void storeWindowContextData(
      final Map<String, String> windowContextData) {
                db.run(
                        new TransactionTask() {

                            public void run(Transaction tx) {
                               tx.execute("DELETE FROM windowcontext ", new String[0], new ResultsCallback(){

                                public void onSuccess(Transaction tx, ResultSet rs) {
View Full Code Here


  @Override
  public void init(final WindowContextCallback listener) {

    db = Databases.openDatabase("gwittir-windowcontext", "1.0",
        "This gwittir window context database", QUOTA);
    db.run(new TransactionTask() {
      public void run(Transaction tx) {
        tx.execute("SELECT COUNT(*) FROM windowcontext", null,
            new ResultsCallback() {
              public void onSuccess(Transaction tx, ResultSet rs) {
                                                                GWT.log("windowcontext found", null);
View Full Code Here

*/
public class DBTest {
    public static void doInsert() {
        Database db = Databases.openDatabase("gwittir-windowcontext", "1.0",
                "This is the gwittir test db", 512000);
        db.run(new TransactionTask() {
                public void run(Transaction tx) {
                    tx.execute("SELECT COUNT(*) FROM Gwittir", null,
                        new ResultsCallback() {
                            public void onSuccess(Transaction tx, ResultSet rs) {
                                Window.alert("Worked!");
View Full Code Here

  }

  @Override
  public void storeWindowContextData(
      final Map<String, String> windowContextData) {
    db.run(new TransactionTask() {
      public void run(Transaction tx) {
        for (Entry<String, String> entry : windowContextData.entrySet()) {
          tx
              .execute(
                  "INSERT INTO windowcontext (key, value) VALUES ( ?, ? )",
View Full Code Here

  @Override
  public void init(final WindowContextCallback listener) {

    db = Databases.openDatabase("gwittir-windowcontext", "1.0",
        "This gwittir window context database", QUOTA);
    db.run(new TransactionTask() {
      public void run(Transaction tx) {
        tx.execute("SELECT COUNT(*) FROM windowcontext", null,
            new ResultsCallback() {
              public void onSuccess(Transaction tx, ResultSet rs) {
                tx.execute(
View Full Code Here

TOP

Related Classes of com.totsp.gwittir.client.util.html5db.TransactionTask

Copyright © 2018 www.massapicom. 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.