|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.reuters.rc.db.adb.AdbOpcode
ADB operation codes represented as type-safe enumerations.
| Field Summary | |
static AdbOpcode |
DELETE
DELETE opcode object. |
static AdbOpcode |
INSERT
INSERT opcode object. |
static AdbOpcode |
UNKNOWN
UNKNOWN opcode object- Unknown opcode. |
static AdbOpcode |
UPDATE
UPDATE opcode object. |
static AdbOpcode |
UPSERT
UPSERT opcode object - UPDATE if row exists, otherwise INSERT. |
| Method Summary | |
static AdbOpcode |
getOpcode(int adbOpCode)
Get AdbOpcode object corresponding to the opCode published by ADB. |
static AdbOpcode |
getOpcode(java.lang.Integer adbOpCode)
Get AdbOpcode object corresponding to the opCode published by ADB. |
int |
intValue()
Get the opcode value as an int. |
boolean |
isDelete()
Check if this opcode is an DELETE. |
boolean |
isInsert()
Check if this opcode is an INSERT. |
boolean |
isUnknown()
Check if this opcode is an UNKNOWN. |
boolean |
isUpdate()
Check if this opcode is an UPDATE. |
boolean |
isUpsert()
Check if this opcode is an UPSERT. |
java.lang.String |
toString()
Override toString(). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final AdbOpcode INSERT
public static final AdbOpcode UPDATE
public static final AdbOpcode DELETE
public static final AdbOpcode UPSERT
public static final AdbOpcode UNKNOWN
| Method Detail |
public java.lang.String toString()
toString().toString in class java.lang.Objectpublic final int intValue()
int.int.public final boolean isInsert()
isInsert in interface DbOpcodetrue if this opcode is an INSERT.public final boolean isDelete()
isDelete in interface DbOpcodetrue if this opcode is an DELETE.public final boolean isUpdate()
isUpdate in interface DbOpcodetrue if this opcode is an UPDATE.public final boolean isUpsert()
isUpsert in interface DbOpcodetrue if this opcode is an UPSERT.public final boolean isUnknown()
isUnknown in interface DbOpcodetrue if this opcode is an UNKNOWN.public static final AdbOpcode getOpcode(java.lang.Integer adbOpCode)
AdbOpcode object corresponding to the opCode published by ADB.adbOpCode - OpCode published by ADB.AdbOpcode object corresponding to the opCode published by ADB.
Returns UNKNOWN if the adbOpcode is invalid.public static final AdbOpcode getOpcode(int adbOpCode)
AdbOpcode object corresponding to the opCode published by ADB.adbOpCode - OpCode published by ADB.AdbOpcode object corresponding to the opCode published by ADB.
Returns UNKNOWN if the adbOpcode is invalid.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||