Compoze Software, Inc.

com.compoze.trigger
Class AbstractDatabaseTriggerServerEvents


java.lang.Object

  |

  +--com.compoze.trigger.AbstractDatabaseTriggerServerEvents

All Implemented Interfaces:
ITriggerServerEvents
Direct Known Subclasses:
DataSourceTriggerServerEvents, JdbcTriggerServerEvents

public abstract class AbstractDatabaseTriggerServerEvents
extends java.lang.Object
implements ITriggerServerEvents

Classes that extends this class are capable of using a database to retrieve startup events.


Constructor Summary
protected AbstractDatabaseTriggerServerEvents()
          Constructor.
 
Method Summary
protected abstract  java.sql.Connection getConnection()
          Gets the database connection.
protected abstract  void release(java.sql.Connection conn)
          Releases the connection.
 void serverStart()
          This method is called when starting the trigger server.
 void serverStop()
          This method is called when shutting down the trigger server.
 boolean triggerRemoved(long lTriggerPK)
          This method is called when removing a trigger.
 boolean triggerScheduled(Trigger trigger)
          This method is called when scheduling a trigger.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDatabaseTriggerServerEvents


protected AbstractDatabaseTriggerServerEvents()
Constructor.
Method Detail

serverStart


public void serverStart()
Description copied from interface: ITriggerServerEvents
This method is called when starting the trigger server.
Specified by:
serverStart in interface ITriggerServerEvents

serverStop


public void serverStop()
Description copied from interface: ITriggerServerEvents
This method is called when shutting down the trigger server.
Specified by:
serverStop in interface ITriggerServerEvents

triggerScheduled


public boolean triggerScheduled(Trigger trigger)
Description copied from interface: ITriggerServerEvents
This method is called when scheduling a trigger.
Specified by:
triggerScheduled in interface ITriggerServerEvents
Following copied from interface: com.compoze.trigger.ITriggerServerEvents
Parameters:
trigger - the scheduled trigger
Returns:
true if the trigger is processed successfully; false otherwise

triggerRemoved


public boolean triggerRemoved(long lTriggerPK)
Description copied from interface: ITriggerServerEvents
This method is called when removing a trigger.
Specified by:
triggerRemoved in interface ITriggerServerEvents
Following copied from interface: com.compoze.trigger.ITriggerServerEvents
Parameters:
lTriggerPK - the id of the trigger to remove
Returns:
true if the trigger is processed successfully; false otherwise

getConnection


protected abstract java.sql.Connection getConnection()
                                              throws java.sql.SQLException
Gets the database connection.
Returns:
the database connection

release


protected abstract void release(java.sql.Connection conn)
                         throws java.sql.SQLException
Releases the connection.
Parameters:
conn - the connection to release

Compoze Software, Inc.

Copyright ©1999-2001 Compoze Software, Inc. All rights reserved.