1 package org.apache.torque.engine.database.model;
2
3 /*
4 * Copyright 2001-2004 The Apache Software Foundation.
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18
19 /***
20 * Interface for various ID retrieval method types
21 * (i.e. auto-increment, sequence, ID broker, etc.).
22 *
23 * @author <a href="mailto:dlr@collab.net">Daniel Rall</a>
24 * @version $Id: IDMethod.java,v 1.3 2004/02/22 06:27:19 jmcnally Exp $
25 */
26 public interface IDMethod
27 {
28 /***
29 * Key generation via database-specific ID method
30 * (i.e. auto-increment for MySQL, sequence for Oracle, etc.).
31 */
32 String NATIVE = "native";
33
34 /***
35 * Key generation via auto-increment.
36 */
37 // String AUTO_INCREMENT = "autoincrement";
38
39 /***
40 * Key generation via sequences.
41 */
42 // String SEQUENCE = "sequence";
43
44 /***
45 * Key generation via the IDBroker table.
46 */
47 String ID_BROKER = "idbroker";
48
49 /***
50 * No RDBMS key generation (keys may be generated by the
51 * application).
52 */
53 String NO_ID_METHOD = "none";
54 }