Examples of Prepare()


Examples of org.h2.command.Parser.prepare()

     * @return the prepared statement
     */
    public Prepared prepare(String sql, boolean rightsChecked) {
        Parser parser = new Parser(this);
        parser.setRightsChecked(rightsChecked);
        return parser.prepare(sql);
    }

    /**
     * Parse and prepare the given SQL statement.
     * This method also checks if the connection has been closed.
View Full Code Here

Examples of org.h2.command.dml.Insert.prepare()

                    insert = new Insert(session);
                    insert.setSortedInsertMode(sortedInsertMode);
                    insert.setQuery(asQuery);
                    insert.setTable(table);
                    insert.setInsertFromSelect(true);
                    insert.prepare();
                    insert.update();
                } finally {
                    session.setUndoLogEnabled(old);
                }
            }
View Full Code Here

Examples of org.h2.command.dml.Query.prepare()

        try {
            read("AS");
            read("(");
            Query withQuery = parseSelect();
            read(")");
            withQuery.prepare();
            querySQL = StringUtils.fromCacheOrNew(withQuery.getPlanSQL());
        } finally {
            session.removeLocalTempTable(recursiveTable);
        }
        int id = database.allocateObjectId();
View Full Code Here

Examples of org.h2.engine.Session.prepare()

            p.setProperty("password", getPassword());
            ConnectionInfo ci = new ConnectionInfo("jdbc:h2:" + testDatabase + ";FILE_LOCK=NO;TRACE_LEVEL_FILE=0", p);
            Database database = new Database(ci, null);
            // close the database
            Session session = database.getSystemSession();
            session.prepare("shutdown immediately").update();
            database.removeSession(null);
            // everything OK - return
            return;
        } catch (DbException e) {
            SQLException e2 = DbException.toSQLException(e);
View Full Code Here

Examples of org.h2.test.db.Db.prepare()

        db.execute("update test0 set b = null where b = 9");
        db.execute("update test0 set c = null where c = 9");
        db.execute("insert into test1 select * from test0");

        // this failed at some point
        Prepared p = db.prepare("select * from test0 where b in(" +
                "select a from test1 where a <? and a not in(" +
                "select c from test1 where b <=10 and a in(" +
                "select a from test1 where b =1 or b =2 and b not in(2))) or c <>a) " +
                "and c in(0, 10) and c in(10, 0, 0) order by 1, 2, 3");
        p.set(1);
View Full Code Here

Examples of org.hibernate.cfg.CollectionPropertyHolder.prepare()

            collValue.setOrderBy( orderBy );
          }
        }
      }
      else {
        holder.prepare( property );

        SimpleValueBinder elementBinder = new SimpleValueBinder();
        elementBinder.setMappings( mappings );
        elementBinder.setReturnedClassName( collType.getName() );
        if ( elementColumns == null || elementColumns.length == 0 ) {
View Full Code Here

Examples of org.hibernate.hql.ast.tree.ConstructorNode.prepare()

    methodNode.resolve( inSelect );
  }

  protected void processConstructor(AST constructor) throws SemanticException {
    ConstructorNode constructorNode = ( ConstructorNode ) constructor;
    constructorNode.prepare();
  }

    protected void setAlias(AST selectExpr, AST ident) {
        ((SelectExpression) selectExpr).setAlias(ident.getText());
    }
View Full Code Here

Examples of org.hibernate.hql.internal.ast.tree.ConstructorNode.prepare()

  }

  @Override
  protected void processConstructor(AST constructor) throws SemanticException {
    ConstructorNode constructorNode = (ConstructorNode) constructor;
    constructorNode.prepare();
  }

  @Override
  protected void setAlias(AST selectExpr, AST ident) {
    ( (SelectExpression) selectExpr ).setAlias( ident.getText() );
View Full Code Here

Examples of org.hibernate.jdbc.Expectation.prepare()

                  expectation = Expectations.appropriateExpectation( getDeleteCheckStyle() );
                  useBatch = expectation.canBeBatched();
                  st = useBatch
                      ? session.getBatcher().prepareBatchCallableStatement( sql )
                            : session.getBatcher().prepareCallableStatement( sql );
                  offset += expectation.prepare( st );
                }
                else {
                  st = session.getBatcher().prepareBatchStatement( getSQLDeleteRowString() );
                }
              }
View Full Code Here

Examples of org.hornetq.api.core.client.ClientSession.prepare()

               ClientMessage msg = consumer.receive(10000);
               assertNotNull(msg);
               msg.acknowledge();
            }
            sessionConsumer.end(xid, XAResource.TMSUCCESS);
            sessionConsumer.prepare(xid);
            sessionConsumer.close();
         }

         ClientSession sessionCheck = sf.createSession(true, true);
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.