|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.recordstorage.impl.RecordStorageImpl
public class RecordStorageImpl
Implementation of a RecordStorage using eclipseLink and JPA. providing limited search access.
| Field Summary | |
|---|---|
static java.lang.String |
BUNDLE_NAME
name of bundle. |
static java.lang.String |
CONFIGURATION_FILE
name of configuration file. |
static java.lang.String |
PERSISTENCE_UNIT_NAME
Constant for the eclipseLink persistence unit name. |
| Constructor Summary | |
|---|---|
RecordStorageImpl()
Default Constructor. |
|
| Method Summary | |
|---|---|
protected void |
activate(ComponentContext context)
DS activate method. |
protected void |
deactivate(ComponentContext context)
DS deactivate method. |
boolean |
existsRecord(java.lang.String id)
Checks if a Record exists in the storage. |
Record |
loadRecord(java.lang.String id)
Load the record from storage. |
java.util.Iterator<Record> |
loadRecords(java.lang.String source)
Loads all records of the given source. |
void |
removeRecord(java.lang.String id)
Removes the record. |
void |
storeRecord(Record record)
Stores the given Record object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String BUNDLE_NAME
public static final java.lang.String PERSISTENCE_UNIT_NAME
public static final java.lang.String CONFIGURATION_FILE
| Constructor Detail |
|---|
public RecordStorageImpl()
| Method Detail |
|---|
protected void activate(ComponentContext context)
throws java.lang.Exception
context - ComponentContext
java.lang.Exception - if any error occurs
protected void deactivate(ComponentContext context)
throws java.lang.Exception
context - the ComponentContext
java.lang.Exception - if any error occurs
public Record loadRecord(java.lang.String id)
throws RecordStorageException
loadRecord in interface RecordStorageid - Id of the record
RecordStorageException - if any error occurs
public void storeRecord(Record record)
throws RecordStorageException
storeRecord in interface RecordStoragerecord - the Record object
RecordStorageException - if any error occurs
public void removeRecord(java.lang.String id)
throws RecordStorageException
removeRecord in interface RecordStorageid - Id of the record
RecordStorageException - if any error occurs
public boolean existsRecord(java.lang.String id)
throws RecordStorageException
existsRecord in interface RecordStorageid - Id of the record
RecordStorageException - if any error occurs
public java.util.Iterator<Record> loadRecords(java.lang.String source)
throws RecordStorageException
loadRecords in interface RecordStoragesource - the name of the data source
RecordStorageException - if any error occursorg.eclipse.smila.recordstorage.RecordStorage#findRecordsBySource(java.lang.String)
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||