Package org.hibernate.persister.entity
Class SessionFactoryBasedWrapperOptions
java.lang.Object
org.hibernate.persister.entity.SessionFactoryBasedWrapperOptions
- All Implemented Interfaces:
WrapperOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe JDBCTimeZone
used when writing a value of typeTime
orTimestamp
to a JDBCPreparedStatement
, or when reading from a JDBCResultSet
.Obtain access to theLobCreator
.int
The JDBCtype code
used to bind a null boolean value.Access to the current session.Access to the current session factory.boolean
Determines whether streams should be used for binding LOB values.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.type.descriptor.WrapperOptions
getDialect
-
Constructor Details
-
SessionFactoryBasedWrapperOptions
-
-
Method Details
-
getSession
Description copied from interface:WrapperOptions
Access to the current session.- Specified by:
getSession
in interfaceWrapperOptions
-
getSessionFactory
Description copied from interface:WrapperOptions
Access to the current session factory.- Specified by:
getSessionFactory
in interfaceWrapperOptions
-
useStreamForLobBinding
public boolean useStreamForLobBinding()Description copied from interface:WrapperOptions
Determines whether streams should be used for binding LOB values.- Specified by:
useStreamForLobBinding
in interfaceWrapperOptions
- Returns:
true
/false
- See Also:
-
getPreferredSqlTypeCodeForBoolean
public int getPreferredSqlTypeCodeForBoolean()Description copied from interface:WrapperOptions
The JDBCtype code
used to bind a null boolean value.- Specified by:
getPreferredSqlTypeCodeForBoolean
in interfaceWrapperOptions
- See Also:
-
getLobCreator
Description copied from interface:WrapperOptions
Obtain access to theLobCreator
.- Specified by:
getLobCreator
in interfaceWrapperOptions
- Returns:
- The LOB creator
- See Also:
-
getJdbcTimeZone
Description copied from interface:WrapperOptions
The JDBCTimeZone
used when writing a value of typeTime
orTimestamp
to 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
TimeZone
can differ from the default JVM TimeZone given byTimeZone.getDefault()
.- Specified by:
getJdbcTimeZone
in interfaceWrapperOptions
- Returns:
- the JDBC
TimeZone
, or null if no JDBC timezone was explicitly set - See Also:
- When
-