Class DBFInterface


public class DBFInterface extends DatabaseInterface
Interface for DBF files (and the attribute tables of shape files), read via the DbSchema DBF JDBC driver. The directory of the file becomes the JDBC URL (jdbc:dbschema:dbf:/<dir>), the file name without extension the table name. Settings: filename or url, optionally driver, user, pass or alias.

Note: the DBF driver is not shipped with SIMPLACE since 2026-09-29 (see the comment in pom.xml), so creating the connection pool fails with a ClassNotFoundException until a driver is added. This also affects SHP interfaces, which read the attribute table of the shape file with this class.

Author:
Andreas Enders
  • Constructor Details

    • DBFInterface

      protected DBFInterface(String aName, org.jdom2.Element aInterfaceElement)
      Creates the interface from its element and creates (or renews) its connection pool. The super constructor already evaluates the element as a database interface; its pool is renewed here with the DBF settings.
      Parameters:
      aName - name of the interface and the pool
      aInterfaceElement - the interface element
    • DBFInterface

      public DBFInterface(String aName, String aFileName)
      Creates the interface for a DBF file (e.g. for statistics outputs); the table name is the file name without extension.
      Parameters:
      aName - name of the interface and the pool
      aFileName - the DBF file (the token ${_WORKDIR_} is replaced)
  • Method Details

    • getTablename

      public String getTablename()
      Returns:
      the name of the table (file name without extension), or null if not derived from a file name