Class JdbcField

    • Constructor Detail

      • JdbcField

        public JdbcField()
    • Method Detail

      • isReadOnly

        public boolean isReadOnly()
        Returns true if the value is read only.
        Specified by:
        isReadOnly in class TextField
      • connect

        public Connection connect​(String dataSourceName,
                                  String login,
                                  String password)
                           throws FormException
        Connects to the specified data source by using the specified credentials. If no credentials are provided, then the authentication is performed by using the credentials set with the data source configuration in the JEE application server.
        Parameters:
        dataSourceName - the JNDI name of the data source from which it can be retrieved.
        login - the login of the user to access the data source. Can be empty or null if no explicit authentication is required.
        password - the password of the user to access the data source. Can be empty or null if no password was set or if no explicit authentication is required.
        Returns:
        a connection to the specified data source.
        Throws:
        FormException - if an error occurs while either looking up the data source or opening a connection with the specified data source.