|
||||||||||
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
Hibernate big_decimal type. |
static NullableType |
BIG_INTEGER
Hibernate big_integer type. |
static NullableType |
BINARY
Hibernate binary type. |
static Type |
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 |
CHAR_ARRAY
Hibernate char[] type. |
static NullableType |
CHARACTER
Hibernate character type. |
static NullableType |
CHARACTER_ARRAY
Hibernate Character[] type. |
static NullableType |
CLASS
Hibernate class type. |
static Type |
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 |
WRAPPER_BINARY
Hibernate wrapper-binary type. |
static NullableType |
YES_NO
Hibernate yes_no type. |
Method Summary | |
---|---|
static Type |
any(Type metaType,
Type identifierType)
A Hibernate any type. |
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 |
custom(Class userTypeClass,
Properties parameters)
A Hibernate parameterizable custom type. |
static Type |
custom(Class userTypeClass,
String[] parameterNames,
String[] parameterValues)
A Hibernate parameterizable custom type. |
static Type |
entity(Class persistentClass)
A Hibernate persistent object (entity) type. |
static Type |
entity(String entityName)
A Hibernate persistent object (entity) type. |
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)
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)
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 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 TEXT
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)
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
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 |