public interface AdminEntityService
| Modifier and Type | Method and Description |
|---|---|
Entity |
addEntity(EntityForm entityForm,
java.lang.String[] customCriteria)
Persists the given entity
|
Entity |
addSubCollectionEntity(EntityForm entityForm,
ClassMetadata mainMetadata,
Property field,
Entity parentEntity)
Adds an item into the specified collection
|
Entity |
getAdvancedCollectionRecord(ClassMetadata containingClassMetadata,
Entity containingEntity,
Property collectionProperty,
java.lang.String collectionItemId)
Gets an Entity representing a specific collection item
|
ClassMetadata |
getClassMetadata(PersistencePackageRequest request)
Returns class metadata for the given request object
|
java.lang.String |
getContextSpecificRelationshipId(ClassMetadata cmd,
Entity entity,
java.lang.String propertyName)
Returns the appropriate id to use for the given entity/metadata and prefix when dealing with collections.
|
java.lang.String |
getIdProperty(ClassMetadata cmd)
Returns the name of the property in this ClassMetadata that has field type set to
SupportedFieldType.ID |
Entity |
getRecord(PersistencePackageRequest request,
java.lang.String id,
ClassMetadata cmd,
boolean isCollectionRequest)
Returns a specific record for the given request and primary key id/property
|
DynamicResultSet |
getRecords(PersistencePackageRequest request)
Returns the DynamicResultSet containing the total records for the query and the currently fetched Entity[]
|
java.util.Map<java.lang.String,DynamicResultSet> |
getRecordsForAllSubCollections(PersistencePackageRequest ppr,
Entity containingEntity)
Returns all records for all subcollections of the specified request and its primary key
|
DynamicResultSet |
getRecordsForCollection(ClassMetadata containingClassMetadata,
Entity containingEntity,
Property collectionProperty,
FilterAndSortCriteria[] fascs,
java.lang.Integer startIndex,
java.lang.Integer maxIndex)
Returns the DynamicResultSet representing the records that belong to the specified collectionProperty for the
given containingClass and the primary key for the containingClass
|
void |
removeEntity(EntityForm entityForm,
java.lang.String[] customCriteria)
Removes the given entity
|
void |
removeSubCollectionEntity(ClassMetadata mainMetadata,
Property field,
Entity parentEntity,
java.lang.String itemId,
java.lang.String priorKey)
Removes the given item from the specified collection.
|
Entity |
updateEntity(EntityForm entityForm,
java.lang.String[] customCriteria)
Updates the given entity
|
Entity |
updateSubCollectionEntity(EntityForm entityForm,
ClassMetadata mainMetadata,
Property field,
Entity parentEntity,
java.lang.String collectionItemId)
Updates the specified collection item
|
ClassMetadata getClassMetadata(PersistencePackageRequest request) throws ServiceException
request - ServiceExceptionDynamicResultSet getRecords(PersistencePackageRequest request) throws ServiceException
request - ServiceExceptionEntity getRecord(PersistencePackageRequest request, java.lang.String id, ClassMetadata cmd, boolean isCollectionRequest) throws ServiceException
request - id - cmd - isCollectionRequest - whether or not this record request was initiated from a collection on a parent entityServiceExceptionEntity addEntity(EntityForm entityForm, java.lang.String[] customCriteria) throws ServiceException
entityForm - customCriteria - ServiceExceptionEntity updateEntity(EntityForm entityForm, java.lang.String[] customCriteria) throws ServiceException
entityForm - customCriteria - ServiceExceptionvoid removeEntity(EntityForm entityForm, java.lang.String[] customCriteria) throws ServiceException
entityForm - customCriteria - ServiceExceptionEntity getAdvancedCollectionRecord(ClassMetadata containingClassMetadata, Entity containingEntity, Property collectionProperty, java.lang.String collectionItemId) throws ServiceException
containingClassMetadata - containingEntity - collectionProperty - collectionItemId - ServiceExceptionDynamicResultSet getRecordsForCollection(ClassMetadata containingClassMetadata, Entity containingEntity, Property collectionProperty, FilterAndSortCriteria[] fascs, java.lang.Integer startIndex, java.lang.Integer maxIndex) throws ServiceException
containingClassMetadata - containingEntity - collectionProperty - fascs - startIndex - maxIndex - ServiceExceptionjava.util.Map<java.lang.String,DynamicResultSet> getRecordsForAllSubCollections(PersistencePackageRequest ppr, Entity containingEntity) throws ServiceException
ppr - containingEntity - ServiceException#getRecordsForCollection(ClassMetadata, String, Property)Entity addSubCollectionEntity(EntityForm entityForm, ClassMetadata mainMetadata, Property field, Entity parentEntity) throws ServiceException, java.lang.ClassNotFoundException
entityForm - mainMetadata - field - parentEntity - ServiceExceptionjava.lang.ClassNotFoundExceptionEntity updateSubCollectionEntity(EntityForm entityForm, ClassMetadata mainMetadata, Property field, Entity parentEntity, java.lang.String collectionItemId) throws ServiceException, java.lang.ClassNotFoundException
entityForm - mainMetadata - field - parentEntity - collectionItemId - ServiceExceptionjava.lang.ClassNotFoundExceptionvoid removeSubCollectionEntity(ClassMetadata mainMetadata, Property field, Entity parentEntity, java.lang.String itemId, java.lang.String priorKey) throws ServiceException
mainMetadata - field - parentId - itemId - priorKey - - only needed for Map type collectionsServiceExceptionjava.lang.String getContextSpecificRelationshipId(ClassMetadata cmd, Entity entity, java.lang.String propertyName)
cmd - entity - propertyName - java.lang.String getIdProperty(ClassMetadata cmd) throws ServiceException
SupportedFieldType.IDcmd - ServiceExceptionCopyright © 2018. All Rights Reserved.