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
Options for binding values to and extracting values from JDBC prepared statements and result sets.- See Also:
ValueBinder
,ValueExtractor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TimeZone
getJdbcTimeZone()
The JDBCTimeZone
used when writing a value of typeTime
orTimestamp
to a JDBCPreparedStatement
, or when reading from a JDBCResultSet
.LobCreator
getLobCreator()
Obtain access to theLobCreator
.int
getPreferredSqlTypeCodeForBoolean()
The JDBCtype code
used to bind a null boolean value.SharedSessionContractImplementor
getSession()
Access to the current session.SessionFactoryImplementor
getSessionFactory()
Access to the current session factory.boolean
useStreamForLobBinding()
Determines whether streams should be used for binding LOB values.
-
-
-
Method Detail
-
getSession
SharedSessionContractImplementor getSession()
Access to the current session.
-
getSessionFactory
SessionFactoryImplementor getSessionFactory()
Access to the current session factory.
-
useStreamForLobBinding
boolean useStreamForLobBinding()
Determines whether streams should be used for binding LOB values.- Returns:
true
/false
- See Also:
Dialect.useInputStreamToInsertBlob()
-
getPreferredSqlTypeCodeForBoolean
int getPreferredSqlTypeCodeForBoolean()
The JDBCtype code
used to bind a null boolean value.
-
getLobCreator
LobCreator getLobCreator()
Obtain access to theLobCreator
.- Returns:
- The LOB creator
- See Also:
AvailableSettings.NON_CONTEXTUAL_LOB_CREATION
,Dialect.getDefaultNonContextualLobCreation()
-
getJdbcTimeZone
TimeZone getJdbcTimeZone()
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.
TimeZone
can differ from the default JVM TimeZone given byTimeZone.getDefault()
.- Returns:
- the JDBC
TimeZone
, or null if no JDBC timezone was explicitly set - See Also:
AvailableSettings.JDBC_TIME_ZONE
- When
-
-