net.sf.advjavacalendar.data
Interface Data

All Known Implementing Classes:
XMLDataImpl

public interface Data

Common interface for all types of calendar item data elements

Author:
probstl

Field Summary
static java.lang.String DEFAULT_DATA
          The name of the default Data implemention used
 
Method Summary
 void delete(CalendarItem item)
          Removes the given CalendarItem from the data
 java.util.List<CalendarItem> find(java.lang.String searchString)
          Search inside after the given search String
 java.util.List<CalendarItem> getItems()
          Returns the elements in this data element
 java.lang.String getName()
          Returns the name of the Data Element
 void init()
          Initialize the element
 void insert(CalendarItem item)
          Inserts the given CalendarItem
 boolean isWritable()
          Tells the calendar if the returned elements are editable
 void start()
          Starts the getting of data with this element
 void stop()
          Stops the process of receiving data with this element
 void update(CalendarItem item)
          Saves the given CalendarItem
 

Field Detail

DEFAULT_DATA

static final java.lang.String DEFAULT_DATA
The name of the default Data implemention used

See Also:
Constant Field Values
Method Detail

getName

java.lang.String getName()
Returns the name of the Data Element

Returns:

isWritable

boolean isWritable()
Tells the calendar if the returned elements are editable

Returns:

init

void init()
          throws DataException
Initialize the element

Throws:
DataException

start

void start()
           throws DataException
Starts the getting of data with this element

Throws:
DataException

stop

void stop()
          throws DataException
Stops the process of receiving data with this element

Throws:
DataException

find

java.util.List<CalendarItem> find(java.lang.String searchString)
                                  throws DataException
Search inside after the given search String

Parameters:
searchString -
Returns:
Throws:
DataException

getItems

java.util.List<CalendarItem> getItems()
                                      throws DataException
Returns the elements in this data element

Returns:
Throws:
DataException

insert

void insert(CalendarItem item)
            throws DataException
Inserts the given CalendarItem

Parameters:
item -
Throws:
DataException

update

void update(CalendarItem item)
            throws DataException
Saves the given CalendarItem

Parameters:
item -
Throws:
DataException

delete

void delete(CalendarItem item)
            throws DataException
Removes the given CalendarItem from the data

Parameters:
item -
Throws:
DataException


Copyright © 2008 null. All Rights Reserved.