KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > derby > iapi > sql > StatementType


1 /*
2
3    Derby - Class org.apache.derby.iapi.sql.StatementType
4
5    Licensed to the Apache Software Foundation (ASF) under one or more
6    contributor license agreements. See the NOTICE file distributed with
7    this work for additional information regarding copyright ownership.
8    The ASF licenses this file to you under the Apache License, Version 2.0
9    (the "License"); you may not use this file except in compliance with
10    the License. You may obtain a copy of the License at
11
12       http://www.apache.org/licenses/LICENSE-2.0
13
14    Unless required by applicable law or agreed to in writing, software
15    distributed under the License is distributed on an "AS IS" BASIS,
16    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17    See the License for the specific language governing permissions and
18    limitations under the License.
19
20  */

21
22 package org.apache.derby.iapi.sql;
23
24 /**
25  * Different types of statements
26  *
27  * @author jamie
28  */

29 public interface StatementType
30 {
31     public static final int UNKNOWN = 0;
32     public static final int INSERT = 1;
33     public static final int BULK_INSERT_REPLACE = 2;
34     public static final int UPDATE = 3;
35     public static final int DELETE = 4;
36     public static final int ENABLED = 5;
37     public static final int DISABLED = 6;
38
39     public static final int DROP_CASCADE = 0;
40     public static final int DROP_RESTRICT = 1;
41     public static final int DROP_DEFAULT = 2;
42
43     public static final int RENAME_TABLE = 1;
44     public static final int RENAME_COLUMN = 2;
45     public static final int RENAME_INDEX = 3;
46
47     public static final int RA_CASCADE = 0;
48     public static final int RA_RESTRICT = 1;
49     public static final int RA_NOACTION = 2; //default value
50
public static final int RA_SETNULL = 3;
51     public static final int RA_SETDEFAULT = 4;
52     
53     public static final int SET_SCHEMA_USER = 1;
54     public static final int SET_SCHEMA_DYNAMIC = 2;
55     
56 }
57
58
59
60
61
62
Popular Tags