com.marevol.utils.hibernate
クラス HibernateUtil

java.lang.Object
  拡張com.marevol.utils.hibernate.HibernateUtil

public class HibernateUtil
extends java.lang.Object

Hibernate Utility

作成者:
Shinsuke Sugaya

フィールドの概要
static java.lang.ThreadLocal session
           
static java.lang.ThreadLocal transaction
           
static java.lang.String WEBAPP_ROOT
           
 
コンストラクタの概要
HibernateUtil()
           
 
メソッドの概要
static org.hibernate.Transaction beginTransaction()
           
static void cancelQuery()
           
static void clear()
           
static java.sql.Connection close()
           
static void closeSession()
           
static void commit()
           
static java.sql.Connection connection()
           
static boolean contains(java.lang.Object arg0)
           
static org.hibernate.Criteria createCriteria(java.lang.Class arg0)
           
static org.hibernate.Criteria createCriteria(java.lang.Class arg0, java.lang.String arg1)
           
static org.hibernate.Criteria createCriteria(java.lang.String arg0)
           
static org.hibernate.Criteria createCriteria(java.lang.String arg0, java.lang.String arg1)
           
static org.hibernate.Query createFilter(java.lang.Object arg0, java.lang.String arg1)
           
static org.hibernate.Query createQuery(java.lang.String arg0)
           
static org.hibernate.SQLQuery createSQLQuery(java.lang.String arg0)
           
static void delete(java.lang.Object arg0)
           
static void disableFilter(java.lang.String arg0)
           
static java.sql.Connection disconnect()
           
static org.hibernate.Filter enableFilter(java.lang.String arg0)
           
static void evict(java.lang.Object arg0)
           
static void flush()
           
static java.lang.Object get(java.lang.Class arg0, java.io.Serializable arg1)
           
static java.lang.Object get(java.lang.Class arg0, java.io.Serializable arg1, org.hibernate.LockMode arg2)
           
static java.lang.Object get(java.lang.String arg0, java.io.Serializable arg1)
           
static java.lang.Object get(java.lang.String arg0, java.io.Serializable arg1, org.hibernate.LockMode arg2)
           
static org.hibernate.CacheMode getCacheMode()
           
static org.hibernate.LockMode getCurrentLockMode(java.lang.Object arg0)
           
static org.hibernate.Session getCurrentSession()
           
static org.hibernate.Filter getEnabledFilter(java.lang.String arg0)
           
static org.hibernate.EntityMode getEntityMode()
           
static java.lang.String getEntityName(java.lang.Object arg0)
           
static org.hibernate.FlushMode getFlushMode()
           
static java.io.Serializable getIdentifier(java.lang.Object arg0)
           
static org.hibernate.Query getNamedQuery(java.lang.String arg0)
           
static org.hibernate.Session getSession(org.hibernate.EntityMode arg0)
           
static org.hibernate.SessionFactory getSessionFactory()
           
static org.hibernate.stat.SessionStatistics getStatistics()
           
static void init()
           
static void init(java.util.Map map)
           
static void init(javax.portlet.PortletConfig portletConfig)
           
static boolean isConnected()
           
static boolean isDirty()
           
static boolean isOpen()
           
static java.lang.Object load(java.lang.Class arg0, java.io.Serializable arg1)
           
static java.lang.Object load(java.lang.Class arg0, java.io.Serializable arg1, org.hibernate.LockMode arg2)
           
static void load(java.lang.Object arg0, java.io.Serializable arg1)
           
static java.lang.Object load(java.lang.String arg0, java.io.Serializable arg1)
           
static java.lang.Object load(java.lang.String arg0, java.io.Serializable arg1, org.hibernate.LockMode arg2)
           
static void lock(java.lang.Object arg0, org.hibernate.LockMode arg1)
           
static void lock(java.lang.String arg0, java.lang.Object arg1, org.hibernate.LockMode arg2)
           
static java.lang.Object merge(java.lang.Object arg0)
           
static java.lang.Object merge(java.lang.String arg0, java.lang.Object arg1)
           
static void openSession()
           
static void persist(java.lang.Object arg0)
           
static void persist(java.lang.String arg0, java.lang.Object arg1)
           
static void reconnect()
           
