@Override public OpenJPAException newStoreException(String msg, SQLException[] causes, Object failed) { OpenJPAException ke = super.newStoreException(msg, causes, failed); if (ke instanceof ReferentialIntegrityException && causes[0].getMessage().indexOf("Duplicate key value for") > -1) { ((ReferentialIntegrityException) ke).setIntegrityViolation (ReferentialIntegrityException.IV_UNIQUE); } return ke; } }
@Override public OpenJPAException newStoreException(String msg, SQLException[] causes, Object failed) { OpenJPAException ke = super.newStoreException(msg, causes, failed); if (ke instanceof ReferentialIntegrityException && causes[0].getErrorCode() == -violation_of_unique_index_or_constraint) { ((ReferentialIntegrityException) ke).setIntegrityViolation (ReferentialIntegrityException.IV_UNIQUE); } return ke; } }
@Override public OpenJPAException newStoreException(String msg, SQLException[] causes, Object failed) { OpenJPAException ke = super.newStoreException(msg, causes, failed); if (ke instanceof ReferentialIntegrityException && causes[0].getMessage().indexOf("Duplicate key value for") > -1) { ((ReferentialIntegrityException) ke).setIntegrityViolation (ReferentialIntegrityException.IV_UNIQUE); } return ke; } }
@Override public OpenJPAException newStoreException(String msg, SQLException[] causes, Object failed) { OpenJPAException ke = super.newStoreException(msg, causes, failed); if (ke instanceof ReferentialIntegrityException && causes[0].getMessage().indexOf("Duplicate key value for") > -1) { ((ReferentialIntegrityException) ke).setIntegrityViolation (ReferentialIntegrityException.IV_UNIQUE); } return ke; } }
public OpenJPAException newStoreException(String msg, SQLException[] causes, Object failed) { OpenJPAException ke = super.newStoreException(msg, causes, failed); if (ke instanceof ReferentialIntegrityException && causes[0].getErrorCode() == -Trace.VIOLATION_OF_UNIQUE_INDEX) { ((ReferentialIntegrityException) ke).setIntegrityViolation (ReferentialIntegrityException.IV_UNIQUE); } return ke; } }
@Override public OpenJPAException newStoreException(String msg, SQLException[] causes, Object failed) { OpenJPAException ke = super.newStoreException(msg, causes, failed); if (ke instanceof ReferentialIntegrityException && causes[0].getErrorCode() == -violation_of_unique_index_or_constraint) { ((ReferentialIntegrityException) ke).setIntegrityViolation (ReferentialIntegrityException.IV_UNIQUE); } return ke; } }
@Override public OpenJPAException newStoreException(String msg, SQLException[] causes, Object failed) { OpenJPAException ke = super.newStoreException(msg, causes, failed); if (ke instanceof ReferentialIntegrityException && causes[0].getMessage().indexOf("Duplicate key value for") > -1) { ((ReferentialIntegrityException) ke).setIntegrityViolation (ReferentialIntegrityException.IV_UNIQUE); } return ke; } }
@Override public OpenJPAException newStoreException(String msg, SQLException[] causes, Object failed) { OpenJPAException ke = super.newStoreException(msg, causes, failed); if (ke instanceof ReferentialIntegrityException && causes[0].getErrorCode() == -violation_of_unique_index_or_constraint) { ((ReferentialIntegrityException) ke).setIntegrityViolation (ReferentialIntegrityException.IV_UNIQUE); } return ke; } }
public OpenJPAException newStoreException(String msg, SQLException[] causes, Object failed) { OpenJPAException ke = super.newStoreException(msg, causes, failed); if (ke instanceof ReferentialIntegrityException && causes[0].getMessage().indexOf("Duplicate key value for") > -1) { ((ReferentialIntegrityException) ke).setIntegrityViolation (ReferentialIntegrityException.IV_UNIQUE); } return ke; } }
@Override public OpenJPAException newStoreException(String msg, SQLException[] causes, Object failed) { OpenJPAException ke = super.newStoreException(msg, causes, failed); if (ke instanceof ReferentialIntegrityException && causes[0].getErrorCode() == -violation_of_unique_index_or_constraint) { ((ReferentialIntegrityException) ke).setIntegrityViolation (ReferentialIntegrityException.IV_UNIQUE); } return ke; } }
public ReferentialIntegrityException(int iv) { this(getMessage(iv)); setIntegrityViolation(iv); }
public ReferentialIntegrityException(int iv) { this(getMessage(iv)); setIntegrityViolation(iv); }
public ReferentialIntegrityException(int iv) { this(getMessage(iv)); setIntegrityViolation(iv); }
public ReferentialIntegrityException(int iv) { this(getMessage(iv)); setIntegrityViolation(iv); }
public ReferentialIntegrityException(int iv) { this(getMessage(iv)); setIntegrityViolation(iv); }