java.lang.Object
com.shr4pnel.db.DBAccessFactory
DBAccessFactory class.
- Since:
- v0.1.0 Manages creation of databases, as well as instantiation of existing ones.
- Author:
- shrapnelnet
-
Constructor Summary
ConstructorsConstructorDescriptionNo-arg constructor.DBAccessFactory(boolean create) Access a new instance of Derby, with the option to create a new database. -
Method Summary
Modifier and TypeMethodDescriptionUsed to create, or get a handle to the current database instance.
-
Constructor Details
-
DBAccessFactory
public DBAccessFactory()No-arg constructor. Use to get access to an instance of Derby without creating a new database. -
DBAccessFactory
public DBAccessFactory(boolean create) Access a new instance of Derby, with the option to create a new database.- Parameters:
create- Should a new database be created?- See Also:
-
-
Method Details
-
getNewDBAccess
Used to create, or get a handle to the current database instance.- Returns:
- If class constructed with create=true, a database instance that will be created, otherwise a handle to an existing database
-