static void reconnect(java.sql.Connection arg0)
           
static void refresh(java.lang.Object arg0)
           
static void refresh(java.lang.Object arg0, org.hibernate.LockMode arg1)
           
static void replicate(java.lang.Object arg0, org.hibernate.ReplicationMode arg1)
           
static void replicate(java.lang.String arg0, java.lang.Object arg1, org.hibernate.ReplicationMode arg2)
           
static void rollback()
           
static java.io.Serializable save(java.lang.Object arg0)
           
static void save(java.lang.Object arg0, java.io.Serializable arg1)
           
static java.io.Serializable save(java.lang.String arg0, java.lang.Object arg1)
           
static void save(java.lang.String arg0, java.lang.Object arg1, java.io.Serializable arg2)
           
static void saveOrUpdate(java.lang.Object arg0)
           
static void saveOrUpdate(java.lang.String arg0, java.lang.Object arg1)
           
static void setCacheMode(org.hibernate.CacheMode arg0)
           
static void setFlushMode(org.hibernate.FlushMode arg0)
           
static void update(java.lang.Object arg0)
           
static void update(java.lang.Object arg0, java.io.Serializable arg1)
           
static void update(java.lang.String arg0, java.lang.Object arg1)
           
static void update(java.lang.String arg0, java.lang.Object arg1, java.io.Serializable arg2)
           
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

WEBAPP_ROOT

public static final java.lang.String WEBAPP_ROOT
関連項目:
定数フィールド値

session

public static final java.lang.ThreadLocal session

transaction

public static final java.lang.ThreadLocal transaction
コンストラクタの詳細

HibernateUtil

public HibernateUtil()
メソッドの詳細

init

public static void init()

init

public static void init(javax.portlet.PortletConfig portletConfig)

init

public static void init(java.util.Map map)

openSession

public static void openSession()

getCurrentSession

public static org.hibernate.Session getCurrentSession()

closeSession

public static void closeSession()

beginTransaction

public static org.hibernate.Transaction beginTransaction()

commit

public static void commit()

rollback

public static void rollback()

save

public static java.io.Serializable save(java.lang.Object arg0)

load

public static java.lang.Object load(java.lang.Class arg0,
                                    java.io.Serializable arg1)

cancelQuery

public static void cancelQuery()
                        throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

clear

public static void clear()

close

public static java.sql.Connection close()
                                 throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

connection

public static java.sql.Connection connection()
                                      throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

contains

public static boolean contains(java.lang.Object arg0)

createCriteria

public static org.hibernate.Criteria createCriteria(java.lang.Class arg0,
                                                    java.lang.String arg1)

createCriteria

public static org.hibernate.Criteria createCriteria(java.lang.Class arg0)

createCriteria

public static org.hibernate.Criteria createCriteria(java.lang.String arg0,
                                                    java.lang.String arg1)

createCriteria

public static org.hibernate.Criteria createCriteria(java.lang.String arg0)

createFilter

public static org.hibernate.Query createFilter(java.lang.Object arg0,
                                               java.lang.String arg1)
                                        throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

createQuery

public static org.hibernate.Query createQuery(java.lang.String arg0)
                                       throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

createSQLQuery

public static org.hibernate.SQLQuery createSQLQuery(java.lang.String arg0)
                                             throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

delete

public static void delete(java.lang.Object arg0)
                   throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

disableFilter

public static void disableFilter(java.lang.String arg0)

disconnect

public static java.sql.Connection disconnect()
                                      throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

enableFilter

public static org.hibernate.Filter enableFilter(java.lang.String arg0)

evict

public static void evict(java.lang.Object arg0)
                  throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

flush

public static void flush()
                  throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

get

public static java.lang.Object get(java.lang.Class arg0,
                                   java.io.Serializable arg1,
                                   org.hibernate.LockMode arg2)
                            throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

get

public static java.lang.Object get(java.lang.Class arg0,
                                   java.io.Serializable arg1)
                            throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

get

public static java.lang.Object get(java.lang.String arg0,
                                   java.io.Serializable arg1,
                                   org.hibernate.LockMode arg2)
                            throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

get

public static java.lang.Object get(java.lang.String arg0,
                                   java.io.Serializable arg1)
                            throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

