SMILA (incubation) API documentation

org.eclipse.smila.recordstorage.util
Class RecordDao

java.lang.Object
  extended by org.eclipse.smila.recordstorage.util.RecordDao
All Implemented Interfaces:
java.io.Serializable

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

A JPA Entity to store Records.

See Also:
Serialized Form

Field Summary
static java.lang.String ENTITY_MEMBER_ATTRIBUTES
          Constant for the entity attribute _attributes.
static java.lang.String NAMED_QUERY_FIND_BY_SOURCE
          Constant for the named query RecordDao.findBySource.
static java.lang.String NAMED_QUERY_PARAM_SOURCE
          Constant for the entity attribute _source.
 
Constructor Summary
protected RecordDao()
          Default Constructor, used by JPA.
  RecordDao(Record record)
          Conversion Constructor.
 
Method Summary
 Record toRecord()
          Converts this RecordDao into a Record object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAMED_QUERY_FIND_BY_SOURCE

public static final java.lang.String NAMED_QUERY_FIND_BY_SOURCE
Constant for the named query RecordDao.findBySource.

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

ENTITY_MEMBER_ATTRIBUTES

public static final java.lang.String ENTITY_MEMBER_ATTRIBUTES
Constant for the entity attribute _attributes.

See Also:
Constant Field Values
Constructor Detail

RecordDao

protected RecordDao()
Default Constructor, used by JPA.


RecordDao

public RecordDao(Record record)
          throws java.io.IOException
Conversion Constructor. Converts a Record into a RecordDao object.

Parameters:
record - a Record
Throws:
java.io.IOException - if any exception occurs
Method Detail

toRecord

public Record toRecord()
                throws java.io.IOException,
                       java.lang.ClassNotFoundException
Converts this RecordDao into a Record object.

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

SMILA (incubation) API documentation