Package org.hibernate.type.descriptor
Interface WrapperOptions
-
- All Known Subinterfaces:
EventSource,SessionImplementor,SharedSessionContractImplementor
- All Known Implementing Classes:
AbstractDelegatingWrapperOptions,SessionDelegatorBaseImpl,SessionFactoryBasedWrapperOptions
public interface WrapperOptionsGives binding (nullSafeSet) and extracting (nullSafeGet) code access to options.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TimeZonegetJdbcTimeZone()The JDBCTimeZoneused when persisting Timestamp and DateTime properties into the database.LobCreatorgetLobCreator()Obtain access to theLobCreatorintgetPreferredSqlTypeCodeForBoolean()Get the JDBCtype codeused to bind a null boolean valueSharedSessionContractImplementorgetSession()Access to the current SessionSessionFactoryImplementorgetSessionFactory()Access to the current SessionbooleanuseStreamForLobBinding()Should streams be used for binding LOB values.
-
-
-
Method Detail
-
getSession
SharedSessionContractImplementor getSession()
Access to the current Session
-
getSessionFactory
SessionFactoryImplementor getSessionFactory()
Access to the current Session
-
useStreamForLobBinding
boolean useStreamForLobBinding()
Should streams be used for binding LOB values.- Returns:
true/false
-
getPreferredSqlTypeCodeForBoolean
int getPreferredSqlTypeCodeForBoolean()
Get the JDBCtype codeused to bind a null boolean value
-
getLobCreator
LobCreator getLobCreator()
Obtain access to theLobCreator- Returns:
- The LOB creator
-
getJdbcTimeZone
TimeZone getJdbcTimeZone()
The JDBCTimeZoneused when persisting Timestamp and DateTime properties into the database. This setting is used when storing timestamps using thePreparedStatement.setTimestamp(int, Timestamp, Calendar)method. This way, the storageTimeZonecan differ from the default JVM TimeZone given byTimeZone.getDefault().- Returns:
- JDBC
TimeZone
-
-