Interface ISqlFactory<SELECT extends SelectBuilder,​INSERT extends InsertBuilder,​UPDATE extends UpdateBuilder,​DELETE extends DeleteBuilder,​CREATE extends CreateBranchingBuilder,​ALTER extends AlterBranchingBuilder,​DROP extends DropBranchingBuilder,​NEXT extends NextValueSequenceBuilder,​LAST extends LastValueIdentityBuilder>

Type Parameters:
SELECT - the generic type
INSERT - the generic type
UPDATE - the generic type
DELETE - the generic type
CREATE - the generic type
ALTER - the generic type
DROP - the generic type
NEXT - the generic type
LAST - the generic type
All Known Subinterfaces:
ISqlDialect<SELECT,​INSERT,​UPDATE,​DELETE,​CREATE,​ALTER,​DROP,​NEXT,​LAST>
All Known Implementing Classes:
DefaultSqlDialect, DerbySqlDialect, H2SqlDialect, HanaSqlDialect, MySQLSqlDialect, PostgresSqlDialect, SqlFactory, SybaseSqlDialect

public interface ISqlFactory<SELECT extends SelectBuilder,​INSERT extends InsertBuilder,​UPDATE extends UpdateBuilder,​DELETE extends DeleteBuilder,​CREATE extends CreateBranchingBuilder,​ALTER extends AlterBranchingBuilder,​DROP extends DropBranchingBuilder,​NEXT extends NextValueSequenceBuilder,​LAST extends LastValueIdentityBuilder>
A factory for creating ISql objects.
  • Method Details

    • select

      SELECT select()
      Select.
      Returns:
      the select
    • insert

      INSERT insert()
      Insert.
      Returns:
      the insert
    • update

      UPDATE update()
      Update.
      Returns:
      the update
    • delete

      DELETE delete()
      Delete.
      Returns:
      the delete
    • expression

      ExpressionBuilder expression()
      Expression.
      Returns:
      the expression builder
    • create

      CREATE create()
      Creates the.
      Returns:
      the creates the
    • alter

      ALTER alter()
      Alters the.
      Returns:
      the alters the
    • drop

      DROP drop()
      Drop.
      Returns:
      the drop
    • exists

      boolean exists​(Connection connection, String table) throws SQLException
      Exists.
      Parameters:
      connection - the connection
      table - the table
      Returns:
      true, if successful
      Throws:
      SQLException - the SQL exception
    • exists

      boolean exists​(Connection connection, String name, int type) throws SQLException
      Check existence of an artifacts.
      Parameters:
      connection - the current connection
      name - the artifact name
      type - the artifact type
      Returns:
      true if the table exists and false otherwise
      Throws:
      SQLException - the SQL exception
    • count

      int count​(Connection connection, String table) throws SQLException
      Count.
      Parameters:
      connection - the connection
      table - the table
      Returns:
      the int
      Throws:
      SQLException - the SQL exception
    • nextval

      NEXT nextval​(String sequence)
      Nextval.
      Parameters:
      sequence - the sequence
      Returns:
      the next
    • lastval

      LAST lastval​(String... args)
      Lastval.
      Parameters:
      args - the arguments
      Returns:
      the last