noprimarykeyerror.java

来自「一个OR Mapping工具」· Java 代码 · 共 23 行

JAVA
23
字号
//-< NoPrimaryKeyError.java >----------------------------------------*--------*
// JORA                       Version 2.0        (c) 1998  GARRET    *     ?  *
// (Java Object Relational Adapter)                                  *   /\|  *
//                                                                   *  /  \  *
//                          Created:     10-Jun-98    K.A. Knizhnik  * / [] \ *
//                          Last update: 16-Jun-98    K.A. Knizhnik  * GARRET *
//-------------------------------------------------------------------*--------*
// Exception raised when UPDATE/REMOVE operation is appllied to Table with
// no primary key
//-------------------------------------------------------------------*--------*

package jora;

/** Error raised when unpdate/remove operation is invoked for the table
 *  with no correct primary key defined (key was not specified or 
 *  type of the key component is not atomic).
 */
public class NoPrimaryKeyError extends java.lang.Error { 
    NoPrimaryKeyError(Table table) { 
        super("Table " + table.name + " has no atomic primary key");
    } 
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?