| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| IDMethod |
|
| 1.0;1 |
| 1 | package org.apache.torque.engine.database.model; | |
| 2 | ||
| 3 | /* | |
| 4 | * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE | |
| 5 | * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file | |
| 6 | * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the | |
| 7 | * License. You may obtain a copy of the License at | |
| 8 | * | |
| 9 | * http://www.apache.org/licenses/LICENSE-2.0 | |
| 10 | * | |
| 11 | * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on | |
| 12 | * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the | |
| 13 | * specific language governing permissions and limitations under the License. | |
| 14 | */ | |
| 15 | ||
| 16 | /** | |
| 17 | * Interface for various ID retrieval method types. This currently includes native, ID broker, and none. | |
| 18 | * | |
| 19 | * @author <a href="mailto:dlr@collab.net">Daniel Rall</a> | |
| 20 | * @version $Id: IDMethod.java,v 1.1 2007-10-21 07:57:27 abyrne Exp $ | |
| 21 | */ | |
| 22 | public interface IDMethod { | |
| 23 | ||
| 24 | void empty(); | |
| 25 | ||
| 26 | /** | |
| 27 | * Key generation via database-specific ID method. For example, this would be auto-increment for MySQL, sequence for | |
| 28 | * Oracle, etc. | |
| 29 | */ | |
| 30 | String NATIVE = "native"; | |
| 31 | ||
| 32 | /** | |
| 33 | * Key generation via the IDBroker table. | |
| 34 | */ | |
| 35 | String ID_BROKER = "idbroker"; | |
| 36 | ||
| 37 | /** | |
| 38 | * No RDBMS key generation (keys may be generated by the application). | |
| 39 | */ | |
| 40 | String NO_ID_METHOD = "none"; | |
| 41 | } |