Class JdbcField

    • Constructor Detail

      • JdbcField

        public JdbcField()
    • Method Detail

      • getStringValue

        public String getStringValue()
        Returns the string value of this field.
        Returns:
        the String representation of the value of this field.
      • setStringValue

        public void setStringValue​(String value)
        Set the string value of this field.
        Parameters:
        value - the String value to set
      • 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.
      • equals

        public boolean equals​(Object o)
        Description copied from class: TextField
        Tests equality between this field and the specified field.
        Overrides:
        equals in class TextField