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 typeINSERT- the generic typeUPDATE- the generic typeDELETE- the generic typeCREATE- the generic typeALTER- the generic typeDROP- the generic typeNEXT- the generic typeLAST- 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 Summary
Modifier and TypeMethodDescriptionalter()Alters the.create()Creates the.delete()Delete.drop()Drop.booleanexists(Connection connection, String name, int type) Check existence of an artifacts.booleanexists(Connection connection, String schema, String name, int type) Check existence of an artifacts.booleanexistsSchema(Connection connection, String schema) Check existence of a schema.booleanexistsTable(Connection connection, String table) Exists.Expression.getDatabaseType(Connection connection) Database type.insert()Insert.Lastval.Nextval.select()Select.update()Update.
-
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
Exists.- Parameters:
connection- the connectiontable- the table- Returns:
- true, if successful
- Throws:
SQLException- the SQL exception
-
exists
Check existence of an artifacts.- Parameters:
connection- the current connectionname- the artifact nametype- the artifact type- Returns:
- true if the table exists and false otherwise
- Throws:
SQLException- the SQL exception
-
exists
Check existence of an artifacts.- Parameters:
connection- the current connectionschema- the schema namename- the artifact nametype- the artifact type- Returns:
- true if the table exists and false otherwise
- Throws:
SQLException- the SQL exception
-
existsSchema
Check existence of a schema.- Parameters:
connection- the current connectionschema- the schema name- Returns:
- true if the table exists and false otherwise
- Throws:
SQLException- the SQL exception
-
nextval
Nextval.- Parameters:
sequence- the sequence- Returns:
- the next
-
lastval
Lastval.- Parameters:
args- the arguments- Returns:
- the last
-
getDatabaseType
Database type.- Parameters:
connection- the connection- Returns:
- the database type
-