Interface DaoOwnershipRepository
- All Superinterfaces:
RepositoryBaseInterface<DaoOwnership>
- All Known Implementing Classes:
MgDaoOwnershipRepository
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface io.clonecloudstore.common.database.utils.RepositoryBaseInterface
ID, ID_PG -
Method Summary
Modifier and TypeMethodDescriptiondefault booleandeleteOwnership(String client, String bucket) default booleandeleteOwnerships(String bucket) default List<ClientBucketAccess> findAllOwnerships(String client) default ClientOwnershipfindByBucket(String client, String bucket) default List<ClientBucketAccess> findOwnerships(String client, ClientOwnership ownership) static StringgetInternalId(String client, String bucket) default ClientOwnershipinsertOwnership(String client, String bucket, ClientOwnership ownership) default ClientOwnershipupdateOwnership(String client, String bucket, ClientOwnership ownership) Methods inherited from interface io.clonecloudstore.common.database.utils.RepositoryBaseInterface
addToInsertBulk, count, countAll, createEmptyItem, delete, deleteAllDb, deleteWithPk, findIterator, findOne, findStream, findWithPk, flushAll, getPkName, getTable, insert, isSqlRepository, update, updateFull
-
Field Details
-
TABLE_NAME
- See Also:
-
CLIENT_ID
- See Also:
-
BUCKET
- See Also:
-
OWNERSHIP
- See Also:
-
-
Method Details
-
getInternalId
-
insertOwnership
default ClientOwnership insertOwnership(String client, String bucket, ClientOwnership ownership) throws CcsDbException - Throws:
CcsDbException
-
findByBucket
- Throws:
CcsDbException
-
findAllOwnerships
- Throws:
CcsDbException
-
findOwnerships
default List<ClientBucketAccess> findOwnerships(String client, ClientOwnership ownership) throws CcsDbException - Throws:
CcsDbException
-
updateOwnership
default ClientOwnership updateOwnership(String client, String bucket, ClientOwnership ownership) throws CcsDbException - Throws:
CcsDbException
-
deleteOwnership
- Throws:
CcsDbException
-
deleteOwnerships
- Throws:
CcsDbException
-