Package com.smeup.kokos.sdk.repository
Class KokosObjectRepository
java.lang.Object
com.smeup.kokos.sdk.repository.KokosObjectRepository
- All Implemented Interfaces:
EntityRepository<KokosObject>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteById(EntityRepositoryContext context, String id) Deletes an entity by its id.find(EntityRepositoryContext context) Reads a list of entitiesfindById(EntityRepositoryContext context, String id) Reads a single entity by its id.save(EntityRepositoryContext context, KokosObject entity) Creates a new entity and returns the created entity with its generated id.updateById(EntityRepositoryContext context, String id, KokosObject entity) Updates an existing entity and returns the updated entity.
-
Constructor Details
-
KokosObjectRepository
public KokosObjectRepository()
-
-
Method Details
-
find
Description copied from interface:EntityRepositoryReads a list of entities- Specified by:
findin interfaceEntityRepository<KokosObject>- Throws:
RepositoryException
-
findById
Description copied from interface:EntityRepositoryReads a single entity by its id.- Specified by:
findByIdin interfaceEntityRepository<KokosObject>- Throws:
RepositoryException
-
save
public KokosObject save(EntityRepositoryContext context, KokosObject entity) throws RepositoryException Description copied from interface:EntityRepositoryCreates a new entity and returns the created entity with its generated id.- Specified by:
savein interfaceEntityRepository<KokosObject>- Throws:
RepositoryException
-
deleteById
Description copied from interface:EntityRepositoryDeletes an entity by its id.- Specified by:
deleteByIdin interfaceEntityRepository<KokosObject>- Throws:
RepositoryException
-
updateById
public KokosObject updateById(EntityRepositoryContext context, String id, KokosObject entity) throws RepositoryException Description copied from interface:EntityRepositoryUpdates an existing entity and returns the updated entity.- Specified by:
updateByIdin interfaceEntityRepository<KokosObject>- Throws:
RepositoryException
-