01: /*
02:
03: Derby - Class org.apache.derby.iapi.sql.StatementType
04:
05: Licensed to the Apache Software Foundation (ASF) under one or more
06: contributor license agreements. See the NOTICE file distributed with
07: this work for additional information regarding copyright ownership.
08: The ASF licenses this file to you under the Apache License, Version 2.0
09: (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: public static final int UNKNOWN = 0;
31: public static final int INSERT = 1;
32: public static final int BULK_INSERT_REPLACE = 2;
33: public static final int UPDATE = 3;
34: public static final int DELETE = 4;
35: public static final int ENABLED = 5;
36: public static final int DISABLED = 6;
37:
38: public static final int DROP_CASCADE = 0;
39: public static final int DROP_RESTRICT = 1;
40: public static final int DROP_DEFAULT = 2;
41:
42: public static final int RENAME_TABLE = 1;
43: public static final int RENAME_COLUMN = 2;
44: public static final int RENAME_INDEX = 3;
45:
46: public static final int RA_CASCADE = 0;
47: public static final int RA_RESTRICT = 1;
48: public static final int RA_NOACTION = 2; //default value
49: public static final int RA_SETNULL = 3;
50: public static final int RA_SETDEFAULT = 4;
51:
52: public static final int SET_SCHEMA_USER = 1;
53: public static final int SET_SCHEMA_DYNAMIC = 2;
54:
55: }
|