Package org.hibernate.persister.entity
Class SessionFactoryBasedWrapperOptions
- java.lang.Object
-
- org.hibernate.persister.entity.SessionFactoryBasedWrapperOptions
-
- All Implemented Interfaces:
WrapperOptions
public class SessionFactoryBasedWrapperOptions extends Object implements WrapperOptions
-
-
Constructor Summary
Constructors Constructor Description SessionFactoryBasedWrapperOptions(SessionFactoryImplementor factory)
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
SessionFactoryBasedWrapperOptions
public SessionFactoryBasedWrapperOptions(SessionFactoryImplementor factory)
-
-
Method Detail
-
getSession
public SharedSessionContractImplementor getSession()
Description copied from interface:WrapperOptionsAccess to the current Session- Specified by:
getSessionin interfaceWrapperOptions
-
getSessionFactory
public SessionFactoryImplementor getSessionFactory()
Description copied from interface:WrapperOptionsAccess to the current Session- Specified by:
getSessionFactoryin interfaceWrapperOptions
-
useStreamForLobBinding
public boolean useStreamForLobBinding()
Description copied from interface:WrapperOptionsShould streams be used for binding LOB values.- Specified by:
useStreamForLobBindingin interfaceWrapperOptions- Returns:
true/false
-
getPreferredSqlTypeCodeForBoolean
public int getPreferredSqlTypeCodeForBoolean()
Description copied from interface:WrapperOptionsGet the JDBCtype codeused to bind a null boolean value- Specified by:
getPreferredSqlTypeCodeForBooleanin interfaceWrapperOptions
-
getLobCreator
public LobCreator getLobCreator()
Description copied from interface:WrapperOptionsObtain access to theLobCreator- Specified by:
getLobCreatorin interfaceWrapperOptions- Returns:
- The LOB creator
-
getJdbcTimeZone
public TimeZone getJdbcTimeZone()
Description copied from interface:WrapperOptionsThe 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().- Specified by:
getJdbcTimeZonein interfaceWrapperOptions- Returns:
- JDBC
TimeZone
-
-