net.simplace.simulation.io.interfaces.DatabaseInterface

implementation of the FWSimInterface using ConnectionPool giving access to resources from and output to Databases use by FWSimInterface.createStatement(); Make sure to free connections after use by calling ConnectionPoolManager#getInstance#freeConnection(Connection)


public class DatabaseInterface extends FWSimInterface {
// Public Constructors
public DatabaseInterface(String aName, String aDriver, String aURL, String
aPass, String aUser);
// Protected Constructors
protected DatabaseInterface(String aName, int aPoolSize, Element
aInterfaceElement);


// Class Methods
public static PreparedStatement prepareDatabase(String aTableName, HashMap
aHeaderVariables, Connection aConnection, boolean isArrayMode)
throws SQLException;

Used to create a prepared statement using the driver information and the connection.
returns the prepared statement

// Public Instance Methods
public Connection getInterface(FWSimVarMap aVarMap,
FWSimVariable.CONTENT_TYPE aContentType); // Defines FWSimInterface

public String getDriver();


returns the driver
public void setDriver(String aDriver);

public String getURL();


returns the uRL
public void setURL(String aURL);

public String getPass();


returns the pass
public void setPass(String aPass);

public String getUser();


returns the user
public void setUser(String aUser);

public Element toXML(); // Defines FWSimInterface


returns Element containing configuration for this Interface
public void finalize() throws Throwable; // Defines FWSimInterface



}



Hierarchy: java.lang.Object - FWSimInterface - DatabaseInterface



Passed to: net.simplace.simulation.io.output.adapter.DatabaseOutputAdapter(), net.simplace.simulation.io.resources.adapter.DatabaseResourceAdapter(), net.simplace.simulation.io.resources.adapter.DatabaseResourceAdapter.readHeaderList()