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 Type Method Description ALTERalter()Alters the.intcount(Connection connection, String table)Count.CREATEcreate()Creates the.DELETEdelete()Delete.DROPdrop()Drop.booleanexists(Connection connection, String table)Exists.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.ExpressionBuilderexpression()Expression.INSERTinsert()Insert.LASTlastval(String... args)Lastval.NEXTnextval(String sequence)Nextval.SELECTselect()Select.UPDATEupdate()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
-
exists
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
-
count
Count.- Parameters:
connection- the connectiontable- the table- Returns:
- the int
- Throws:
SQLException- the SQL exception
-
nextval
Nextval.- Parameters:
sequence- the sequence- Returns:
- the next
-
lastval
Lastval.- Parameters:
args- the arguments- Returns:
- the last
-