|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.Hibernate
public final class Hibernate
Clob
,
Blob
,
Type
Method Summary | |
---|---|
static Type |
any(Type metaType,
Type identifierType)
Deprecated. Use TypeHelper.any(org.hibernate.type.Type, org.hibernate.type.Type) instead. |
static void |
close(Iterator iterator)
Close an Iterator created by iterate() immediately, instead of waiting until the session is closed or disconnected. |
static Blob |
createBlob(byte[] bytes)
Deprecated. Use LobHelper.createBlob(byte[]) instead. |
static Blob |
createBlob(byte[] bytes,
Session session)
Deprecated. Use LobHelper.createBlob(byte[]) instead on the LobHelper obtained from
Session.getLobHelper() |
static Blob |
createBlob(InputStream stream)
Deprecated. With no direct replacement. Use createBlob(InputStream,long) instead, passing in the length |
static Blob |
createBlob(InputStream stream,
int length)
Deprecated. Use LobHelper.createBlob(InputStream, long) instead. |
static Blob |
createBlob(InputStream stream,
long length)
Deprecated. Use LobHelper.createBlob(InputStream, long) instead. |
static Blob |
createBlob(InputStream stream,
long length,
Session session)
Deprecated. Use LobHelper.createBlob(InputStream, long) instead. |
static Clob |
createClob(Reader reader,
int length)
Deprecated. Use LobHelper.createClob(Reader, long) instead |
static Clob |
createClob(Reader reader,
long length)
Deprecated. Use LobHelper.createClob(Reader, long) instead |
static Clob |
createClob(Reader reader,
long length,
Session session)
Deprecated. Use LobHelper.createClob(Reader, long) instead |
static Clob |
createClob(String string)
Deprecated. Use LobHelper.createClob(String) instead |
static Clob |
createClob(String string,
Session session)
Deprecated. Use LobHelper.createClob(String) instead on the LobHelper obtained from
Session.getLobHelper() |
static Type |
custom(Class userTypeClass)
Deprecated. Use TypeHelper.custom(java.lang.Class) instead; see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182 |
static Type |
custom(Class userTypeClass,
Properties parameters)
Deprecated. Use TypeHelper.custom(java.lang.Class) instead; see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182 |
static Type |
custom(Class userTypeClass,
String[] parameterNames,
String[] parameterValues)
Deprecated. Use TypeHelper.custom(java.lang.Class) instead; see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182 |
static Type |
entity(Class persistentClass)
Deprecated. Use TypeHelper.entity(java.lang.Class) instead; see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182 |
static Type |
entity(String entityName)
Deprecated. Use TypeHelper.entity(java.lang.Class) instead; see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182 |
static Class |
getClass(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(Object proxy)
Force initialization of a proxy or persistent collection. |
static boolean |
isInitialized(Object proxy)
Check if the proxy or persistent collection is initialized. |
static boolean |
isPropertyInitialized(Object proxy,
String propertyName)
Check if the property is initialized. |
static Type |
serializable(Class serializableClass)
Deprecated. Use SerializableType.SerializableType(java.lang.Class instead. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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.
Method Detail |
---|
public static Type serializable(Class serializableClass)
SerializableType.SerializableType(java.lang.Class)
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(Class persistentClass)
TypeHelper.entity(java.lang.Class)
instead; see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182
public static Type entity(String entityName)
TypeHelper.entity(java.lang.Class)
instead; see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182
public static Type custom(Class userTypeClass)
TypeHelper.custom(java.lang.Class)
instead; see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182
public static Type custom(Class userTypeClass, String[] parameterNames, String[] parameterValues)
TypeHelper.custom(java.lang.Class)
instead; see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182
public static Type custom(Class userTypeClass, Properties parameters)
TypeHelper.custom(java.lang.Class)
instead; see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182
public static void initialize(Object proxy) throws HibernateException
proxy
- a persistable object, proxy, persistent collection or null
HibernateException
- if we can't initialize the proxy at this time, eg. the Session was closedpublic static boolean isInitialized(Object proxy)
proxy
- a persistable object, proxy, persistent collection or null
public static Class getClass(Object proxy)
proxy
- a persistable object or proxy
HibernateException
public static Blob createBlob(byte[] bytes)
LobHelper.createBlob(byte[])
instead.
Blob
. The returned object will be initially immutable.
bytes
- a byte array
public static 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 Blob createBlob(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 Blob createBlob(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 Blob createBlob(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 Blob createBlob(InputStream stream) throws IOException
createBlob(InputStream,long)
instead, passing in the length
Blob
. 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 stream
IOException
- Indicates an I/O problem accessing the stream@Deprecated public static Clob createClob(String string)
LobHelper.createClob(String)
instead
Clob
. The returned object will be initially immutable.
string
- The string data
Clob
@Deprecated public static Clob createClob(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 Clob createClob(Reader reader, int length)
LobHelper.createClob(Reader, long)
instead
Clob
. The returned object will be initially immutable.
reader
- a character streamlength
- the number of characters in the stream
Clob
@Deprecated public static Clob createClob(Reader reader, long length)
LobHelper.createClob(Reader, long)
instead
Clob
. The returned object will be initially immutable.
reader
- a character streamlength
- the number of characters in the stream
Clob
@Deprecated public static Clob createClob(Reader reader, long length, Session session)
LobHelper.createClob(Reader, long)
instead
Clob
.
reader
- a character streamlength
- the number of characters in the streamsession
- The session in which the Clob
will be used.
Clob
public static void close(Iterator iterator) throws HibernateException
iterator
- an Iterator created by iterate()
HibernateException
Query.iterate()
,
Query.iterate()
public static boolean isPropertyInitialized(Object proxy, String propertyName)
proxy
- The potential proxypropertyName
- the name of a persistent attribute of the object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |