|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.hibernate.Hibernate
Field Summary | |
static NullableType |
BIG_DECIMAL
Hibernate big_decimal type. |
static NullableType |
BINARY
Hibernate binary type. |
static NullableType |
BLOB
Hibernate blob type. |
static NullableType |
BOOLEAN
Hibernate boolean type. |
static NullableType |
BYTE
Hibernate byte type. |
static NullableType |
CALENDAR
Hibernate calendar type. |
static NullableType |
CALENDAR_DATE
Hibernate calendar_date type. |
static NullableType |
CHARACTER
Hibernate character type. |
static NullableType |
CLASS
Hibernate class type. |
static NullableType |
CLOB
Hibernate clob type. |
static NullableType |
CURRENCY
Hibernate currency type. |
static NullableType |
DATE
Hibernate date type. |
static NullableType |
DOUBLE
Hibernate double type. |
static NullableType |
FLOAT
Hibernate float type. |
static NullableType |
INTEGER
Hibernate integer type. |
static NullableType |
LOCALE
Hibernate locale type. |
static NullableType |
LONG
Hibernate long type. |
static Type |
OBJECT
Hibernate object type. |
static NullableType |
SERIALIZABLE
Hibernate serializable type. |
static NullableType |
SHORT
Hibernate short type. |
static NullableType |
STRING
Hibernate string type. |
static NullableType |
TEXT
Hibernate text type. |
static NullableType |
TIME
Hibernate time type. |
static NullableType |
TIMESTAMP
Hibernate timestamp type. |
static NullableType |
TIMEZONE
Hibernate timezone type. |
static NullableType |
TRUE_FALSE
Hibernate true_false type. |
static NullableType |
YES_NO
Hibernate yes_no type. |
Method Summary | |
static Type |
any(Type metaType,
Type identifierType)
A Hibernate any type. |
static Type |
association(Class persistentClass)
Deprecated. use Hibernate.entity() |
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)
Create a new Blob. |
static Blob |
createBlob(InputStream stream)
Create a new Blob. |
static Blob |
createBlob(InputStream stream,
int length)
Create a new Blob. |
static Clob |
createClob(Reader reader,
int length)
Create a new Clob. |
static Clob |
createClob(String string)
Create a new Clob. |
static Type |
custom(Class userTypeClass)
A Hibernate custom type. |
static Type |
entity(Class persistentClass)
A Hibernate persistent object (entity) type. |
static Type |
enum(Class enumClass)
Deprecated. Support for PersistentEnums will be removed in 2.2 |
static Class |
getClass(Object proxy)
Get the true, underlying class of a proxied persistent class. |
static void |
initialize(Object proxy)
Force initialization of a proxy or persistent collection. |
static boolean |
isInitialized(Object proxy)
Chekc if the proxy or persistent collection is initialized. |
static Type |
serializable(Class serializableClass)
A Hibernate serializable type. |
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 BINARY
public static final NullableType TEXT
public static final NullableType BLOB
public static final NullableType 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 enum(Class enumClass) throws MappingException
MappingException
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 association(Class persistentClass)
persistentClass
- a mapped entity class
public static Type entity(Class persistentClass)
persistentClass
- a mapped entity classpublic static Type custom(Class userTypeClass) throws HibernateException
userTypeClass
- a class that implements UserType
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)
bytes
- a byte array
public static Blob createBlob(InputStream stream, int length)
stream
- a binary streamlength
- the number of bytes in the stream
public static Blob createBlob(InputStream stream) throws IOException
stream
- a binary stream
IOException
public static Clob createClob(String string)
string
- a Stringpublic static Clob createClob(Reader reader, int length)
reader
- a character streamlength
- the number of characters in the streampublic static void close(Iterator iterator) throws HibernateException
iterator
- an Iterator created by iterate()
HibernateException
Session.iterate(java.lang.String)
,
Query.iterate()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |