1 package org.apache.torque.engine.database.model;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 239624 2005-08-24 12:18:03Z henning $
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
38
39 /***
40 * Key generation via sequences.
41 */
42
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 }