Class JDBCTransaction

    • Field Detail

      • JDBC_DRIVER_PROP

        public static final String JDBC_DRIVER_PROP
        This property allows to define the class that implements the JDBC driver, for example "com.mysql.jdbc.Driver". This class needs to be in the classpath of the server.
        See Also:
        Constant Field Values
      • JDBC_URL_PROP

        public static final String JDBC_URL_PROP
        This property allows to define the database url of the form "jdbc:subprotocol://host:port/dbname". If this property is defined, the properties "protocol", "host", "port" and "dbname" below are ignored.
        See Also:
        Constant Field Values
      • JDBC_DB_PROTOCOL_PROP

        public static final String JDBC_DB_PROTOCOL_PROP
        This property allows to define the protocol part of the URL used to establish the connection, for example "jdbc:mysql". It is ignored if the url property is defined.
        See Also:
        Constant Field Values
      • JDBC_DB_HOST_PROP

        public static final String JDBC_DB_HOST_PROP
        This property allows to define the hostname of the URL used to establish the connection. It is ignored if the url property is defined.
        See Also:
        Constant Field Values
      • JDBC_DB_PORT_PROP

        public static final String JDBC_DB_PORT_PROP
        This property allows to define the port of the URL used to establish the connection. It is ignored if the url property is defined.
        See Also:
        Constant Field Values
      • JDBC_DB_NAME_PROP

        public static final String JDBC_DB_NAME_PROP
        This property allows to define the database name of the URL used to establish the connection, by default "JoramDB". It is ignored if the url property is defined.
        See Also:
        Constant Field Values
      • JDBC_PROPS_FILE_PROP

        public static final String JDBC_PROPS_FILE_PROP
        This property allows to define the name of a file containing a list of arbitrary string tag/value pairs as connection arguments; normally at least a "user" and "password" property should be included.
        See Also:
        Constant Field Values
      • JDBC_DB_USER_PROP

        public static final String JDBC_DB_USER_PROP
        This property allows to define the name of database user on whose behalf the connection is being made. If this value is already set in properties it is ignored.
        See Also:
        Constant Field Values
      • JDBC_DB_PASS_PROP

        public static final String JDBC_DB_PASS_PROP
        This property allows to define the password of database user on whose behalf the connection is being made. If this value is already set in properties it is ignored.
        See Also:
        Constant Field Values
      • JDBC_CONNECT_RETRY_COUNT_PROP

        public static final String JDBC_CONNECT_RETRY_COUNT_PROP
        This property is used to set the number of reconnection attempts after a failure, by default 5.
        See Also:
        Constant Field Values
      • JDBC_CONNECT_RETRY_MIN_DELAY_PROP

        public static final String JDBC_CONNECT_RETRY_MIN_DELAY_PROP
        This property is used to set the minimum time between two attempts to reconnect after a failure, by default 1.000 (1 seconds).
        See Also:
        Constant Field Values
      • JDBC_CONNECT_RETRY_MAX_PERIOD_PROP

        public static final String JDBC_CONNECT_RETRY_MAX_PERIOD_PROP
        This property is used to set the maximum time trying to reconnect after a failure, by default 60.000 (60 seconds).
        See Also:
        Constant Field Values
      • JDBC_DB_INIT_PROP

        public static final String JDBC_DB_INIT_PROP
        This property allows to define the SQL statement allowing to create the table used by the module, for example: "CREATE TABLE JoramDB (name VARCHAR(256), content LONG VARCHAR FOR BIT DATA, PRIMARY KEY(name))" This property can be set only at first launching.
        See Also:
        Constant Field Values
      • JDBC_DB_INSERT_PROP

        public static final String JDBC_DB_INSERT_PROP
        This property allows to define the SQL statement allowing to insert an entry in the table used by the module, by default: "INSERT INTO <table> VALUES (?, ?)" This property can be set only at first launching.
        See Also:
        Constant Field Values
      • JDBC_DB_UPDATE_PROP

        public static final String JDBC_DB_UPDATE_PROP
        This property allows to define the SQL statement allowing to update an entry in the table used by the module, by default: "UPDATE <table> SET content=? WHERE name=?" This property can be set only at first launching.
        See Also:
        Constant Field Values
      • JDBC_DB_LOAD_PROP

        public static final String JDBC_DB_LOAD_PROP
        This property allows to define the SQL statement allowing to load an entry from the table used by the module, by default: "SELECT content FROM <table> WHERE name=?" This property can be set only at first launching.
        See Also:
        Constant Field Values
      • JDBC_DB_DELETE_PROP

        public static final String JDBC_DB_DELETE_PROP
        This property allows to define the SQL statement allowing to delete an entry in the table used by the module, by default: "DELETE FROM <table> WHERE name=?" This property can be set only at first launching.
        See Also:
        Constant Field Values
      • JDBC_DB_CLOSE_PROP

        public static final String JDBC_DB_CLOSE_PROP
        This property is used to define the SQL statement executed at the end of the module, by default none. This property can be set only at first launching.
        See Also:
        Constant Field Values
      • driver

        private String driver
      • connurl

        private String connurl
      • protocol

        private String protocol
      • password

        private String password
      • dbname

        private String dbname
      • dbinit

        private String dbinit
    • Constructor Detail

      • JDBCTransaction

        public JDBCTransaction()