Package ghidra.features.bsim.query.file
Class BSimH2FileDBConnectionManager
java.lang.Object
ghidra.features.bsim.query.file.BSimH2FileDBConnectionManager
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
BSimH2FileDBConnectionManager.BSimH2FileDataSource
provides a pooled DB data source for a specific H2 File DB. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet all H2 File DB data sorces which exist in the JVM.getDataSource
(BSimServerInfo fileServerInfo) Get an existing or new H2 File DB data source for the specified H2 File specified byfileServerInfo
.getDataSource
(URL h2FileUrl) Deprecated.getDataSourceIfExists
(BSimServerInfo serverInfo) Get the existing H2 File DB data source for the specified BSim DB server info.
-
Constructor Details
-
BSimH2FileDBConnectionManager
public BSimH2FileDBConnectionManager()
-
-
Method Details
-
getAllDataSources
Get all H2 File DB data sorces which exist in the JVM.- Returns:
- all H2 File DB data sorces
-
getDataSource
public static BSimH2FileDBConnectionManager.BSimH2FileDataSource getDataSource(BSimServerInfo fileServerInfo) Get an existing or new H2 File DB data source for the specified H2 File specified byfileServerInfo
.- Parameters:
fileServerInfo
- H2 File DB info- Returns:
- new or existing H2 File DB data source
- Throws:
IllegalArgumentException
- iffileServerInfo
does not specify an H2 File DB type.
-
getDataSource
@Deprecated public static BSimH2FileDBConnectionManager.BSimH2FileDataSource getDataSource(URL h2FileUrl) Deprecated. -
getDataSourceIfExists
public static BSimH2FileDBConnectionManager.BSimH2FileDataSource getDataSourceIfExists(BSimServerInfo serverInfo) Get the existing H2 File DB data source for the specified BSim DB server info. This may return null if the H2 File DB exists but adata source
has not yet been established within the running JVM.- Parameters:
serverInfo
- BSim DB server info- Returns:
- existing H2 File data source or null if server info does not correspond to an H2 File or has not be established as an H2 File data source.
-