com.niggle.data
Class AbstractDataSource

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--com.niggle.data.AbstractDataSource
All Implemented Interfaces:
DataSource, java.rmi.Remote, java.io.Serializable
Direct Known Subclasses:
AbstractMutableDataSource, InMemoryIndex

public abstract class AbstractDataSource
extends java.rmi.server.UnicastRemoteObject
implements DataSource

An possible base class for DataSource implementations. Implements some methods that are likely to be used by most.

Author:
Jonathan Revusky
See Also:
Serialized Form

Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
AbstractDataSource()
          Our constructor must throw the exception since the superclass's constructor does.
 
Method Summary
 Record get(java.lang.Object key)
          method that exists for backward compatibility This is equivalent to get(null, key);
 java.lang.String getName()
           
 void init(java.util.Properties props)
          TODO
 java.util.List keys()
          This is equivalent to calling keys(null) where no record type is specified.
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.niggle.data.DataSource
close, get, getRecords, keys
 

Constructor Detail

AbstractDataSource

public AbstractDataSource()
                   throws java.io.IOException
Our constructor must throw the exception since the superclass's constructor does.
Method Detail

getName

public java.lang.String getName()
                         throws java.io.IOException
Specified by:
getName in interface DataSource
Following copied from interface: com.niggle.data.DataSource
Returns:
a unique string by which this DataSource will be known.

init

public void init(java.util.Properties props)
          throws java.io.IOException
TODO
Specified by:
init in interface DataSource

get

public final Record get(java.lang.Object key)
                 throws java.io.IOException
Description copied from interface: DataSource
method that exists for backward compatibility This is equivalent to get(null, key);
Specified by:
get in interface DataSource

keys

public final java.util.List keys()
                          throws java.io.IOException
Description copied from interface: DataSource
This is equivalent to calling keys(null) where no record type is specified.
Specified by:
keys in interface DataSource