public interface AclObjectIdentityPersistence extends org.springframework.data.jpa.repository.JpaRepository<AclObjectIdentity,Long>, org.springframework.data.querydsl.QueryDslPredicateExecutor<AclObjectIdentity>
| Modifier and Type | Method and Description |
|---|---|
AclObjectIdentity |
findByObjectIdAndClassname(long objectIdIdentity,
String aclClass)
Find by object id identity and class name.
|
List<AclObjectIdentity> |
findByParentObject(AclObjectIdentity parentObject) |
void |
resetChildrenOfOID(AclObjectIdentity oID)
Clear the parentObject of child OID that use this oID as parentObject.
|
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlushfindAllcount, delete, delete, delete, deleteAll, exists, findOne, save@Query(value="select aoi from AclObjectIdentity aoi where aoi.objectIdIdentity = :objectIdIdentity and aoi.aclClass.aclClass = :aclClass") AclObjectIdentity findByObjectIdAndClassname(@Param(value="objectIdIdentity") long objectIdIdentity, @Param(value="aclClass") String aclClass)
objectIdIdentity - the object identity idaclClass - the acl class@Modifying @Query(value="update AclObjectIdentity aoi set aoi.parentObject = null where aoi.parentObject = ?1") void resetChildrenOfOID(AclObjectIdentity oID)
oID - the object identifier IDList<AclObjectIdentity> findByParentObject(AclObjectIdentity parentObject)
Copyright © 2020 Global Crop Diversity Trust. All rights reserved.