|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.janrufmonitor.repository.AbstractConfigurableCallerManager
de.janrufmonitor.repository.AbstractReadWriteCallerManager
de.janrufmonitor.repository.AbstractDatabaseCallerManager
public abstract class AbstractDatabaseCallerManager
| Field Summary | |
|---|---|
protected ICallerDatabaseHandler |
m_dbh
|
| Fields inherited from class de.janrufmonitor.repository.AbstractConfigurableCallerManager |
|---|
CFG_ENABLED, CFG_PRIO, m_configuration, m_externalID, m_logger |
| Constructor Summary | |
|---|---|
AbstractDatabaseCallerManager()
|
|
| Method Summary | |
|---|---|
ICaller |
getCaller(IPhonenumber number)
Gets a caller object from a repository by the specified phone number object. |
ICallerList |
getCallers(IFilter filter)
Gets a list with all callers of a repository filtered by the specified filter implementation. |
ICallerList |
getCallers(IFilter[] filters)
Gets a list with all callers of a repository filtered by the specified filter array. |
protected abstract ICallerDatabaseHandler |
getDatabaseHandler()
Creates a new instance of a specific database handler. |
boolean |
isSupported(Class c)
Returns wether a repository type (de.janrufmonitor.repository.types.*) is suppored by a repository manager implementation. |
void |
removeCaller(ICaller caller)
Removes a certain caller from a repository. |
void |
removeCaller(ICallerList callerList)
Removes a list of caller objects from a repository. |
void |
setCaller(ICaller caller)
Sets a caller object to a repository. |
void |
setCaller(ICallerList callerList)
Sets a list of caller objects to a repository. |
void |
shutdown()
This method is called on shutdown time by the runtime object. |
void |
updateCaller(ICaller caller)
Updates a caller with the new data. |
| Methods inherited from class de.janrufmonitor.repository.AbstractReadWriteCallerManager |
|---|
addCreationAttributes, addSystemAttributes |
| Methods inherited from class de.janrufmonitor.repository.AbstractConfigurableCallerManager |
|---|
getConfigurableID, getID, getManagerID, getNamespace, getPriority, getRuntime, isActive, isInternalNumber, restart, setConfiguration, setManagerID, startup, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected ICallerDatabaseHandler m_dbh
| Constructor Detail |
|---|
public AbstractDatabaseCallerManager()
| Method Detail |
|---|
public boolean isSupported(Class c)
IRepositoryManager
isSupported in interface IRepositoryManagerisSupported in class AbstractReadWriteCallerManagerc - Interface to be supported.
public void shutdown()
IManager
shutdown in interface IManagershutdown in class AbstractConfigurableCallerManagerpublic ICallerList getCallers(IFilter[] filters)
IReadCallerRepository
getCallers in interface IReadCallerRepositorygetCallers in class AbstractReadWriteCallerManager
public ICaller getCaller(IPhonenumber number)
throws CallerNotFoundException
IIdentifyCallerRepository
number - number of the requested caller object.
CallerNotFoundException - is thrown if a caller with specified phone number is not found.public void removeCaller(ICallerList callerList)
IWriteCallerRepository
removeCaller in interface IWriteCallerRepositoryremoveCaller in class AbstractReadWriteCallerManagercallerList - list of callers to be removed.public void setCaller(ICallerList callerList)
IWriteCallerRepository
setCaller in interface IWriteCallerRepositorysetCaller in class AbstractReadWriteCallerManagercallerList - list of caller objectspublic void updateCaller(ICaller caller)
AbstractReadWriteCallerManager
updateCaller in interface IWriteCallerRepositoryupdateCaller in class AbstractReadWriteCallerManagercaller - caller to be updatedpublic ICallerList getCallers(IFilter filter)
IReadCallerRepository
public void removeCaller(ICaller caller)
IWriteCallerRepository
caller - caller to be removedpublic void setCaller(ICaller caller)
IWriteCallerRepository
caller - caller to be setprotected abstract ICallerDatabaseHandler getDatabaseHandler()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||