org.opennms.netmgt.config.vacuumd
Class Trigger

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

public class Trigger
extends Object
implements 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()
           
 String getDataSource()
          Returns the value of field 'dataSource'.
 String getName()
          Returns the value of field 'name'.
 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(ContentHandler handler)
           
 void marshal(Writer out)
           
 void setDataSource(String dataSource)
          Sets the value of field 'dataSource'.
 void setName(String name)
          Sets the value of field 'name'.
 void setOperator(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 Trigger unmarshal(Reader reader)
          Method unmarshal.
 void 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()

getDataSource

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

Returns:
the value of field 'DataSource'.

getName

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

Returns:
the value of field 'Name'.

getOperator

public 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:
the value of field 'Operator'.

getRowCount

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

Returns:
the value of field 'RowCount'.

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:
the value of field 'Statement'.

hasRowCount

public boolean hasRowCount()
Method hasRowCount.

Returns:
true if at least one RowCount has been added

isValid

public boolean isValid()
Method isValid.

Returns:
true if this object is valid according to the schema

marshal

public void marshal(Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException - if object is null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema

marshal

public void marshal(ContentHandler handler)
             throws IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
handler -
Throws:
IOException - if an IOException occurs during marshaling
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException - if object is null or if any SAXException is thrown during marshaling

setDataSource

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

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

setName

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

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

setOperator

public void setOperator(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 Trigger unmarshal(Reader reader)
                         throws org.exolab.castor.xml.MarshalException,
                                org.exolab.castor.xml.ValidationException
Method unmarshal.

Parameters:
reader -
Returns:
the unmarshaled org.opennms.netmgt.config.vacuumd.Trigger
Throws:
org.exolab.castor.xml.MarshalException - if object is null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Throws:
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema


Copyright ? 2008. All Rights Reserved.