Package org.dellroad.stuff.schema
Class SQLCommand
java.lang.Object
org.dellroad.stuff.schema.SQLCommand
- All Implemented Interfaces:
- DatabaseAction<Connection>
An SQL 
DatabaseAction that executes a single SQL statement.- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Field Details- 
log
 
- 
- 
Constructor Details- 
SQLCommandConstructor.- Parameters:
- sql- the SQL to execute; must be a single statement
- Throws:
- IllegalArgumentException- if- sqlis null or contains only whitespace
 
 
- 
- 
Method Details- 
getSQL
- 
applyExecute the SQL statement.The implementation in SQLCommandcreates aStatementand then executes the configured SQL command viaStatement.execute(java.lang.String). Subclasses may wish to override.- Specified by:
- applyin interface- DatabaseAction<Connection>
- Parameters:
- c- open transaction
- Throws:
- SQLException- if an error occurs while accessing the database
 
 
-