org.opennms.netmgt.dao.db
Class Trigger

java.lang.Object
  extended by org.opennms.netmgt.dao.db.Trigger

public class Trigger
extends Object


Constructor Summary
Trigger(String name, String table, String storedProcedure, String sql)
           
 
Method Summary
 void addToDatabase(Connection connection)
           
static Trigger findTriggerInString(String create)
           
 String getName()
           
 String getSql()
           
 String getStoredProcedure()
           
 String getTable()
           
 boolean isOnDatabase(Connection connection)
           
 void removeFromDatabase(Connection connection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Trigger

public Trigger(String name,
               String table,
               String storedProcedure,
               String sql)
Method Detail

findTriggerInString

public static Trigger findTriggerInString(String create)

isOnDatabase

public boolean isOnDatabase(Connection connection)
                     throws SQLException
Throws:
SQLException

removeFromDatabase

public void removeFromDatabase(Connection connection)
                        throws SQLException
Throws:
SQLException

addToDatabase

public void addToDatabase(Connection connection)
                   throws SQLException
Throws:
SQLException

getName

public String getName()

getSql

public String getSql()

getStoredProcedure

public String getStoredProcedure()

getTable

public String getTable()


Copyright © 2009. All Rights Reserved.