Package org.hibernate.engine.spi
Class AbstractDelegatingWrapperOptions
- java.lang.Object
-
- org.hibernate.engine.spi.AbstractDelegatingWrapperOptions
-
- All Implemented Interfaces:
WrapperOptions
public abstract class AbstractDelegatingWrapperOptions extends Object implements WrapperOptions
-
-
Constructor Summary
Constructors Constructor Description AbstractDelegatingWrapperOptions()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract SessionImplementor
delegate()
Returns the underlying session delegate.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 valueSessionFactoryImplementor
getSessionFactory()
Access to the current Sessionboolean
useStreamForLobBinding()
Should streams 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
getSession
-
-
-
-
Method Detail
-
delegate
protected abstract SessionImplementor delegate()
Returns the underlying session delegate.
-
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
-
-