|
SMILA 1.0 API documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.smila.connectivity.deltaindexing.impl.DataSourceConnection
public class DataSourceConnection
The Class DataSourceConnection.
Constructor Summary | |
---|---|
DataSourceConnection(java.lang.String dataSourceId)
Instantiates a new data source connection. |
Method Summary | |
---|---|
void |
addSubCompound(ConnectivityId parentId,
ConnectivityId subCompoundId)
Add a sub compound mapping. |
void |
clear()
Clear. |
void |
delete(ConnectivityId id)
Delete. |
void |
forceUnlockAndClear()
Force unlock and clear. |
void |
forceUnlockAndRollback()
Force unlock and rollback. |
java.lang.String |
getDataSourceId()
Gets the data source id. |
long |
getEntryCount()
Returns the number of entries in the index. |
java.lang.String |
getHash(ConnectivityId id)
Gets the hash. |
java.lang.String |
getSessionId()
Gets the session id. |
java.util.Set<ConnectivityId> |
getSubCompounds(ConnectivityId id)
Returns the Set of sub compounds or null if none exists. |
void |
lock(java.lang.String sessionId)
Lock. |
java.util.Iterator<ConnectivityId> |
obsoleteIdIterator()
Obsolete id iterator. |
void |
put(ConnectivityId id)
Put. |
void |
put(ConnectivityId id,
java.lang.String hash,
boolean isCompound)
Put. |
void |
removeSubCompound(ConnectivityId id)
Removes the mapping for an id, cleaning up the mapped set, too. |
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 |
---|
public DataSourceConnection(java.lang.String dataSourceId)
dataSourceId
- the data source idMethod Detail |
---|
public void lock(java.lang.String sessionId) throws DeltaIndexingException
sessionId
- the id of the session
DeltaIndexingException
- the delta indexing exceptionpublic void unlock() throws DeltaIndexingException
DeltaIndexingException
- the delta indexing exceptionpublic void put(ConnectivityId id) throws DeltaIndexingException
id
- the id
DeltaIndexingException
- the delta indexing exceptionpublic void put(ConnectivityId id, java.lang.String hash, boolean isCompound) throws DeltaIndexingException
id
- the idhash
- the hashisCompound
- boolean flag if the record identified by id is a compound record (true) or not (false)
DeltaIndexingException
- the delta indexing exceptionpublic java.lang.String getHash(ConnectivityId id) throws DeltaIndexingException
id
- the id
DeltaIndexingException
- the delta indexing exceptionpublic java.util.Iterator<ConnectivityId> obsoleteIdIterator() throws DeltaIndexingException
DeltaIndexingException
- the delta indexing exceptionpublic void delete(ConnectivityId id) throws DeltaIndexingException
id
- the id
DeltaIndexingException
- the delta indexing exceptionpublic void rollback() throws DeltaIndexingException
DeltaIndexingException
- the delta indexing exceptionpublic void clear() throws DeltaIndexingException
DeltaIndexingException
- the delta indexing exceptionpublic void forceUnlockAndRollback() throws DeltaIndexingException
DeltaIndexingException
- the delta indexing exceptionpublic void forceUnlockAndClear() throws DeltaIndexingException
DeltaIndexingException
- the delta indexing exceptionpublic void addSubCompound(ConnectivityId parentId, ConnectivityId subCompoundId)
parentId
- the parent IdsubCompoundId
- the sub compound idpublic java.util.Set<ConnectivityId> getSubCompounds(ConnectivityId id)
id
- the id to get the sub compounds for
public void removeSubCompound(ConnectivityId id)
id
- the id to remove the mapping forpublic java.lang.String getDataSourceId()
public java.lang.String getSessionId()
public long getEntryCount()
|
SMILA 1.0 API documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |