1 /*
2 * The Working-Dogs.com License, Version 1.1
3 *
4 * Copyright (c) 1999 Working-Dogs.com. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 *
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 *
13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in
15 * the documentation and/or other materials provided with the
16 * distribution.
17 *
18 * 3. The end-user documentation included with the redistribution, if
19 * any, must include the following acknowlegement:
20 * "This product includes software developed by the
21 * Working-Dogs.com <http://www.Working-Dogs.com/>."
22 * Alternately, this acknowlegement may appear in the software itself,
23 * if and wherever such third-party acknowlegements normally appear.
24 *
25 * 4. The names "Working-Dogs.com" and "Village" must not be used to
26 * endorse or promote products derived from this software without
27 * prior written permission. For written permission, please contact
28 * jon@working-dogs.com.
29 *
30 * 5. Products derived from this software may not be called
31 * "Working-Dogs.com" nor may "Village" appear in their names
32 * without prior written permission of Working-Dogs.com.
33 *
34 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
35 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
36 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
37 * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
38 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
39 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
40 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
41 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
42 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
43 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
44 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
45 * SUCH DAMAGE.
46 * ====================================================================
47 *
48 * This software consists of voluntary contributions made by many
49 * individuals on behalf of the Working-Dogs.com. For more
50 * information on the Working-Dogs.com, please see
51 * <http://www.Working-Dogs.com/>.
52 */
53 package com.workingdogs.village;
54
55 /***
56 * A class for constants.
57 *
58 * @author <a href="mailto:jon@latchkey.com">Jon S. Stevens</a>
59 * @version $Revision: 567 $
60 */
61 public class Enums
62 {
63 /***
64 * Doesn't do anything
65 */
66 Enums()
67 {
68 }
69
70 /*** DataSet record that has been deleted but not removed from the DataSet */
71 public static final int ZOMBIE = 1;
72
73 /*** A record marked for delete */
74 public static final int DELETE = 2;
75
76 /*** A record marked for update */
77 public static final int UPDATE = 3;
78
79 /*** A record marked for insert */
80 public static final int INSERT = 4;
81
82 /*** trigger state before a delete is run */
83 public static final int BEFOREDELETE = 5;
84
85 /*** trigger state after a delete is run */
86 public static final int AFTERDELETE = 6;
87
88 /*** trigger state before a insert is run */
89 public static final int BEFOREINSERT = 7;
90
91 /*** trigger state after a insert is run */
92 public static final int AFTERINSERT = 8;
93
94 /*** trigger state before a update is run */
95 public static final int BEFOREUPDATE = 9;
96
97 /*** trigger state after a update is run */
98 public static final int AFTERUPDATE = 10;
99
100 /*** an unknown type */
101 public static final int UNKNOWN = 11;
102
103 /*** an oracle type */
104 public static final int ORACLE = 12;
105
106 /*** an sybase type */
107 public static final int SYBASE = 13;
108
109 /*** an sqlserver type */
110 public static final int SQLSERVER = 14;
111 }