com.sap.cds.jdbc.postgresql.PostgreSqlExceptionAnalyzer Maven / Gradle / Ivy
The newest version!
package com.sap.cds.jdbc.postgresql;
import java.sql.SQLException;
import com.sap.cds.jdbc.generic.GenericExceptionAnalyzer;
public class PostgreSqlExceptionAnalyzer extends GenericExceptionAnalyzer {
private static final String LOCK_NOT_AVAILABLE = "55P03";
@Override
public boolean isLockTimeout(SQLException ex) {
return LOCK_NOT_AVAILABLE.equals(ex.getSQLState());
}
}