Package ehealth.rdg
Class PermissionRequest
java.lang.Object
ehealth.rdg.PermissionRequest
Relation: permission_requests.
Supported operations: insert, update.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPermissionRequest(Integer id, Integer requestedBy, Integer addressedTo, Timestamp validUntil, PermissionRequest.RequestStatus status) -
Method Summary
Modifier and TypeMethodDescriptiongetId()voidinsert()Inserts this permission request.voidsetAddressedTo(Integer addressedTo) voidvoidsetRequestedBy(Integer requestedBy) voidvoidsetValidUntil(Timestamp validUntil) voidUpdates the status of this request.
-
Constructor Details
-
PermissionRequest
public PermissionRequest() -
PermissionRequest
public PermissionRequest(Integer id, Integer requestedBy, Integer addressedTo, Timestamp validUntil, PermissionRequest.RequestStatus status)
-
-
Method Details
-
getId
-
setId
-
getRequestedBy
-
setRequestedBy
-
getAddressedTo
-
setAddressedTo
-
getValidUntil
-
setValidUntil
-
getStatus
-
setStatus
-
insert
Inserts this permission request.- Throws:
SQLException- thrown on any database access errorIllegalStateException- throw if some necessary attributes are null
-
updateStatus
Updates the status of this request.- Throws:
SQLException- thrown on any database access errorIllegalStateException- throw if some necessary attributes are nullNotFoundException- thrown if the request could not be found
-