Class DbState
java.lang.Object
fj.control.db.DbState
Performs database I/O, in order to read or write the database state.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectordriverManager(String url) A simple connector (the default) that gets connections to the given database URL from the driver manager.static DbStateReturns a new reader that reads the database via the given Connector.static DbStateCreates a database state reader given a connection URL.<A> ARuns the given database action as a single transaction.static DbStateReturns a new writer that writes the database via the given Connector.static DbStateCreates a database state writer given a connection URL.
-
Field Details
-
pc
-
terminal
-
rollback
-
commit
-
-
Constructor Details
-
DbState
-
-
Method Details
-
driverManager
-
reader
-
writer
-
reader
-
writer
-
run
Runs the given database action as a single transaction.- Parameters:
dba- A database action to run.- Returns:
- The result of running the action against the database.
- Throws:
SQLException- in case of a database error.
-