Class DBFInterface
java.lang.Object
net.simplace.sim.io.interfaces.FWSimInterface<Connection>
net.simplace.sim.io.interfaces.DatabaseInterface
net.simplace.sim.io.interfaces.DBFInterface
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
-
Nested Class Summary
Nested classes/interfaces inherited from class FWSimInterface
FWSimInterface.INTERFACE_TYPE -
Field Summary
Fields inherited from class FWSimInterface
iColumnMap, iColumnNamesInt, iIntColumnNames -
Constructor Summary
ConstructorsModifierConstructorDescriptionDBFInterface(String aName, String aFileName) Creates the interface for a DBF file (e.g.protectedDBFInterface(String aName, org.jdom2.Element aInterfaceElement) Creates the interface from its element and creates (or renews) its connection pool. -
Method Summary
Methods inherited from class DatabaseInterface
finalize, getAlias, getDriver, getInterface, getPass, getSQLType, getURL, getUser, prepareDatabase, read, setConnection, setDriver, setPass, setURL, setUser, toXMLMethods inherited from class FWSimInterface
checkHeaderForColMode, createInterface, createInterface, createStatisticInterface, getInterfaceElement, getInterfaceType, getName, getPoolSize, readColArray, readColArray, toString, transformArrays, writeToDatabase
-
Constructor Details
-
DBFInterface
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 poolaInterfaceElement- theinterfaceelement
-
DBFInterface
-
-
Method Details
-
getTablename
- Returns:
- the name of the table (file name without extension), or
nullif not derived from a file name
-