org.yawlfoundation.yawl.procletService.persistence
Class DBConnection

java.lang.Object
  extended by org.yawlfoundation.yawl.procletService.persistence.DBConnection

public class DBConnection
extends Object


Method Summary
static void close()
           
static Properties configure(String dialect, String driver, String url, String username, String password)
           
static boolean delete(Object obj)
           
static void deleteAll(Item itemType)
           
static void deleteAll(String className)
           
static List execQuery(String query)
           
static int execUpdate(String query)
           
static List getObjectsForClass(String className)
           
static List getObjectsForClassWhere(String className, String whereClause)
           
static StoredItem getSelectedStoredItem(String classID, String procletID, String blockID, Item itemType)
           
static List getSelectedStoredItems(String classID, String procletID, String blockID, Item itemType)
           
static StoredItem getStoredItem(String classID, String procletID, String blockID, Item itemType)
           
static List getStoredItems(Item itemType)
           
static List getStoredItems(String classID, String procletID, String blockID, Item itemType)
           
static void init(Properties props)
           
static boolean insert(Object obj)
           
static void setStoredItemSelected(StoredItem item)
           
static void setStoredItemSelected(String classID, String procletID, String blockID, Item itemType)
           
static void setStoredItemsSelected(List items)
           
static void setStoredItemsSelected(String classID, String procletID, String blockID, Item itemType)
           
static boolean update(Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

init

public static void init(Properties props)

configure

public static Properties configure(String dialect,
                                   String driver,
                                   String url,
                                   String username,
                                   String password)
                            throws org.hibernate.HibernateException
Throws:
org.hibernate.HibernateException

close

public static void close()

insert

public static boolean insert(Object obj)

update

public static boolean update(Object obj)

delete

public static boolean delete(Object obj)

getObjectsForClass

public static List getObjectsForClass(String className)

getObjectsForClassWhere

public static List getObjectsForClassWhere(String className,
                                           String whereClause)

deleteAll

public static void deleteAll(String className)

deleteAll

public static void deleteAll(Item itemType)

execQuery

public static List execQuery(String query)

execUpdate

public static int execUpdate(String query)

getStoredItems

public static List getStoredItems(Item itemType)

getStoredItem

public static StoredItem getStoredItem(String classID,
                                       String procletID,
                                       String blockID,
                                       Item itemType)

getStoredItems

public static List getStoredItems(String classID,
                                  String procletID,
                                  String blockID,
                                  Item itemType)

getSelectedStoredItem

public static StoredItem getSelectedStoredItem(String classID,
                                               String procletID,
                                               String blockID,
                                               Item itemType)

getSelectedStoredItems

public static List getSelectedStoredItems(String classID,
                                          String procletID,
                                          String blockID,
                                          Item itemType)

setStoredItemSelected

public static void setStoredItemSelected(String classID,
                                         String procletID,
                                         String blockID,
                                         Item itemType)

setStoredItemsSelected

public static void setStoredItemsSelected(String classID,
                                          String procletID,
                                          String blockID,
                                          Item itemType)

setStoredItemSelected

public static void setStoredItemSelected(StoredItem item)

setStoredItemsSelected

public static void setStoredItemsSelected(List items)


Copyright © 2004-2012 The YAWL Foundation.