org.oddjob.sql
Class SQLClock

java.lang.Object
  extended by org.oddjob.sql.SQLClock

public class SQLClock
extends Object

Description

Runs a SQL query. If the SQL provides results then they are available as nested properties of rows, and possibly row, properties of this job.

Field Summary
static String DEFAULT_SQL
           
 
Constructor Summary
SQLClock()
           
 
Method Summary
 Clock getClock()
           
 String getName()
          Get the name.
 void setConnection(Connection connection)
           
 void setName(String name)
          Set the name
 void setSql(String sql)
           
 void start()
           
 void stop()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_SQL

public static final String DEFAULT_SQL
See Also:
Constant Field Values
Constructor Detail

SQLClock

public SQLClock()
Method Detail

getName

public String getName()
Get the name.

Returns:
The name.

setName

public void setName(String name)
Set the name

Parameters:
name - The name.

start

public void start()
           throws SQLException
Throws:
SQLException

stop

public void stop()
          throws SQLException
Throws:
SQLException

getClock

public Clock getClock()
Returns:

setSql

public void setSql(String sql)

Property: sql

Description: The sql to provide time.

Required: No.


setConnection

public void setConnection(Connection connection)

Property: connection

Description: The ConnectionType to use.

Required: Yes.


toString

public String toString()
Overrides:
toString in class Object