org.jcrontab.data
Interface DataSource

All Known Implementing Classes:
FileSource, GenericSQLSource

public interface DataSource

This interface says which methods a DataSource should have in order to be compatible with the DataFactory

Version:
$Revision: 1.16 $
Author:
$Author: iolalla $

Method Summary
 CrontabEntryBean find(CrontabEntryBean ceb)
          searches the CrontabEntryBean from the DataSource
 CrontabEntryBean[] findAll()
          Gets all the CrontabEntryBean from the DataSource
 DataSource getInstance()
          returns the only valid DataSource of this kind
 void remove(CrontabEntryBean[] ceb)
          removes CrontabEntryBean from the DataSource
 void store(CrontabEntryBean ceb)
          stores CrontabEntryBean in the DataSource
 void store(CrontabEntryBean[] ceb)
          stores CrontabEntryBean in the DataSource
 

Method Detail

getInstance

public DataSource getInstance()
returns the only valid DataSource of this kind

Returns:
DataSource

find

public CrontabEntryBean find(CrontabEntryBean ceb)
                      throws java.lang.Exception
searches the CrontabEntryBean from the DataSource

Returns:
CrontabEntryBean
Throws:
java.lang.Exception

findAll

public CrontabEntryBean[] findAll()
                           throws java.lang.Exception
Gets all the CrontabEntryBean from the DataSource

Returns:
CrontabEntryBean[]
Throws:
java.lang.Exception

store

public void store(CrontabEntryBean ceb)
           throws java.lang.Exception,
                  DataNotFoundException
stores CrontabEntryBean in the DataSource

Throws:
java.lang.Exception
DataNotFoundException

store

public void store(CrontabEntryBean[] ceb)
           throws java.lang.Exception,
                  DataNotFoundException
stores CrontabEntryBean in the DataSource

Throws:
java.lang.Exception
DataNotFoundException

remove

public void remove(CrontabEntryBean[] ceb)
            throws java.lang.Exception
removes CrontabEntryBean from the DataSource

Throws:
java.lang.Exception