public final class Hibernate
extends java.lang.Object
Clob,
Blob,
Type| Modifier and Type | Method and Description |
|---|---|
static Type |
any(Type metaType,
Type identifierType)
Deprecated.
|
static void |
close(java.util.Iterator iterator)
Close an Iterator created by iterate() immediately,
instead of waiting until the session is closed or disconnected.
|
static java.sql.Blob |
createBlob(byte[] bytes)
Deprecated.
Use
LobHelper.createBlob(byte[]) instead. |
static java.sql.Blob |
createBlob(byte[] bytes,
Session session)
Deprecated.
|
static java.sql.Blob |
createBlob(java.io.InputStream stream)
Deprecated.
With no direct replacement. Use
createBlob(InputStream,long) instead, passing in the length |
static java.sql.Blob |
createBlob(java.io.InputStream stream,
int length)
Deprecated.
Use
LobHelper.createBlob(InputStream, long) instead. |
static java.sql.Blob |
createBlob(java.io.InputStream stream,
long length)
Deprecated.
Use
LobHelper.createBlob(InputStream, long) instead. |
static java.sql.Blob |
createBlob(java.io.InputStream stream,
long length,
Session session)
Deprecated.
Use
LobHelper.createBlob(InputStream, long) instead. |
static java.sql.Clob |
createClob(java.io.Reader reader,
int length)
Deprecated.
Use
LobHelper.createClob(Reader, long) instead |
static java.sql.Clob |
createClob(java.io.Reader reader,
long length)
Deprecated.
Use
LobHelper.createClob(Reader, long) instead |
static java.sql.Clob |
createClob(java.io.Reader reader,
long length,
Session session)
Deprecated.
Use
LobHelper.createClob(Reader, long) instead |
static java.sql.Clob |
createClob(java.lang.String string)
Deprecated.
Use
LobHelper.createClob(String) instead |
static java.sql.Clob |
createClob(java.lang.String string,
Session session)
Deprecated.
|
static Type |
custom(java.lang.Class userTypeClass)
Deprecated.
Use
TypeHelper.custom(java.lang.Class) instead; see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182 |
static Type |
custom(java.lang.Class userTypeClass,
java.util.Properties parameters)
Deprecated.
Use
TypeHelper.custom(java.lang.Class) instead; see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182 |
static Type |
custom(java.lang.Class userTypeClass,
java.lang.String[] parameterNames,
java.lang.String[] parameterValues)
Deprecated.
Use
TypeHelper.custom(java.lang.Class) instead; see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182 |
static Type |
entity(java.lang.Class persistentClass)
Deprecated.
Use
TypeHelper.entity(java.lang.Class) instead; see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182 |
static Type |
entity(java.lang.String entityName)
Deprecated.
Use
TypeHelper.entity(java.lang.Class) instead; see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182 |
static java.lang.Class |
getClass(java.lang.Object proxy)
Get the true, underlying class of a proxied persistent class.
|
static LobCreator |
getLobCreator(Session session) |
static LobCreator |
getLobCreator(SessionImplementor session) |
static void |
initialize(java.lang.Object proxy)
Force initialization of a proxy or persistent collection.
|
static boolean |
isInitialized(java.lang.Object proxy)
Check if the proxy or persistent collection is initialized.
|
static boolean |
isPropertyInitialized(java.lang.Object proxy,
java.lang.String propertyName)
Check if the property is initialized.
|
static Type |
serializable(java.lang.Class serializableClass)
Deprecated.
|
public static final BooleanType BOOLEAN
StandardBasicTypes.BOOLEAN instead.public static final TrueFalseType TRUE_FALSE
StandardBasicTypes.TRUE_FALSE instead.public static final YesNoType YES_NO
StandardBasicTypes.YES_NO instead.public static final ByteType BYTE
StandardBasicTypes.BYTE instead.public static final ShortType SHORT
StandardBasicTypes.SHORT instead.public static final IntegerType INTEGER
StandardBasicTypes.INTEGER instead.public static final LongType LONG
StandardBasicTypes.LONG instead.public static final FloatType FLOAT
StandardBasicTypes.FLOAT instead.public static final DoubleType DOUBLE
StandardBasicTypes.DOUBLE instead.public static final BigIntegerType BIG_INTEGER
StandardBasicTypes.BIG_INTEGER instead.public static final BigDecimalType BIG_DECIMAL
StandardBasicTypes.BIG_DECIMAL instead.public static final CharacterType CHARACTER
StandardBasicTypes.CHARACTER instead.public static final StringType STRING
StandardBasicTypes.STRING instead.public static final TimeType TIME
StandardBasicTypes.TIME instead.public static final DateType DATE
StandardBasicTypes.DATE instead.public static final TimestampType TIMESTAMP
StandardBasicTypes.TIMESTAMP instead.public static final BinaryType BINARY
StandardBasicTypes.BINARY instead.public static final WrapperBinaryType WRAPPER_BINARY
StandardBasicTypes.WRAPPER_BINARY instead.public static final CharArrayType CHAR_ARRAY
StandardBasicTypes.CHAR_ARRAY instead.public static final CharacterArrayType CHARACTER_ARRAY
StandardBasicTypes.CHARACTER_ARRAY instead.public static final ImageType IMAGE
StandardBasicTypes.IMAGE instead.public static final TextType TEXT
StandardBasicTypes.TEXT instead.public static final MaterializedBlobType MATERIALIZED_BLOB
StandardBasicTypes.MATERIALIZED_BLOB instead.public static final MaterializedClobType MATERIALIZED_CLOB
StandardBasicTypes.MATERIALIZED_CLOB instead.public static final BlobType BLOB
StandardBasicTypes.BLOB instead.public static final ClobType CLOB
StandardBasicTypes.CLOB instead.public static final WrappedMaterializedBlobType WRAPPER_MATERIALIZED_BLOB
StandardBasicTypes.WRAPPER_MATERIALIZED_BLOB instead.public static final CharacterArrayClobType WRAPPER_CHARACTERS_CLOB
StandardBasicTypes.WRAPPER_CHARACTERS_CLOB instead.public static final PrimitiveCharacterArrayClobType CHARACTERS_CLOB
StandardBasicTypes.CHARACTERS_CLOB instead.public static final CalendarType CALENDAR
StandardBasicTypes.CALENDAR instead.public static final CalendarDateType CALENDAR_DATE
StandardBasicTypes.CALENDAR_DATE instead.public static final LocaleType LOCALE
StandardBasicTypes.LOCALE instead.public static final CurrencyType CURRENCY
StandardBasicTypes.CURRENCY instead.public static final TimeZoneType TIMEZONE
StandardBasicTypes.TIMEZONE instead.public static final ClassType CLASS
StandardBasicTypes.CLASS instead.public static final SerializableType SERIALIZABLE
StandardBasicTypes.SERIALIZABLE instead.public static final ObjectType OBJECT
ObjectType.INSTANCE instead.public static Type serializable(java.lang.Class serializableClass)
SerializableType.SerializableType(java.lang.Class<T>) instead.serializableClass - The Serializable implementor class.public static Type any(Type metaType, Type identifierType)
TypeHelper.any(org.hibernate.type.Type, org.hibernate.type.Type) instead.public static Type entity(java.lang.Class persistentClass)
TypeHelper.entity(java.lang.Class) instead; see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182public static Type entity(java.lang.String entityName)
TypeHelper.entity(java.lang.Class) instead; see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182public static Type custom(java.lang.Class userTypeClass)
TypeHelper.custom(java.lang.Class) instead; see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182public static Type custom(java.lang.Class userTypeClass, java.lang.String[] parameterNames, java.lang.String[] parameterValues)
TypeHelper.custom(java.lang.Class) instead; see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182public static Type custom(java.lang.Class userTypeClass, java.util.Properties parameters)
TypeHelper.custom(java.lang.Class) instead; see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182public static void initialize(java.lang.Object proxy)
throws HibernateException
proxy - a persistable object, proxy, persistent collection or nullHibernateException - if we can't initialize the proxy at this time, eg. the Session was closedpublic static boolean isInitialized(java.lang.Object proxy)
proxy - a persistable object, proxy, persistent collection or nullpublic static java.lang.Class getClass(java.lang.Object proxy)
proxy - a persistable object or proxyHibernateExceptionpublic static java.sql.Blob createBlob(byte[] bytes)
LobHelper.createBlob(byte[]) instead.Blob. The returned object will be initially immutable.bytes - a byte arraypublic static java.sql.Blob createBlob(byte[] bytes,
Session session)
LobHelper.createBlob(byte[]) instead on the LobHelper obtained from
Session.getLobHelper()Blob.bytes - a byte arraysession - The session in which the Blob will be used.public static LobCreator getLobCreator(Session session)
public static LobCreator getLobCreator(SessionImplementor session)
@Deprecated
public static java.sql.Blob createBlob(java.io.InputStream stream,
int length)
LobHelper.createBlob(InputStream, long) instead.Blob. The returned object will be initially immutable.stream - a binary streamlength - the number of bytes in the stream@Deprecated
public static java.sql.Blob createBlob(java.io.InputStream stream,
long length)
LobHelper.createBlob(InputStream, long) instead.Blob. The returned object will be initially immutable.stream - a binary streamlength - the number of bytes in the stream@Deprecated
public static java.sql.Blob createBlob(java.io.InputStream stream,
long length,
Session session)
LobHelper.createBlob(InputStream, long) instead.Blob.stream - a binary streamlength - the number of bytes in the streamsession - The session in which the Blob will be used.@Deprecated
public static java.sql.Blob createBlob(java.io.InputStream stream)
throws java.io.IOException
createBlob(InputStream,long) instead, passing in the lengthBlob. The returned object will be initially immutable.
NOTE: this method will read the entire contents of the incoming stream in order to properly
handle the Blob.length() method. If you do not want the stream read, use the
createBlob(InputStream,long) version instead.stream - a binary streamjava.io.IOException - Indicates an I/O problem accessing the stream@Deprecated public static java.sql.Clob createClob(java.lang.String string)
LobHelper.createClob(String) insteadClob. The returned object will be initially immutable.string - The string dataClob@Deprecated
public static java.sql.Clob createClob(java.lang.String string,
Session session)
LobHelper.createClob(String) instead on the LobHelper obtained from
Session.getLobHelper()Clob.string - The string datasession - The session in which the Clob will be used.Clob@Deprecated
public static java.sql.Clob createClob(java.io.Reader reader,
int length)
LobHelper.createClob(Reader, long) insteadClob. The returned object will be initially immutable.reader - a character streamlength - the number of characters in the streamClob@Deprecated
public static java.sql.Clob createClob(java.io.Reader reader,
long length)
LobHelper.createClob(Reader, long) insteadClob. The returned object will be initially immutable.reader - a character streamlength - the number of characters in the streamClob@Deprecated
public static java.sql.Clob createClob(java.io.Reader reader,
long length,
Session session)
LobHelper.createClob(Reader, long) insteadClob.reader - a character streamlength - the number of characters in the streamsession - The session in which the Clob will be used.Clobpublic static void close(java.util.Iterator iterator)
throws HibernateException
iterator - an Iterator created by iterate()HibernateExceptionQuery.iterate(),
Query.iterate()public static boolean isPropertyInitialized(java.lang.Object proxy,
java.lang.String propertyName)
proxy - The potential proxypropertyName - the name of a persistent attribute of the objectCopyright © 2013. All Rights Reserved.