Package org.hibernate.type.descriptor
Interface WrapperOptions
-
- All Known Subinterfaces:
EventSource,SessionImplementor,SharedSessionContractImplementor
- All Known Implementing Classes:
AbstractDelegatingWrapperOptions,SessionDelegatorBaseImpl,SessionFactoryBasedWrapperOptions,SharedSessionDelegatorBaseImpl
public interface WrapperOptionsOptions for binding values to and extracting values from JDBC prepared statements and result sets.- See Also:
ValueBinder,ValueExtractor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TimeZonegetJdbcTimeZone()The JDBCTimeZoneused when writing a value of typeTimeorTimestampto a JDBCPreparedStatement, or when reading from a JDBCResultSet.LobCreatorgetLobCreator()Obtain access to theLobCreator.intgetPreferredSqlTypeCodeForBoolean()The JDBCtype codeused to bind a null boolean value.SharedSessionContractImplementorgetSession()Access to the current session.SessionFactoryImplementorgetSessionFactory()Access to the current session factory.booleanuseStreamForLobBinding()Determines whether streams should be used for binding LOB values.
-
-
-
Method Detail
-
getSession
SharedSessionContractImplementor getSession()
Access to the current session.
-
getSessionFactory
SessionFactoryImplementor getSessionFactory()
Access to the current session factory.
-
useStreamForLobBinding
boolean useStreamForLobBinding()
Determines whether streams should be used for binding LOB values.- Returns:
true/false- See Also:
Dialect.useInputStreamToInsertBlob()
-
getPreferredSqlTypeCodeForBoolean
int getPreferredSqlTypeCodeForBoolean()
The JDBCtype codeused to bind a null boolean value.
-
getLobCreator
LobCreator getLobCreator()
Obtain access to theLobCreator.- Returns:
- The LOB creator
- See Also:
JdbcSettings.NON_CONTEXTUAL_LOB_CREATION,Dialect.getDefaultNonContextualLobCreation()
-
getJdbcTimeZone
TimeZone 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:
JdbcSettings.JDBC_TIME_ZONE
- When
-
-