Package org.hibernate.testing.jdbc
Class JdbcMocks.ConnectionBuilder
- java.lang.Object
-
- org.hibernate.testing.jdbc.JdbcMocks.ConnectionBuilder
-
-
Constructor Summary
Constructors Constructor Description ConnectionBuilder()
ConnectionBuilder(JdbcMocks.Options options)
-
Method Summary
-
-
-
Constructor Detail
-
ConnectionBuilder
public ConnectionBuilder()
-
ConnectionBuilder
public ConnectionBuilder(JdbcMocks.Options options)
-
-
Method Detail
-
buildConnection
public Connection buildConnection()
-
setDatabaseProductName
public JdbcMocks.ConnectionBuilder setDatabaseProductName(String databaseProductName)
-
setDatabaseMajorVersion
public JdbcMocks.ConnectionBuilder setDatabaseMajorVersion(int databaseMajorVersion)
-
setDatabaseMinorVersion
public JdbcMocks.ConnectionBuilder setDatabaseMinorVersion(int databaseMinorVersion)
-
setCatalogName
public JdbcMocks.ConnectionBuilder setCatalogName(String catalogName)
-
setSupportsRefCursors
public JdbcMocks.ConnectionBuilder setSupportsRefCursors(boolean supportsRefCursors)
-
setSupportsNamedParameters
public JdbcMocks.ConnectionBuilder setSupportsNamedParameters(boolean supportsNamedParameters)
-
setSupportsResultSetType
public JdbcMocks.ConnectionBuilder setSupportsResultSetType(boolean supportsResultSetType)
-
setSupportsGetGeneratedKeys
public JdbcMocks.ConnectionBuilder setSupportsGetGeneratedKeys(boolean supportsGetGeneratedKeys)
-
setSupportsBatchUpdates
public JdbcMocks.ConnectionBuilder setSupportsBatchUpdates(boolean supportsBatchUpdates)
-
setDataDefinitionIgnoredInTransactions
public JdbcMocks.ConnectionBuilder setDataDefinitionIgnoredInTransactions(boolean dataDefinitionIgnoredInTransactions)
-
setDataDefinitionCausesTransactionCommit
public JdbcMocks.ConnectionBuilder setDataDefinitionCausesTransactionCommit(boolean dataDefinitionCausesTransactionCommit)
-
setSqlKeywords
public JdbcMocks.ConnectionBuilder setSqlKeywords(String sqlKeywords)
-
setSqlStateType
public JdbcMocks.ConnectionBuilder setSqlStateType(int sqlStateType)
-
setLocatorsUpdateCopy
public JdbcMocks.ConnectionBuilder setLocatorsUpdateCopy(boolean locatorsUpdateCopy)
-
setStoresLowerCaseIdentifiers
public JdbcMocks.ConnectionBuilder setStoresLowerCaseIdentifiers(boolean storesLowerCaseIdentifiers)
-
setStoresUpperCaseIdentifiers
public JdbcMocks.ConnectionBuilder setStoresUpperCaseIdentifiers(boolean storesUpperCaseIdentifiers)
-
setCatalogSeparator
public JdbcMocks.ConnectionBuilder setCatalogSeparator(String catalogSeparator)
-
setCatalogAtStart
public JdbcMocks.ConnectionBuilder setCatalogAtStart(boolean catalogAtStart)
-
-