com.semarchy.mdm.runtime.data
Interface IDataAccessService

All Superinterfaces:
Serializable

public interface IDataAccessService
extends Serializable


Method Summary
 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
 

Method Detail

queryCount

long queryCount(DataQuery pDataQuery)
Counts the number of rows matching the DataQuery. Note that the DataQuery.getPageCriteria(), DataQuery.getSelectExpressions() and DataQuery.getOrderByCriterias() are totally ignored for count.

Parameters:
pDataQuery -
Returns:

queryRows

List<IDataRow> queryRows(DataQuery pDataQuery)
Retrieve the rows for the given DataQuery

Parameters:
pDataQuery - The DataQuery to use
Returns:

queryEntityRows

List<IEntityRow> queryEntityRows(DataQuery pDataQuery)
Query for IEntityRow the group by information will be ignored. Also the id of the row will always be queried even if DataQuery.getSelectExpressions() is empty

Parameters:
pDataQuery -
Returns:

queryFirstEntityRow

IEntityRow queryFirstEntityRow(DataQuery pDataQuery)
Returns the first Row matching the query or null if there is no row matching the query

Parameters:
pDataQuery -
Returns:

newRow

IEntityRow newRow(IActivityTask pTask,
                  IEntity pEntity)
Create a NOT persisted Data Row. This method should be used to create an new row in memory before persisting it using persistRow(UUID, IEntityRow) method. The following attributes are initialized: - PublisherID - LoadID

Parameters:
pTask -
pEntity -
Returns:

persistRow

void persistRow(UUID pDETaskUUID,
                IEntityRow pDataRow)
Persist the row into the transaction basket of a DataEntry Task.

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...).

Parameters:
pDETaskUUID - the DataEntry Task UUID
pEntityRow - the IEntityRow to persist

checkout

void checkout(UUID pDETaskUUID,
              DataQuery pCheckoutQuery,
              NewRowTarget pNewRowsTarget)
Checkout rows from Hub into the transaction basket of a DataEntry Task. Checkout can be done from different sources: Note: Checkout source might not be available depending on the design time configuration on the IDataEntryWorkflow. Furthermore the Checkout from Golden Data View might not be able for IBusinessObject containing references to SDPK.

Parameters:
pDETaskUUID - the DataEntry Task UUID
pCheckoutQuery - The query to select rows to checkout.
pNewRowsTarget - where the new rows will be checked out
See Also:
IDataEntryWorkflow.isGoldenCheckoutEnabled(), IDataEntryWorkflow.isMasterCheckoutEnabled(), IDataEntryWorkflow.isRejectsCheckoutEnabled(), isGoldenCheckoutSupported(UUID, NewRowTarget)

isGoldenCheckoutSupported

boolean isGoldenCheckoutSupported(UUID pDETaskUUID,
                                  NewRowTarget pNewRowsTarget)

removeRowFromTx

void removeRowFromTx(UUID pDETaskUUID,
                     IEntityRow pRowToRemove)
REmove rows from the transaction basket of a DataEntry Task

Parameters:
pDETaskUUID - pDETaskUUID the DataEntry Task UUID
pRowToRemove - the row to remove


Copyright © 2015. All Rights Reserved.