SMILA (incubation) 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_BY_SOURCE
          Constant for the named query DataSourceDao.deleteBySource.
static java.lang.String NAMED_QUERY_DELETE_SOURCES
          Constant for the named query DataSourceDao.deleteSources.
static java.lang.String NAMED_QUERY_PARAM_LOCKED
          Constant for the entity attribute _locked.
static java.lang.String NAMED_QUERY_PARAM_SOURCE
          Constant for the entity attribute _source.
static java.lang.String NAMED_QUERY_UNLOCK_ALL
          Constant for the named query DataSourceDao.unlockAll.
 
Constructor Summary
protected DataSourceDao()
          Default Constructor, used by JPA.
  DataSourceDao(java.lang.String dataSourceId, boolean locked, java.lang.String lockedBy)
          Conversion Constructor.
 
Method Summary
 java.lang.String getDataSourceId()
          Returns the dataSourceId.
 java.lang.String getLockedBy()
          Returns the lockedBy thread.
 boolean isLocked()
          Returns if this data source is locked or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAMED_QUERY_UNLOCK_ALL

public static final java.lang.String NAMED_QUERY_UNLOCK_ALL
Constant for the named query DataSourceDao.unlockAll.

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_DELETE_BY_SOURCE

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

See Also:
Constant Field Values

NAMED_QUERY_PARAM_LOCKED

public static final java.lang.String NAMED_QUERY_PARAM_LOCKED
Constant for the entity attribute _locked.

See Also:
Constant Field Values

NAMED_QUERY_PARAM_SOURCE

public static final java.lang.String NAMED_QUERY_PARAM_SOURCE
Constant for the entity attribute _source.

See Also:
Constant Field Values
Constructor Detail

DataSourceDao

protected DataSourceDao()
Default Constructor, used by JPA.


DataSourceDao

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

Parameters:
dataSourceId - the id of the data source
locked - a boolean flag whether this data source is locked or not
Throws:
java.io.IOException - if any exception occurs
Method Detail

getDataSourceId

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

Returns:
the dataSourceId

isLocked

public boolean isLocked()
Returns if this data source is locked or not.

Returns:
true if the data source is locked, false otherwise

getLockedBy

public java.lang.String getLockedBy()
Returns the lockedBy thread.

Returns:
the lockedBy thread

SMILA (incubation) API documentation