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
21
22 /***
23 * Interface for various ID retrieval method types.
24 * This currently includes native, ID broker, and none.
25 *
26 * @author <a href="mailto:dlr@collab.net">Daniel Rall</a>
27 * @version $Id: IDMethod.java 473814 2006-11-11 22:30:30Z tv $
28 */
29 public interface IDMethod
30 {
31 /***
32 * Key generation via database-specific ID method.
33 * For example, this would be auto-increment for MySQL,
34 * sequence for Oracle, etc.
35 */
36 String NATIVE = "native";
37
38 /***
39 * Key generation via the IDBroker table.
40 */
41 String ID_BROKER = "idbroker";
42
43 /***
44 * No RDBMS key generation (keys may be generated by the
45 * application).
46 */
47 String NO_ID_METHOD = "none";
48 }