Package io.ebean.config.dbplatform
Class SqlErrorCodes
java.lang.Object
io.ebean.config.dbplatform.SqlErrorCodes
public class SqlErrorCodes extends Object
Used to build a SQLCodeTranslator given DB platform specific codes.
-
Constructor Summary
Constructors Constructor Description SqlErrorCodes() -
Method Summary
Modifier and Type Method Description SqlErrorCodesaddAcquireLock(String... codes)Map the codes to AcquireLockException.SqlErrorCodesaddDataIntegrity(String... codes)Map the codes to DataIntegrityException.SqlErrorCodesaddDuplicateKey(String... codes)Map the codes to DuplicateKeyException.SqlErrorCodesaddSerializableConflict(String... codes)Map the codes to SerializableConflictException.SqlCodeTranslatorbuild()Build and return the SQLCodeTranslator with the mapped codes.
-
Constructor Details
-
SqlErrorCodes
public SqlErrorCodes()
-
-
Method Details
-
addAcquireLock
Map the codes to AcquireLockException. -
addDataIntegrity
Map the codes to DataIntegrityException. -
addDuplicateKey
Map the codes to DuplicateKeyException. -
addSerializableConflict
Map the codes to SerializableConflictException. -
build
Build and return the SQLCodeTranslator with the mapped codes.
-