SMILA (incubation) API documentation

org.eclipse.smila.connectivity.deltaindexing.impl
Class DataSourceConnection

java.lang.Object
  extended by org.eclipse.smila.connectivity.deltaindexing.impl.DataSourceConnection
All Implemented Interfaces:
java.io.Serializable

public class DataSourceConnection
extends java.lang.Object
implements java.io.Serializable

The Class DataSourceConnection.

See Also:
Serialized Form

Constructor Summary
DataSourceConnection(java.lang.String dataSourceId)
          Instantiates a new data source connection.
 
Method Summary
 void clear()
          Clear.
 void delete(Id id)
          Delete.
 void forceUnlockAndClear()
          Force unlock and clear.
 void forceUnlockAndRollback()
          Force unlock and rollback.
 java.lang.String getDataSourceId()
          Gets the data source id.
 java.lang.String getHash(Id id)
          Gets the hash.
 void lock()
          Lock.
 java.util.Iterator<Id> obsoleteIdIterator()
          Obsolete id iterator.
 void put(Id id, java.lang.String hash)
          Put.
 void rollback()
          Clear.
 void unlock()
          Unlock.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSourceConnection

public DataSourceConnection(java.lang.String dataSourceId)
Instantiates a new data source connection.

Parameters:
dataSourceId - the data source id
Method Detail

lock

public void lock()
          throws DeltaIndexingException
Lock.

Throws:
DeltaIndexingException - the delta indexing exception

unlock

public void unlock()
            throws DeltaIndexingException
Unlock.

Throws:
DeltaIndexingException - the delta indexing exception

put

public void put(Id id,
                java.lang.String hash)
         throws DeltaIndexingException
Put.

Parameters:
id - the id
hash - the hash
Throws:
DeltaIndexingException - the delta indexing exception

getHash

public java.lang.String getHash(Id id)
                         throws DeltaIndexingException
Gets the hash.

Parameters:
id - the id
Returns:
the hash
Throws:
DeltaIndexingException - the delta indexing exception

obsoleteIdIterator

public java.util.Iterator<Id> obsoleteIdIterator()
                                          throws DeltaIndexingException
Obsolete id iterator.

Returns:
the iterator< id>
Throws:
DeltaIndexingException - the delta indexing exception

delete

public void delete(Id id)
            throws DeltaIndexingException
Delete.

Parameters:
id - the id
Throws:
DeltaIndexingException - the delta indexing exception

rollback

public void rollback()
              throws DeltaIndexingException
Clear.

Throws:
DeltaIndexingException - the delta indexing exception

clear

public void clear()
           throws DeltaIndexingException
Clear.

Throws:
DeltaIndexingException - the delta indexing exception

forceUnlockAndRollback

public void forceUnlockAndRollback()
                            throws DeltaIndexingException
Force unlock and rollback.

Throws:
DeltaIndexingException - the delta indexing exception

forceUnlockAndClear

public void forceUnlockAndClear()
                         throws DeltaIndexingException
Force unlock and clear.

Throws:
DeltaIndexingException - the delta indexing exception

getDataSourceId

public java.lang.String getDataSourceId()
Gets the data source id.

Returns:
the data source id

SMILA (incubation) API documentation