getCacheMode

public static org.hibernate.CacheMode getCacheMode()

getCurrentLockMode

public static org.hibernate.LockMode getCurrentLockMode(java.lang.Object arg0)
                                                 throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

getEnabledFilter

public static org.hibernate.Filter getEnabledFilter(java.lang.String arg0)

getEntityMode

public static org.hibernate.EntityMode getEntityMode()

getEntityName

public static java.lang.String getEntityName(java.lang.Object arg0)
                                      throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

getFlushMode

public static org.hibernate.FlushMode getFlushMode()

getIdentifier

public static java.io.Serializable getIdentifier(java.lang.Object arg0)
                                          throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

getNamedQuery

public static org.hibernate.Query getNamedQuery(java.lang.String arg0)
                                         throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

getSession

public static org.hibernate.Session getSession(org.hibernate.EntityMode arg0)

getSessionFactory

public static org.hibernate.SessionFactory getSessionFactory()

getStatistics

public static org.hibernate.stat.SessionStatistics getStatistics()

isConnected

public static boolean isConnected()

isDirty

public static boolean isDirty()
                       throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

isOpen

public static boolean isOpen()

load

public static java.lang.Object load(java.lang.Class arg0,
                                    java.io.Serializable arg1,
                                    org.hibernate.LockMode arg2)
                             throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

load

public static void load(java.lang.Object arg0,
                        java.io.Serializable arg1)
                 throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

load

public static java.lang.Object load(java.lang.String arg0,
                                    java.io.Serializable arg1,
                                    org.hibernate.LockMode arg2)
                             throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

load

public static java.lang.Object load(java.lang.String arg0,
                                    java.io.Serializable arg1)
                             throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

lock

public static void lock(java.lang.Object arg0,
                        org.hibernate.LockMode arg1)
                 throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

lock

public static void lock(java.lang.String arg0,
                        java.lang.Object arg1,
                        org.hibernate.LockMode arg2)
                 throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

merge

public static java.lang.Object merge(java.lang.Object arg0)
                              throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

merge

public static java.lang.Object merge(java.lang.String arg0,
                                     java.lang.Object arg1)
                              throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

persist

public static void persist(java.lang.Object arg0)
                    throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

persist

public static void persist(java.lang.String arg0,
                           java.lang.Object arg1)
                    throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

reconnect

public static void reconnect()
                      throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

reconnect

public static void reconnect(java.sql.Connection arg0)
                      throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

refresh

public static void refresh(java.lang.Object arg0,
                           org.hibernate.LockMode arg1)
                    throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

refresh

public static void refresh(java.lang.Object arg0)
                    throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

replicate

public static void replicate(java.lang.Object arg0,
                             org.hibernate.ReplicationMode arg1)
                      throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

replicate

public static void replicate(java.lang.String arg0,
                             java.lang.Object arg1,
                             org.hibernate.ReplicationMode arg2)
                      throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

save

public static void save(java.lang.Object arg0,
                        java.io.Serializable arg1)
                 throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

save

public static void save(java.lang.String arg0,
                        java.lang.Object arg1,
                        java.io.Serializable arg2)
                 throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

save

public static java.io.Serializable save(java.lang.String arg0,
                                        java.lang.Object arg1)
                                 throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

saveOrUpdate

public static void saveOrUpdate(java.lang.Object arg0)
                         throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

saveOrUpdate

public static void saveOrUpdate(java.lang.String arg0,
                                java.lang.Object arg1)
                         throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

setCacheMode

public static void setCacheMode(org.hibernate.CacheMode arg0)

setFlushMode

public static void setFlushMode(org.hibernate.FlushMode arg0)

update

public static void update(java.lang.Object arg0,
                          java.io.Serializable arg1)
                   throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

update

public static void update(java.lang.Object arg0)
                   throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

update

public static void update(java.lang.String arg0,
                          java.lang.Object arg1,
                          java.io.Serializable arg2)
                   throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException

update

public static void update(java.lang.String arg0,
                          java.lang.Object arg1)
                   throws org.hibernate.HibernateException
例外:
org.hibernate.HibernateException


Copyright © 2000-2005 marevol.com. All Rights Reserved.