I wanna create an application whereby i can lock records or tables or both when one user is reading or making changes to the record and/or table. i wanna create custom locks each with their very own unique constraints/conditions and i wanna create it in the service… how do i go about doing that? how do create locks in Cuba and how do i add my custom constraints on them.
Anything. In the first place, the API is used for locking entities, and the parameters are used for entity name and ID (see Javadocs). In your case, the combination of parameters should uniquely denote your process or service.