public interface Trigger
InvalidRequestException
from a beforeXxx()
will stop the transaction and return HTTP 400 Bad
Request to the client. Throwing SqlResourceException
from a beforeXxx()
or
afterXxx()
will return HTTP 500 Internal Server Error to the client.AbstractTrigger
Modifier and Type | Method and Description |
---|---|
void |
afterDelete(Request request) |
void |
afterInsert(Request request) |
void |
afterSelect(Request request) |
void |
afterUpdate(Request request) |
void |
beforeDelete(Request request) |
void |
beforeInsert(Request request) |
void |
beforeSelect(Request request) |
void |
beforeUpdate(Request request) |
void beforeSelect(Request request) throws InvalidRequestException, SqlResourceException
void beforeInsert(Request request) throws InvalidRequestException, SqlResourceException
void beforeUpdate(Request request) throws InvalidRequestException, SqlResourceException
void beforeDelete(Request request) throws InvalidRequestException, SqlResourceException
void afterSelect(Request request) throws SqlResourceException
SqlResourceException
void afterInsert(Request request) throws SqlResourceException
SqlResourceException
void afterUpdate(Request request) throws SqlResourceException
SqlResourceException
void afterDelete(Request request) throws SqlResourceException
SqlResourceException
Copyright © 2011-2018 restSQL Project Contributors