Enum JdbcConstants.ErrorCodes
- java.lang.Object
-
- java.lang.Enum<JdbcConstants.ErrorCodes>
-
- org.wso2.carbon.database.utils.jdbc.JdbcConstants.ErrorCodes
-
- All Implemented Interfaces:
Serializable,Comparable<JdbcConstants.ErrorCodes>
- Enclosing class:
- JdbcConstants
public static enum JdbcConstants.ErrorCodes extends Enum<JdbcConstants.ErrorCodes>
Error codes for the exceptions in jdbcTemplate.
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetErrorCode()StringgetErrorMessage()static JdbcConstants.ErrorCodesvalueOf(String name)Returns the enum constant of this type with the specified name.static JdbcConstants.ErrorCodes[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ERROR_CODE_DATABASE_QUERY_PERFORMING_ERROR
public static final JdbcConstants.ErrorCodes ERROR_CODE_DATABASE_QUERY_PERFORMING_ERROR
-
ERROR_CODE_GET_DB_TYPE
public static final JdbcConstants.ErrorCodes ERROR_CODE_GET_DB_TYPE
-
ERROR_CODE_AUTO_GENERATED_ID_FAILURE
public static final JdbcConstants.ErrorCodes ERROR_CODE_AUTO_GENERATED_ID_FAILURE
-
ERROR_CODE_DATABASE_QUERY_PERFORMING
public static final JdbcConstants.ErrorCodes ERROR_CODE_DATABASE_QUERY_PERFORMING
-
ERROR_CODE_GETTING_CONNECTION_FAILURE
public static final JdbcConstants.ErrorCodes ERROR_CODE_GETTING_CONNECTION_FAILURE
-
ERROR_CODE_ROLLBACK_TRANSACTION_FAILURE
public static final JdbcConstants.ErrorCodes ERROR_CODE_ROLLBACK_TRANSACTION_FAILURE
-
ERROR_CODE_COMMIT_TRANSACTION_FAILURE
public static final JdbcConstants.ErrorCodes ERROR_CODE_COMMIT_TRANSACTION_FAILURE
-
ERROR_CODE_CLOSE_CONNECTION_FAILURE
public static final JdbcConstants.ErrorCodes ERROR_CODE_CLOSE_CONNECTION_FAILURE
-
ERROR_CODE_MORE_RECORDS_IN_SINGLE_FETCH
public static final JdbcConstants.ErrorCodes ERROR_CODE_MORE_RECORDS_IN_SINGLE_FETCH
-
-
Method Detail
-
values
public static JdbcConstants.ErrorCodes[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (JdbcConstants.ErrorCodes c : JdbcConstants.ErrorCodes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JdbcConstants.ErrorCodes valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getErrorCode
public String getErrorCode()
-
getErrorMessage
public String getErrorMessage()
-
-