forked from tada/pljava
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTrigger.java
More file actions
34 lines (29 loc) · 826 Bytes
/
Copy pathTrigger.java
File metadata and controls
34 lines (29 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
* Copyright (c) 2004 TADA AB - Taby Sweden
* Distributed under the terms shown in the file COPYRIGHT
* found in the root directory of this distribution or at
* http://eng.tada.se/osprojects/COPYRIGHT.html
*/
package org.postgresql.pljava.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @author Thomas Hallgren
*/
@Target({}) @Retention(RetentionPolicy.RUNTIME)
public @interface Trigger
{
enum When { BEFORE, AFTER };
enum Event { DELETE, INSERT, UPDATE };
enum Scope { STATEMENT, ROW };
String[] arguments();
Event[] events();
String name();
String schema();
Scope scope() default Scope.STATEMENT;
String table();
When when();
}