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, SqlFactory

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
    • existsTable

      boolean existsTable(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
    • exists

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

      boolean existsSchema(Connection connection, String schema) throws SQLException
      Check existence of a schema.
      Parameters:
      connection - the current connection
      schema - the schema name
      Returns:
      true if the table exists and false otherwise
      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
    • getDatabaseType

      String getDatabaseType(Connection connection)
      Database type.
      Parameters:
      connection - the connection
      Returns:
      the database type