SMILA 1.0 API documentation

org.eclipse.smila.connectivity.deltaindexing.jpa.impl
Class DataSourceDao

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

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

A JPA Entity to store DataSource locked state.

See Also:
Serialized Form

Field Summary
static java.lang.String NAMED_QUERY_DELETE_SOURCES
          Constant for the named query DataSourceDao.deleteSources.
static java.lang.String NAMED_QUERY_FIND_BY_SESSION_ID
          Constant for the named query DataSourceDao.deleteBySource.
static java.lang.String NAMED_QUERY_KILL_ALL_SESSIONS
          Constant for the named query DataSourceDao.killAllSessions.
static java.lang.String NAMED_QUERY_KILL_SESSION
          Constant for the named query DataSourceDao.killSession.
static java.lang.String NAMED_QUERY_PARAM_SESSION_ID
          Constant for the entity attribute _sessionId.
static java.lang.String NAMED_QUERY_SELECT_ALL
          Constant for the named query DataSourceDao.selectAll.
 
Constructor Summary
protected DataSourceDao()
          Default Constructor, used by JPA.
  DataSourceDao(java.lang.String dataSourceId, java.lang.String sessionId)
          Conversion Constructor.
 
Method Summary
 java.lang.String getDataSourceId()
          Returns the dataSourceId.
 java.lang.String getSessionId()
          Returns sessionId if any exists.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAMED_QUERY_KILL_ALL_SESSIONS

public static final java.lang.String NAMED_QUERY_KILL_ALL_SESSIONS
Constant for the named query DataSourceDao.killAllSessions.

See Also:
Constant Field Values

NAMED_QUERY_KILL_SESSION

public static final java.lang.String NAMED_QUERY_KILL_SESSION
Constant for the named query DataSourceDao.killSession.

See Also:
Constant Field Values

NAMED_QUERY_SELECT_ALL

public static final java.lang.String NAMED_QUERY_SELECT_ALL
Constant for the named query DataSourceDao.selectAll.

See Also:
Constant Field Values

NAMED_QUERY_DELETE_SOURCES

public static final java.lang.String NAMED_QUERY_DELETE_SOURCES
Constant for the named query DataSourceDao.deleteSources.

See Also:
Constant Field Values

NAMED_QUERY_FIND_BY_SESSION_ID

public static final java.lang.String NAMED_QUERY_FIND_BY_SESSION_ID
Constant for the named query DataSourceDao.deleteBySource.

See Also:
Constant Field Values

NAMED_QUERY_PARAM_SESSION_ID

public static final java.lang.String NAMED_QUERY_PARAM_SESSION_ID
Constant for the entity attribute _sessionId.

See Also:
Constant Field Values
Constructor Detail

DataSourceDao

protected DataSourceDao()
Default Constructor, used by JPA.


DataSourceDao

public DataSourceDao(java.lang.String dataSourceId,
                     java.lang.String sessionId)
              throws java.io.IOException
Conversion Constructor. Converts a dataSourceId and a sessionId into a DataSourceDao object.

Parameters:
dataSourceId - the id of the data source
sessionId - the id of the session that locked this data source
Throws:
java.io.IOException - if any exception occurs
Method Detail

getDataSourceId

public java.lang.String getDataSourceId()
Returns the dataSourceId.

Returns:
the dataSourceId

getSessionId

public java.lang.String getSessionId()
Returns sessionId if any exists.

Returns:
the sessionId

SMILA 1.0 API documentation