|
||||||||||
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
Field Summary | |
---|---|
static NullableType |
BIG_DECIMAL
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 |
static NullableType |
BIG_INTEGER
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 |
static NullableType |
BINARY
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 |
static Type |
BLOB
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 |
static NullableType |
BOOLEAN
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 |
static NullableType |
BYTE
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 |
static NullableType |
CALENDAR
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 |
static NullableType |
CALENDAR_DATE
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 |
static NullableType |
CHAR_ARRAY
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 |
static NullableType |
CHARACTER
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 |
static NullableType |
CHARACTER_ARRAY
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 |
static NullableType |
CLASS
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 |
static Type |
CLOB
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 |
static NullableType |
CURRENCY
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 |
static NullableType |
DATE
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 |
static NullableType |
DOUBLE
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 |
static NullableType |
FLOAT
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 |
static NullableType |
IMAGE
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 |
static NullableType |
INTEGER
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 |
static NullableType |
LOCALE
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 |
static NullableType |
LONG
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 |
static NullableType |
MATERIALIZED_BLOB
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 |
static NullableType |
MATERIALIZED_CLOB
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 |
static Type |
OBJECT
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 |
static NullableType |
SERIALIZABLE
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 |
static NullableType |
SHORT
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 |
static NullableType |
STRING
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 |
static NullableType |
TEXT
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 |
static NullableType |
TIME
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 |
static NullableType |
TIMESTAMP
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 |
static NullableType |
TIMEZONE
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 |
static NullableType |
TRUE_FALSE
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 |
static NullableType |
WRAPPER_BINARY
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 |
static NullableType |
YES_NO
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 |
Method Summary | |
---|---|
static Type |
any(Type metaType,
Type identifierType)
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182 |
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 createBlob(byte[], Session) instead |
static Blob |
createBlob(byte[] bytes,
Session session)
Create a new Blob . |
static Blob |
createBlob(InputStream stream)
Deprecated. Use createBlob(InputStream, long, Session) instead |
static Blob |
createBlob(InputStream stream,
int length)
Deprecated. Use createBlob(InputStream, long, Session) instead |
static Blob |
createBlob(InputStream stream,
long length)
Deprecated. Use createBlob(InputStream, long, Session) instead |
static Blob |
createBlob(InputStream stream,
long length,
Session session)
Create a new Blob . |
static Clob |
createClob(Reader reader,
int length)
Deprecated. Use createClob(Reader,long,Session) instead |
static Clob |
createClob(Reader reader,
long length)
Deprecated. Use createClob(Reader,long,Session) instead |
static Clob |
createClob(Reader reader,
long length,
Session session)
Create a new Clob . |
static Clob |
createClob(String string)
Deprecated. Use createClob(String, Session) instead |
static Clob |
createClob(String string,
Session session)
Create a new Clob . |
static Type |
custom(Class userTypeClass)
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182 |
static Type |
custom(Class userTypeClass,
Properties parameters)
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182 |
static Type |
custom(Class userTypeClass,
String[] parameterNames,
String[] parameterValues)
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182 |
static Type |
entity(Class persistentClass)
Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5182 |
static Type |
entity(String entityName)
Deprecated. 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. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final NullableType LONG
public static final NullableType SHORT
public static final NullableType INTEGER
public static final NullableType BYTE
public static final NullableType FLOAT
public static final NullableType DOUBLE
public static final NullableType CHARACTER
public static final NullableType STRING
public static final NullableType TIME
public static final NullableType DATE
public static final NullableType TIMESTAMP
public static final NullableType BOOLEAN
public static final NullableType TRUE_FALSE
public static final NullableType YES_NO
public static final NullableType BIG_DECIMAL
public static final NullableType BIG_INTEGER
public static final NullableType BINARY
public static final NullableType WRAPPER_BINARY
public static final NullableType CHAR_ARRAY
public static final NullableType CHARACTER_ARRAY
public static final NullableType IMAGE
public static final NullableType TEXT
public static final NullableType MATERIALIZED_BLOB
public static final NullableType MATERIALIZED_CLOB
public static final Type BLOB
public static final Type CLOB
public static final NullableType CALENDAR
public static final NullableType CALENDAR_DATE
public static final NullableType LOCALE
public static final NullableType CURRENCY
public static final NullableType TIMEZONE
public static final NullableType CLASS
public static final NullableType SERIALIZABLE
public static final Type OBJECT
Method Detail |
---|
public static Type serializable(Class serializableClass)
public static Type any(Type metaType, Type identifierType)
metaType
- a type mapping java.lang.Class to a single columnidentifierType
- the entity identifier type
public static Type entity(Class persistentClass)
persistentClass
- a mapped entity classpublic static Type entity(String entityName)
entityName
- a mapped entity classpublic static Type custom(Class userTypeClass) throws HibernateException
userTypeClass
- a class that implements UserType
HibernateException
public static Type custom(Class userTypeClass, String[] parameterNames, String[] parameterValues) throws HibernateException
userTypeClass
- a class that implements UserType and ParameterizableTypeparameterNames
- the names of the parameters passed to the typeparameterValues
- the values of the parameters passed to the type. They must match
up with the order and length of the parameterNames array.
HibernateException
public static Type custom(Class userTypeClass, Properties parameters) throws HibernateException
userTypeClass
- a class that implements UserType and ParameterizableTypeparameters
- the parameters as a collection of name/value pairs
HibernateException
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)
createBlob(byte[], Session)
instead
Blob
. The returned object will be initially immutable.
bytes
- a byte array
public static Blob createBlob(byte[] bytes, Session session)
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)
public static Blob createBlob(InputStream stream, int length)
createBlob(InputStream, long, Session)
instead
Blob
. The returned object will be initially immutable.
stream
- a binary streamlength
- the number of bytes in the stream
public static Blob createBlob(InputStream stream, long length)
createBlob(InputStream, long, Session)
instead
Blob
. The returned object will be initially immutable.
stream
- a binary streamlength
- the number of bytes in the stream
public static Blob createBlob(InputStream stream, long length, Session session)
Blob
.
stream
- a binary streamlength
- the number of bytes in the streamsession
- The session in which the Blob
will be used.
public static Blob createBlob(InputStream stream) throws IOException
createBlob(InputStream, long, Session)
instead
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 streampublic static Clob createClob(String string)
createClob(String, Session)
instead
Clob
. The returned object will be initially immutable.
string
- The string data
Clob
public static Clob createClob(String string, Session session)
Clob
.
string
- The string datasession
- The session in which the Clob
will be used.
Clob
public static Clob createClob(Reader reader, int length)
createClob(Reader,long,Session)
instead
Clob
. The returned object will be initially immutable.
reader
- a character streamlength
- the number of characters in the stream
Clob
public static Clob createClob(Reader reader, long length)
createClob(Reader,long,Session)
instead
Clob
. The returned object will be initially immutable.
reader
- a character streamlength
- the number of characters in the stream
Clob
public static Clob createClob(Reader reader, long length, Session session)
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 |