com.serotonin.m2m2.module
Class DataPointChangeDefinition

java.lang.Object
  extended by com.serotonin.m2m2.module.ModuleElementDefinition
      extended by com.serotonin.m2m2.module.DataPointChangeDefinition

public abstract class DataPointChangeDefinition
extends ModuleElementDefinition

A definition allowing a hook into the data point delete event.

Author:
Matthew Lohbihler

Constructor Summary
DataPointChangeDefinition()
           
 
Method Summary
abstract  void afterDelete(int dataPointId)
          Called immediately after the point is deleted from the database.
abstract  void afterInsert(com.serotonin.m2m2.vo.DataPointVO dpvo)
          Called immediately after the point is inserted into the database.
abstract  void afterUpdate(com.serotonin.m2m2.vo.DataPointVO dpvo)
          Called immediately after the point is updated in the database.
abstract  void beforeDelete(int dataPointId)
          Called immediately before the point is to be deleted from the database.
abstract  void beforeInsert(com.serotonin.m2m2.vo.DataPointVO dpvo)
          Called immediately before the point is to be inserted into the database.
abstract  void beforeUpdate(com.serotonin.m2m2.vo.DataPointVO dpvo)
          Called immediately before the point is to be update in the database.
 
Methods inherited from class com.serotonin.m2m2.module.ModuleElementDefinition
getModule, initialize, uninstall
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataPointChangeDefinition

public DataPointChangeDefinition()
Method Detail

beforeInsert

public abstract void beforeInsert(com.serotonin.m2m2.vo.DataPointVO dpvo)
Called immediately before the point is to be inserted into the database.

Parameters:
dpvo - the point to be inserted

afterInsert

public abstract void afterInsert(com.serotonin.m2m2.vo.DataPointVO dpvo)
Called immediately after the point is inserted into the database.

Parameters:
dpvo - the point that was inserted

beforeUpdate

public abstract void beforeUpdate(com.serotonin.m2m2.vo.DataPointVO dpvo)
Called immediately before the point is to be update in the database.

Parameters:
dpvo - the point to be updated

afterUpdate

public abstract void afterUpdate(com.serotonin.m2m2.vo.DataPointVO dpvo)
Called immediately after the point is updated in the database.

Parameters:
dpvo - the point that was updated

beforeDelete

public abstract void beforeDelete(int dataPointId)
Called immediately before the point is to be deleted from the database.

Parameters:
dataPointId - the point to be deleted

afterDelete

public abstract void afterDelete(int dataPointId)
Called immediately after the point is deleted from the database.

Parameters:
dataPointId - the point that was deleted