SMILA (incubation) API documentation

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

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

public class DeltaIndexingDao
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_ALL
          Constant for the named query _dataSourceId.deleteAll.
static java.lang.String NAMED_QUERY_DELETE_BY_SOURCE
          Constant for the named query _dataSourceId.deleteBySource.
static java.lang.String NAMED_QUERY_FIND_OBSOLETE_IDS_BY_SOURCE
          Constant for the named query _dataSourceId.findBySource.
static java.lang.String NAMED_QUERY_PARAM_SOURCE
          Constant for the entity attribute _source.
static java.lang.String NAMED_QUERY_UNVISIT_BY_SOURCE
          Constant for the named query _dataSourceId.unvisitBySource.
 
Constructor Summary
protected DeltaIndexingDao()
          Default Constructor, used by JPA.
  DeltaIndexingDao(Id id, java.lang.String hash, boolean visited)
          Conversion Constructor.
 
Method Summary
 java.lang.String getDataSourceId()
          Returns the data source id.
 java.lang.String getHash()
          Returns the delta indexing hash.
 java.lang.String getIdHash()
          Returns the id hash value.
 boolean isVisited()
          Returns if this data source was visited or not.
 Id toId()
          Converts this DeltaIndexingDao into a Id object.
 void visit()
          Sets the visited flag to true.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAMED_QUERY_FIND_OBSOLETE_IDS_BY_SOURCE

public static final java.lang.String NAMED_QUERY_FIND_OBSOLETE_IDS_BY_SOURCE
Constant for the named query _dataSourceId.findBySource.

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 _dataSourceId.deleteBySource.

See Also:
Constant Field Values

NAMED_QUERY_DELETE_ALL

public static final java.lang.String NAMED_QUERY_DELETE_ALL
Constant for the named query _dataSourceId.deleteAll.

See Also:
Constant Field Values

NAMED_QUERY_UNVISIT_BY_SOURCE

public static final java.lang.String NAMED_QUERY_UNVISIT_BY_SOURCE
Constant for the named query _dataSourceId.unvisitBySource.

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

DeltaIndexingDao

protected DeltaIndexingDao()
Default Constructor, used by JPA.


DeltaIndexingDao

public DeltaIndexingDao(Id id,
                        java.lang.String hash,
                        boolean visited)
                 throws java.io.IOException
Conversion Constructor. Converts a id, hash and visited flag into a DeltaIndexingDao.

Parameters:
id - the record id
hash - the delta indexing hash
visited - a boolean flag whether this id was already visited or not
Throws:
java.io.IOException - if any error occurs
Method Detail

toId

public Id toId()
        throws java.io.IOException,
               java.lang.ClassNotFoundException
Converts this DeltaIndexingDao into a Id object.

Returns:
a Id object.
Throws:
java.io.IOException - if any exception occurs
java.lang.ClassNotFoundException - if any exception occurs

getIdHash

public java.lang.String getIdHash()
Returns the id hash value.

Returns:
the id hash value

getHash

public java.lang.String getHash()
Returns the delta indexing hash.

Returns:
the delta indexing hash

getDataSourceId

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

Returns:
the data source id

isVisited

public boolean isVisited()
Returns if this data source was visited or not.

Returns:
true if the data source was visited, false otherwise

visit

public void visit()
Sets the visited flag to true.


SMILA (incubation) API documentation