Interface WrapperOptions
- All Known Subinterfaces:
EventSource, SessionImplementor, SharedSessionContractImplementor, StatelessSessionImplementor
- All Known Implementing Classes:
SessionDelegatorBaseImpl, SharedSessionDelegatorBaseImpl
public interface WrapperOptions
Options for binding values to and extracting values from JDBC prepared statements and result sets.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault DialectAccess to the current dialect.default TimeZoneThe JDBCTimeZoneused when writing a value of typeTimeorTimestampto a JDBCPreparedStatement, or when reading from a JDBCResultSet.Obtain the JSONFormatMapper.default LobCreatorObtain access to theLobCreator.default intThe JDBCtype codeused to bind a null boolean value.Access to the current session.default SessionFactoryImplementorAccess to the current session factory.default TypeConfigurationObtain theTypeConfiguration.Obtain the XMLFormatMapper.default booleanDetermines whether streams should be used for binding LOB values.default booleanDetermines whether streams should be used for binding LOB values.
-
Method Details
-
getSession
SharedSessionContractImplementor getSession()Access to the current session. -
getSessionFactory
Access to the current session factory. -
getDialect
Access to the current dialect. -
useStreamForLobBinding
default boolean useStreamForLobBinding()Determines whether streams should be used for binding LOB values.- Returns:
true/false- See Also:
-
getPreferredSqlTypeCodeForBoolean
default int getPreferredSqlTypeCodeForBoolean()The JDBCtype codeused to bind a null boolean value.- See Also:
-
useLanguageTagForLocale
default boolean useLanguageTagForLocale()Determines whether streams should be used for binding LOB values.- Returns:
true/false
-
getLobCreator
Obtain access to theLobCreator.- Returns:
- The LOB creator
- See Also:
-
getJdbcTimeZone
The JDBCTimeZoneused when writing a value of typeTimeorTimestampto a JDBCPreparedStatement, or when reading from a JDBCResultSet.- When
getJdbcTimeZone()is null, the methodPreparedStatement.setTimestamp(int, java.sql.Timestamp)is called to write a timestamp, andResultSet.getTimestamp(int)is called to read a timestamp. - But when not null, the method
PreparedStatement.setTimestamp(int, java.sql.Timestamp, java.util.Calendar)is called to write a timestamp, andResultSet.getTimestamp(int, java.util.Calendar)is called to read a timestamp.
Thus, the storage
TimeZonecan differ from the default JVM TimeZone given byTimeZone.getDefault().- Returns:
- the JDBC
TimeZone, or null if no JDBC timezone was explicitly set - See Also:
- When
-
getTypeConfiguration
-
getXmlFormatMapper
-
getJsonFormatMapper
-