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 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.
-
-
-
Constructor Detail
-
SessionFactoryBasedWrapperOptions
public SessionFactoryBasedWrapperOptions(SessionFactoryImplementor factory)
-
-
Method Detail
-
getSession
public SharedSessionContractImplementor getSession()
Description copied from interface:WrapperOptions
Access to the current Session- Specified by:
getSession
in interfaceWrapperOptions
-
getSessionFactory
public SessionFactoryImplementor getSessionFactory()
Description copied from interface:WrapperOptions
Access to the current Session- Specified by:
getSessionFactory
in interfaceWrapperOptions
-
useStreamForLobBinding
public boolean useStreamForLobBinding()
Description copied from interface:WrapperOptions
Should streams be used for binding LOB values.- Specified by:
useStreamForLobBinding
in interfaceWrapperOptions
- Returns:
true
/false
-
getPreferredSqlTypeCodeForBoolean
public int getPreferredSqlTypeCodeForBoolean()
Description copied from interface:WrapperOptions
Get the JDBCtype code
used to bind a null boolean value- Specified by:
getPreferredSqlTypeCodeForBoolean
in interfaceWrapperOptions
-
getLobCreator
public LobCreator getLobCreator()
Description copied from interface:WrapperOptions
Obtain access to theLobCreator
- Specified by:
getLobCreator
in interfaceWrapperOptions
- Returns:
- The LOB creator
-
getJdbcTimeZone
public TimeZone getJdbcTimeZone()
Description copied from interface:WrapperOptions
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()
.- Specified by:
getJdbcTimeZone
in interfaceWrapperOptions
- Returns:
- JDBC
TimeZone
-
-