Package org.hibernate.type.descriptor
Interface WrapperOptions
-
- All Known Subinterfaces:
EventSource
,SessionImplementor
,SharedSessionContractImplementor
,WrapperOptionsContext
- All Known Implementing Classes:
SessionDelegatorBaseImpl
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 java.util.TimeZone
getJdbcTimeZone()
The JDBCTimeZone
used when persisting Timestamp and DateTime properties into the database.LobCreator
getLobCreator()
Obtain access to theLobCreator
SqlTypeDescriptor
remapSqlTypeDescriptor(SqlTypeDescriptor sqlTypeDescriptor)
Allow remapping of descriptors for dealing with sql type.boolean
useStreamForLobBinding()
Should streams be used for binding LOB values.
-
-
-
Method Detail
-
useStreamForLobBinding
boolean useStreamForLobBinding()
Should streams be used for binding LOB values.- Returns:
true
/false
-
getLobCreator
LobCreator getLobCreator()
Obtain access to theLobCreator
- Returns:
- The LOB creator
-
remapSqlTypeDescriptor
SqlTypeDescriptor remapSqlTypeDescriptor(SqlTypeDescriptor sqlTypeDescriptor)
Allow remapping of descriptors for dealing with sql type.- Parameters:
sqlTypeDescriptor
- The known descriptor- Returns:
- The remapped descriptor. May be the same as the known descriptor indicating no remapping.
-
getJdbcTimeZone
java.util.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
-
-