java.lang.Object
io.ebean.config.dbplatform.SqlErrorCodes
Used to build a SQLCodeTranslator given DB platform specific codes.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAcquireLock
(String... codes) Map the codes to AcquireLockException.addDataIntegrity
(String... codes) Map the codes to DataIntegrityException.addDuplicateKey
(String... codes) Map the codes to DuplicateKeyException.addSerializableConflict
(String... codes) Map the codes to SerializableConflictException.build()
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.
-