org.opennms.netmgt.config.vacuumd
Class Trigger

java.lang.Object
  extended by org.opennms.netmgt.config.vacuumd.Trigger
All Implemented Interfaces:
java.io.Serializable

public class Trigger
extends java.lang.Object
implements java.io.Serializable

A query to the database with a resultset used for actions

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
Trigger()
           
 
Method Summary
 void deleteRowCount()
          Method deleteRowCount
 java.lang.String getDataSource()
          Returns the value of field 'dataSource'.
 java.lang.String getName()
          Returns the value of field 'name'.
 java.lang.String getOperator()
          Returns the value of field 'operator'.
 int getRowCount()
          Returns the value of field 'rowCount'.
 Statement getStatement()
          Returns the value of field 'statement'.
 boolean hasRowCount()
          Method hasRowCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 void setDataSource(java.lang.String dataSource)
          Sets the value of field 'dataSource'.
 void setName(java.lang.String name)
          Sets the value of field 'name'.
 void setOperator(java.lang.String operator)
          Sets the value of field 'operator'.
 void setRowCount(int rowCount)
          Sets the value of field 'rowCount'.
 void setStatement(Statement statement)
          Sets the value of field 'statement'.
static java.lang.Object unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Trigger

public Trigger()
Method Detail

deleteRowCount

public void deleteRowCount()
Method deleteRowCount


getDataSource

public java.lang.String getDataSource()
Returns the value of field 'dataSource'.

Returns:
String

getName

public java.lang.String getName()
Returns the value of field 'name'.

Returns:
String

getOperator

public java.lang.String getOperator()
Returns the value of field 'operator'. The field 'operator' has the following description: only run the action if the row count evalutes with the operator (defaults to > 0)

Returns:
String

getRowCount

public int getRowCount()
Returns the value of field 'rowCount'.

Returns:
int

getStatement

public Statement getStatement()
Returns the value of field 'statement'. The field 'statement' has the following description: Just a generic string used for SQL statements

Returns:
Statement

hasRowCount

public boolean hasRowCount()
Method hasRowCount

Returns:
boolean

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

setDataSource

public void setDataSource(java.lang.String dataSource)
Sets the value of field 'dataSource'.

Parameters:
dataSource - the value of field 'dataSource'.

setName

public void setName(java.lang.String name)
Sets the value of field 'name'.

Parameters:
name - the value of field 'name'.

setOperator

public void setOperator(java.lang.String operator)
Sets the value of field 'operator'. The field 'operator' has the following description: only run the action if the row count evalutes with the operator (defaults to > 0)

Parameters:
operator - the value of field 'operator'.

setRowCount

public void setRowCount(int rowCount)
Sets the value of field 'rowCount'.

Parameters:
rowCount - the value of field 'rowCount'.

setStatement

public void setStatement(Statement statement)
Sets the value of field 'statement'. The field 'statement' has the following description: Just a generic string used for SQL statements

Parameters:
statement - the value of field 'statement'.

unmarshal

public static java.lang.Object unmarshal(java.io.Reader reader)
                                  throws org.exolab.castor.xml.MarshalException,
                                         org.exolab.castor.xml.ValidationException
Method unmarshal

Parameters:
reader -
Returns:
Object
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate

Throws:
org.exolab.castor.xml.ValidationException


Copyright © 2007. All Rights Reserved.