Examples of parseSequence()


Examples of net.sf.hajdbc.SequenceSupport.parseSequence()

      {
        SequenceSupport support = cluster.getDialect().getSequenceSupport();
       
        if (support != null)
        {
          String sequence = support.parseSequence(sql);
         
          if (sequence != null)
          {
            identifierSet.add(sequence);
          }
View Full Code Here

Examples of net.sf.hajdbc.SequenceSupport.parseSequence()

    SequenceSupport support = this.dialect.getSequenceSupport();
   
    assertEquals("sequence", support.parseSequence("SELECT sequence.nextval"));
    assertEquals("sequence", support.parseSequence("SELECT sequence.currval"));
    assertEquals("sequence", support.parseSequence("SELECT sequence.nextval, * FROM table"));
    assertEquals("sequence", support.parseSequence("SELECT sequence.currval, * FROM table"));
    assertEquals("sequence", support.parseSequence("INSERT INTO table VALUES (sequence.nextval, 0)"));
    assertEquals("sequence", support.parseSequence("INSERT INTO table VALUES (sequence.currval, 0)"));
    assertEquals("sequence", support.parseSequence("UPDATE table SET id = sequence.nextval"));
    assertEquals("sequence", support.parseSequence("UPDATE table SET id = sequence.currval"));
    assertNull(support.parseSequence("SELECT NEXT VALUE FOR sequence"));
View Full Code Here

Examples of net.sf.hajdbc.SequenceSupport.parseSequence()

   
    assertEquals("sequence", support.parseSequence("SELECT sequence.nextval"));
    assertEquals("sequence", support.parseSequence("SELECT sequence.currval"));
    assertEquals("sequence", support.parseSequence("SELECT sequence.nextval, * FROM table"));
    assertEquals("sequence", support.parseSequence("SELECT sequence.currval, * FROM table"));
    assertEquals("sequence", support.parseSequence("INSERT INTO table VALUES (sequence.nextval, 0)"));
    assertEquals("sequence", support.parseSequence("INSERT INTO table VALUES (sequence.currval, 0)"));
    assertEquals("sequence", support.parseSequence("UPDATE table SET id = sequence.nextval"));
    assertEquals("sequence", support.parseSequence("UPDATE table SET id = sequence.currval"));
    assertNull(support.parseSequence("SELECT NEXT VALUE FOR sequence"));
  }
View Full Code Here

Examples of net.sf.hajdbc.SequenceSupport.parseSequence()

    assertEquals("sequence", support.parseSequence("SELECT sequence.nextval"));
    assertEquals("sequence", support.parseSequence("SELECT sequence.currval"));
    assertEquals("sequence", support.parseSequence("SELECT sequence.nextval, * FROM table"));
    assertEquals("sequence", support.parseSequence("SELECT sequence.currval, * FROM table"));
    assertEquals("sequence", support.parseSequence("INSERT INTO table VALUES (sequence.nextval, 0)"));
    assertEquals("sequence", support.parseSequence("INSERT INTO table VALUES (sequence.currval, 0)"));
    assertEquals("sequence", support.parseSequence("UPDATE table SET id = sequence.nextval"));
    assertEquals("sequence", support.parseSequence("UPDATE table SET id = sequence.currval"));
    assertNull(support.parseSequence("SELECT NEXT VALUE FOR sequence"));
  }
 
View Full Code Here

