Package org.hibernate.type.descriptor
Interface WrapperOptions
-
- All Known Subinterfaces:
EventSource
,SessionImplementor
,SharedSessionContractImplementor
- All Known Implementing Classes:
AbstractDelegateSessionImplementor
,AbstractDelegatingWrapperOptions
,AbstractSharedSessionContract
,SessionDelegatorBaseImpl
,SessionFactoryBasedWrapperOptions
,SessionImpl
,StatelessSessionImpl
,ToOneDelegateSessionImplementor
public interface WrapperOptions
Gives binding (nullSafeSet) and extracting (nullSafeGet) code access to options.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TimeZone
getJdbcTimeZone()
The JDBCTimeZone
used when persisting Timestamp and DateTime properties into the database.LobCreator
getLobCreator()
Obtain access to theLobCreator
int
getPreferredSqlTypeCodeForBoolean()
Get the JDBCtype code
used to bind a null boolean valueSharedSessionContractImplementor
getSession()
Access to the current SessionSessionFactoryImplementor
getSessionFactory()
Access to the current Sessionboolean
useStreamForLobBinding()
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 code
used to bind a null boolean value
-
getLobCreator
LobCreator getLobCreator()
Obtain access to theLobCreator
- Returns:
- The LOB creator
-
getJdbcTimeZone
TimeZone getJdbcTimeZone()
The JDBCTimeZone
used 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 storageTimeZone
can differ from the default JVM TimeZone given byTimeZone.getDefault()
.- Returns:
- JDBC
TimeZone
-
-