com.infoscape.proteus.db
Class DBSource

java.lang.Object
  |
  +--com.infoscape.proteus.MessageHandlerImpl
        |
        +--com.infoscape.proteus.SourceImpl
              |
              +--com.infoscape.proteus.PolledSource
                    |
                    +--com.infoscape.proteus.db.DBSource
All Implemented Interfaces:
MessageHandler, MessageSource, Transactional, UpdatingSource

public class DBSource
extends PolledSource
implements UpdatingSource


Field Summary
 
Fields inherited from class com.infoscape.proteus.PolledSource
pollPeriod
 
Constructor Summary
DBSource(Connection conn, org.jdom.Element elt)
           
 
Method Summary
 boolean cacheEmpty()
           
 void commit()
           
 java.lang.Object getFromCache()
           
 void loadCache()
           
 void rollback()
           
 void update()
           
 
Methods inherited from class com.infoscape.proteus.PolledSource
_getMessage
 
Methods inherited from class com.infoscape.proteus.SourceImpl
getMessage
 
Methods inherited from class com.infoscape.proteus.MessageHandlerImpl
disconnect, getConnection, log, log, reconnect, setSyncPoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.infoscape.proteus.MessageSource
getMessage
 
Methods inherited from interface com.infoscape.proteus.MessageHandler
disconnect, getConnection, reconnect
 
Methods inherited from interface com.infoscape.proteus.Transactional
setSyncPoint
 

Constructor Detail

DBSource

public DBSource(Connection conn,
                org.jdom.Element elt)
         throws java.lang.Exception
Method Detail

cacheEmpty

public boolean cacheEmpty()
                   throws java.lang.Exception
Specified by:
cacheEmpty in class PolledSource
java.lang.Exception

loadCache

public void loadCache()
               throws java.lang.Exception
Specified by:
loadCache in class PolledSource
java.lang.Exception

getFromCache

public java.lang.Object getFromCache()
                              throws java.lang.Exception
Specified by:
getFromCache in class PolledSource
java.lang.Exception

update

public void update()
            throws java.lang.Exception
Specified by:
update in interface UpdatingSource
java.lang.Exception

commit

public void commit()
            throws java.lang.Exception
Specified by:
commit in interface Transactional
Overrides:
commit in class MessageHandlerImpl
Throws:
java.lang.Exception

rollback

public void rollback()
              throws java.lang.Exception
Specified by:
rollback in interface Transactional
Overrides:
rollback in class MessageHandlerImpl
Throws:
java.lang.Exception