Interface DaoOwnershipRepository
- All Superinterfaces:
RepositoryBaseInterface<DaoOwnership>
- All Known Implementing Classes:
MgDaoOwnershipRepository
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
Fields inherited from interface io.clonecloudstore.common.database.utils.RepositoryBaseInterface
ID, ID_PG
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
deleteOwnership
(String client, String bucket) default boolean
deleteOwnerships
(String bucket) default List
<ClientBucketAccess> findAllOwnerships
(String client) default ClientOwnership
findByBucket
(String client, String bucket) default List
<ClientBucketAccess> findOwnerships
(String client, ClientOwnership ownership) static String
getInternalId
(String client, String bucket) default ClientOwnership
insertOwnership
(String client, String bucket, ClientOwnership ownership) default ClientOwnership
updateOwnership
(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
-