public class Trigger extends Object
Constructor and Description |
---|
Trigger(String name,
String table,
String storedProcedure,
String sql)
Constructor for Trigger.
|
Modifier and Type | Method and Description |
---|---|
void |
addToDatabase(Connection connection)
addToDatabase
|
static Trigger |
findTriggerInString(String create)
findTriggerInString
|
String |
getName()
getName
|
String |
getSql()
getSql
|
String |
getStoredProcedure()
getStoredProcedure
|
String |
getTable()
getTable
|
boolean |
isOnDatabase(Connection connection)
isOnDatabase
|
void |
removeFromDatabase(Connection connection)
removeFromDatabase
|
public boolean isOnDatabase(Connection connection) throws SQLException
isOnDatabase
connection
- a Connection
object.SQLException
- if any.public void removeFromDatabase(Connection connection) throws SQLException
removeFromDatabase
connection
- a Connection
object.SQLException
- if any.public void addToDatabase(Connection connection) throws SQLException
addToDatabase
connection
- a Connection
object.SQLException
- if any.Copyright © 2015. All Rights Reserved.