com.nonesole.persistence.file.catalog
Interface ICatalog

All Known Implementing Classes:
Catalog

public interface ICatalog

Interface of controlling catalog service

Version:
1.0 - build in 2009-07-25
Author:
JACK LEE

Method Summary
 void bind(CatalogEntry ce)
          Bind CatalogEntry
 void destroy()
          Destroy current object
 long getCircleTime()
          Circle time(ms)
 java.lang.String getFolderPath()
          Get folder path
 boolean hasNext()
          Whether or not exist next object
 boolean isSynchronization()
          Saving data is whether or not synchronization.
 CatalogEntry lookup(java.lang.String id)
          Search CatalogEntry by id
 CatalogEntry next()
          Get next CatalogEntry object
 void rebind(CatalogEntry ce)
          Rebind CatalogEntry
 void rewind()
          Reset all of internal variables
 ICatalog setCircleTime(long circleTime)
          Set circle time(ms)
 ICatalog setSynchronization(boolean isSynchronization)
          Set synchronization.
 void unbind(CatalogEntry ce)
          Unbind CatalogEntry
 

Method Detail

bind

void bind(CatalogEntry ce)
          throws OperationsException
Bind CatalogEntry

Parameters:
ce - - CatalogEntry object
Throws:
OperationsException

rebind

void rebind(CatalogEntry ce)
            throws OperationsException
Rebind CatalogEntry

Parameters:
ce - - CatalogEntry object
Throws:
OperationsException

unbind

void unbind(CatalogEntry ce)
            throws OperationsException
Unbind CatalogEntry

Parameters:
ce - - CatalogEntry object
Throws:
OperationsException

lookup

CatalogEntry lookup(java.lang.String id)
Search CatalogEntry by id

Parameters:
id -
Returns:
CatalogEntry

next

CatalogEntry next()
Get next CatalogEntry object

Returns:
CatalogEntry

hasNext

boolean hasNext()
Whether or not exist next object

Returns:
true - there is one object next

rewind

void rewind()
Reset all of internal variables


destroy

void destroy()
             throws java.lang.InterruptedException
Destroy current object

Throws:
java.lang.InterruptedException

isSynchronization

boolean isSynchronization()
Saving data is whether or not synchronization.

Returns:
true - synchronization

setSynchronization

ICatalog setSynchronization(boolean isSynchronization)
Set synchronization.

Parameters:
isSynchronization - - true: synchronization

getCircleTime

long getCircleTime()
Circle time(ms)

Returns:
the circleTime

setCircleTime

ICatalog setCircleTime(long circleTime)
Set circle time(ms)

Parameters:
circleTime -

getFolderPath

java.lang.String getFolderPath()
Get folder path