Enum EFcSqlStatementError

    • Enum Constant Detail

      • COULD_NOT_CREATE_PREPARED_STATEMENT

        public static final EFcSqlStatementError COULD_NOT_CREATE_PREPARED_STATEMENT
        When the prepared statement could not be created, such as when it is syntactically invalid.
      • COULD_NOT_EXTRACT_RESULT_SET

        public static final EFcSqlStatementError COULD_NOT_EXTRACT_RESULT_SET
        When the query itself was successful, but the result set could not be extracted.
      • COULD_NOT_RELEASE_RESOURCES

        public static final EFcSqlStatementError COULD_NOT_RELEASE_RESOURCES
        When the connection to the database or the prepared statement could not be closed properly.
      • DATABASE_CONNECTION_NOT_FOUND

        public static final EFcSqlStatementError DATABASE_CONNECTION_NOT_FOUND
        When the database connection details were not found, usually because the entity was already deleted in the FORMCYCLE backend.
      • DATABASE_QUERY_NOT_FOUND

        public static final EFcSqlStatementError DATABASE_QUERY_NOT_FOUND
        When the database query were not found, usually because the entity was already deleted in the FORMCYCLE backend.
      • QUERY_EXECUTION_FAILED

        public static final EFcSqlStatementError QUERY_EXECUTION_FAILED
        When the SQL query could not be executed against the database.
      • UNABLE_TO_CONNECT

        public static final EFcSqlStatementError UNABLE_TO_CONNECT
        When the connection to the database could not be established, e.g. when the URL or the credentials are invalid.
    • Method Detail

      • values

        public static EFcSqlStatementError[] 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 (EFcSqlStatementError c : EFcSqlStatementError.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static EFcSqlStatementError 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 name
        NullPointerException - if the argument is null