Examples of net.sf.hajdbc.SequenceSupport.parseSequence()

    assertEquals("sequence", support.parseSequence("SELECT sequence.currval"));
    assertEquals("sequence", support.parseSequence("SELECT sequence.nextval, * FROM table"));
    assertEquals("sequence", support.parseSequence("SELECT sequence.currval, * FROM table"));
    assertEquals("sequence", support.parseSequence("INSERT INTO table VALUES (sequence.nextval, 0)"));
    assertEquals("sequence", support.parseSequence("INSERT INTO table VALUES (sequence.currval, 0)"));
    assertEquals("sequence", support.parseSequence("UPDATE table SET id = sequence.nextval"));
    assertEquals("sequence", support.parseSequence("UPDATE table SET id = sequence.currval"));
    assertNull(support.parseSequence("SELECT NEXT VALUE FOR sequence"));
  }
 
  /**
 
View Full Code Here

Examples of net.sf.hajdbc.SequenceSupport.parseSequence()

    assertEquals("sequence", support.parseSequence("SELECT sequence.nextval, * FROM table"));
    assertEquals("sequence", support.parseSequence("SELECT sequence.currval, * FROM table"));
    assertEquals("sequence", support.parseSequence("INSERT INTO table VALUES (sequence.nextval, 0)"));
    assertEquals("sequence", support.parseSequence("INSERT INTO table VALUES (sequence.currval, 0)"));
    assertEquals("sequence", support.parseSequence("UPDATE table SET id = sequence.nextval"));
    assertEquals("sequence", support.parseSequence("UPDATE table SET id = sequence.currval"));
    assertNull(support.parseSequence("SELECT NEXT VALUE FOR sequence"));
  }
 
  /**
   * {@inheritDoc}
 
View Full Code Here

Examples of net.sf.hajdbc.SequenceSupport.parseSequence()

    assertEquals("sequence", support.parseSequence("SELECT sequence.currval, * FROM table"));
    assertEquals("sequence", support.parseSequence("INSERT INTO table VALUES (sequence.nextval, 0)"));
    assertEquals("sequence", support.parseSequence("INSERT INTO table VALUES (sequence.currval, 0)"));
    assertEquals("sequence", support.parseSequence("UPDATE table SET id = sequence.nextval"));
    assertEquals("sequence", support.parseSequence("UPDATE table SET id = sequence.currval"));
    assertNull(support.parseSequence("SELECT NEXT VALUE FOR sequence"));
  }
 
  /**
   * {@inheritDoc}
   * @see net.sf.hajdbc.dialect.StandardDialectTest#getNextSequenceValueSQL()
View Full Code Here

Examples of net.sf.hajdbc.SequenceSupport.parseSequence()

   */
  @Override
  public void parseSequence() throws SQLException
  {
    SequenceSupport support = this.dialect.getSequenceSupport();
    assertEquals("sequence", support.parseSequence("SELECT GEN_ID(sequence, 1) FROM RDB$DATABASE"));
    assertEquals("sequence", support.parseSequence("SELECT GEN_ID(sequence, 1), * FROM table"));
    assertEquals("sequence", support.parseSequence("INSERT INTO table VALUES (GEN_ID(sequence, 1), 0)"));
    assertEquals("sequence", support.parseSequence("UPDATE table SET id = GEN_ID(sequence, 1)"));
    assertNull(support.parseSequence("SELECT NEXT VALUE FOR test"));
    assertNull(support.parseSequence("SELECT NEXT VALUE FOR test, * FROM table"));
View Full Code Here

Examples of net.sf.hajdbc.SequenceSupport.parseSequence()

  @Override
  public void parseSequence() throws SQLException
  {
    SequenceSupport support = this.dialect.getSequenceSupport();
    assertEquals("sequence", support.parseSequence("SELECT GEN_ID(sequence, 1) FROM RDB$DATABASE"));
    assertEquals("sequence", support.parseSequence("SELECT GEN_ID(sequence, 1), * FROM table"));
    assertEquals("sequence", support.parseSequence("INSERT INTO table VALUES (GEN_ID(sequence, 1), 0)"));
    assertEquals("sequence", support.parseSequence("UPDATE table SET id = GEN_ID(sequence, 1)"));
    assertNull(support.parseSequence("SELECT NEXT VALUE FOR test"));
    assertNull(support.parseSequence("SELECT NEXT VALUE FOR test, * FROM table"));
    assertNull(support.parseSequence("INSERT INTO table VALUES (NEXT VALUE FOR test)"));
View Full Code Here

Examples of net.sf.hajdbc.SequenceSupport.parseSequence()

  public void parseSequence() throws SQLException
  {
    SequenceSupport support = this.dialect.getSequenceSupport();
    assertEquals("sequence", support.parseSequence("SELECT GEN_ID(sequence, 1) FROM RDB$DATABASE"));
    assertEquals("sequence", support.parseSequence("SELECT GEN_ID(sequence, 1), * FROM table"));
    assertEquals("sequence", support.parseSequence("INSERT INTO table VALUES (GEN_ID(sequence, 1), 0)"));
    assertEquals("sequence", support.parseSequence("UPDATE table SET id = GEN_ID(sequence, 1)"));
    assertNull(support.parseSequence("SELECT NEXT VALUE FOR test"));
    assertNull(support.parseSequence("SELECT NEXT VALUE FOR test, * FROM table"));
    assertNull(support.parseSequence("INSERT INTO table VALUES (NEXT VALUE FOR test)"));
    assertNull(support.parseSequence("UPDATE table SET id = NEXT VALUE FOR test"));
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.