public interface IDataAccessService extends Serializable
Modifier and Type | Method and Description |
---|---|
void |
checkout(UUID pDETaskUUID,
DataQuery pCheckoutQuery,
NewRowTarget pNewRowsTarget)
Checkout rows from Hub into the transaction basket of a DataEntry Task.
|
boolean |
isGoldenCheckoutSupported(UUID pDETaskUUID,
NewRowTarget pNewRowsTarget) |
IEntityRow |
newRow(IActivityTask pTask,
IEntity pEntity)
Create a NOT persisted Data Row.
|
void |
persistRow(UUID pDETaskUUID,
IEntityRow pDataRow)
Persist the row into the transaction basket of a DataEntry Task.
|
long |
queryCount(DataQuery pDataQuery)
Counts the number of rows matching the
DataQuery . |
List<IEntityRow> |
queryEntityRows(DataQuery pDataQuery)
Query for
IEntityRow the group by information will be ignored. |
IEntityRow |
queryFirstEntityRow(DataQuery pDataQuery)
Returns the first Row matching the query or null if there is no row
matching the query
|
List<IDataRow> |
queryRows(DataQuery pDataQuery)
Retrieve the rows for the given
DataQuery |
void |
removeRowFromTx(UUID pDETaskUUID,
IEntityRow pRowToRemove)
REmove rows from the transaction basket of a DataEntry Task
|
long queryCount(DataQuery pDataQuery)
DataQuery
. Note that the
DataQuery.getPageCriteria()
,
DataQuery.getSelectExpressions()
and
DataQuery.getOrderByCriterias()
are totally ignored for count.pDataQuery
- List<IDataRow> queryRows(DataQuery pDataQuery)
DataQuery
pDataQuery
- The DataQuery
to useList<IEntityRow> queryEntityRows(DataQuery pDataQuery)
IEntityRow
the group by information will be ignored.
Also the id of the row will always be queried even if
DataQuery.getSelectExpressions()
is emptypDataQuery
- IEntityRow queryFirstEntityRow(DataQuery pDataQuery)
pDataQuery
- IEntityRow newRow(IActivityTask pTask, IEntity pEntity)
persistRow(UUID, IEntityRow)
method.
The following attributes are initialized: - PublisherID - LoadIDpTask
- pEntity
- void persistRow(UUID pDETaskUUID, IEntityRow pDataRow)
The row should be either created using
newRow(IActivityTask, IEntity)
or retrieved using
queryEntityRows(DataQuery)
on a
DataAccessModelConstants.SDE_VIEW_TYPE
view.
If persist succeeds the IEntityRow will be updated with new values for attributes that are managed by the system (Creator, Updator, id attribute if generated...).
pDETaskUUID
- the DataEntry Task UUIDpEntityRow
- the IEntityRow
to persistvoid checkout(UUID pDETaskUUID, DataQuery pCheckoutQuery, NewRowTarget pNewRowsTarget)
IDataEntryWorkflow
. Furthermore
the Checkout from Golden Data View might not be able for IBusinessObject
containing references to SDPK.pDETaskUUID
- the DataEntry Task UUIDpCheckoutQuery
- The query to select rows to checkout.pNewRowsTarget
- where the new rows will be checked outIDataEntryWorkflow.isGoldenCheckoutEnabled()
,
IDataEntryWorkflow.isMasterCheckoutEnabled()
,
IDataEntryWorkflow.isRejectsCheckoutEnabled()
,
isGoldenCheckoutSupported(UUID, NewRowTarget)
boolean isGoldenCheckoutSupported(UUID pDETaskUUID, NewRowTarget pNewRowsTarget)
void removeRowFromTx(UUID pDETaskUUID, IEntityRow pRowToRemove)
pDETaskUUID
- pDETaskUUID the DataEntry Task UUIDpRowToRemove
- the row to removeCopyright © 2019. All rights reserved.