public class MSSQLResourceManager extends AbstractJDBCResourceManager<org.apache.beam.it.jdbc.MSSQLResourceManager.DefaultMSSQLServerContainer<?>>
AbstractJDBCResourceManager
abstract
class.
The class supports one database, and multiple tables per database object. A database is * created when the container first spins up, if one is not given.
The class is thread-safe.
Modifier and Type | Class and Description |
---|---|
static class |
MSSQLResourceManager.Builder
Builder for
MSSQLResourceManager . |
JDBCResourceManager.JDBCSchema
databaseName, DEFAULT_JDBC_USERNAME, driver, password, username
HOST_IP, port
Modifier and Type | Method and Description |
---|---|
static MSSQLResourceManager.Builder |
builder(java.lang.String testId) |
protected java.lang.String |
getFirstRow(java.lang.String tableName)
Retrieves the first row from the table.
|
protected int |
getJDBCPort()
Return the default port that this JDBC implementation listens on.
|
java.lang.String |
getJDBCPrefix() |
java.lang.String |
getUri()
Returns the URI connection string to the JDBC Database.
|
createTable, getDatabaseName, getPassword, getPort, getRowCount, getTableSchema, getUsername, readTable, runSQLQuery, runSQLUpdate, write
cleanupAll, getDockerImageName, getHost, getPort
public static MSSQLResourceManager.Builder builder(java.lang.String testId)
public java.lang.String getUri()
JDBCResourceManager
getUri
in interface JDBCResourceManager
getUri
in class AbstractJDBCResourceManager<org.apache.beam.it.jdbc.MSSQLResourceManager.DefaultMSSQLServerContainer<?>>
public java.lang.String getJDBCPrefix()
getJDBCPrefix
in class AbstractJDBCResourceManager<org.apache.beam.it.jdbc.MSSQLResourceManager.DefaultMSSQLServerContainer<?>>
protected int getJDBCPort()
AbstractJDBCResourceManager
getJDBCPort
in class AbstractJDBCResourceManager<org.apache.beam.it.jdbc.MSSQLResourceManager.DefaultMSSQLServerContainer<?>>
protected java.lang.String getFirstRow(java.lang.String tableName)
AbstractJDBCResourceManager
getFirstRow
in class AbstractJDBCResourceManager<org.apache.beam.it.jdbc.MSSQLResourceManager.DefaultMSSQLServerContainer<?>>
tableName
- the name of the table to query.