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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlErrorCodes
addAcquireLock(String... codes)
Map the codes to AcquireLockException.SqlErrorCodes
addDataIntegrity(String... codes)
Map the codes to DataIntegrityException.SqlErrorCodes
addDuplicateKey(String... codes)
Map the codes to DuplicateKeyException.SqlErrorCodes
addSerializableConflict(String... codes)
Map the codes to SerializableConflictException.SqlCodeTranslator
build()
Build and return the SQLCodeTranslator with the mapped codes.
-
-
-
Constructor Detail
-
SqlErrorCodes
public SqlErrorCodes()
-
-
Method Detail
-
addAcquireLock
public SqlErrorCodes addAcquireLock(String... codes)
Map the codes to AcquireLockException.
-
addDataIntegrity
public SqlErrorCodes addDataIntegrity(String... codes)
Map the codes to DataIntegrityException.
-
addDuplicateKey
public SqlErrorCodes addDuplicateKey(String... codes)
Map the codes to DuplicateKeyException.
-
addSerializableConflict
public SqlErrorCodes addSerializableConflict(String... codes)
Map the codes to SerializableConflictException.
-
build
public SqlCodeTranslator build()
Build and return the SQLCodeTranslator with the mapped codes.
-
-