org.yawlfoundation.yawl.resourcing.datastore.persistence
Class Persister

java.lang.Object
  extended by org.yawlfoundation.yawl.resourcing.datastore.persistence.Persister
All Implemented Interfaces:
Serializable

public final class Persister
extends Object
implements Serializable

This class is a thin client of HibernateEngine that implements methods for Organisational Data CRUD.

Author:
Michael Adams v0.1, 03/08/2007
See Also:
Serialized Form

Method Summary
 org.hibernate.Transaction beginTransaction()
           
 void closeDB()
           
 void commit()
           
 org.hibernate.Query createQuery(String query)
           
 void delete(Object obj)
           
 void delete(Object obj, boolean commit)
           
 void delete(Object obj, org.hibernate.Transaction tx)
           
 List execQuery(String query)
           
 int execUpdate(String statement)
           
 int execUpdate(String statement, boolean commit)
           
 Object get(Class claz, Serializable key)
           
static Persister getInstance()
           
 org.hibernate.Transaction getOrBeginTransaction()
           
 void insert(Object obj)
           
 void insert(Object obj, boolean commit)
           
 void insert(Object obj, org.hibernate.Transaction tx)
           
 Object load(Class claz, Serializable key)
           
 void rollback()
           
 List select(Object obj)
           
 List select(String className)
           
 Map<String,Object> selectMap(String className)
           
 Object selectScalar(String className, String id)
           
 List selectWhere(String className, String whereClause)
           
 void update(Object obj)
           
 void update(Object obj, boolean commit)
           
 void update(Object obj, org.hibernate.Transaction tx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static Persister getInstance()

selectMap

public Map<String,Object> selectMap(String className)

select

public List select(Object obj)

select

public List select(String className)

selectWhere

public List selectWhere(String className,
                        String whereClause)

execQuery

public List execQuery(String query)

execUpdate

public int execUpdate(String statement)

execUpdate

public int execUpdate(String statement,
                      boolean commit)

createQuery

public org.hibernate.Query createQuery(String query)

beginTransaction

public org.hibernate.Transaction beginTransaction()

getOrBeginTransaction

public org.hibernate.Transaction getOrBeginTransaction()

load

public Object load(Class claz,
                   Serializable key)

get

public Object get(Class claz,
                  Serializable key)

commit

public void commit()

rollback

public void rollback()

closeDB

public void closeDB()

selectScalar

public Object selectScalar(String className,
                           String id)

update

public void update(Object obj)

delete

public void delete(Object obj)

insert

public void insert(Object obj)

update

public void update(Object obj,
                   org.hibernate.Transaction tx)

delete

public void delete(Object obj,
                   org.hibernate.Transaction tx)

insert

public void insert(Object obj,
                   org.hibernate.Transaction tx)

update

public void update(Object obj,
                   boolean commit)

delete

public void delete(Object obj,
                   boolean commit)

insert

public void insert(Object obj,
                   boolean commit)


Copyright © 2004-2012 The YAWL Foundation.