KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > setup > pm > PersistenceSession


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  *****************************************/

9 package org.jboss.portal.setup.pm;
10
11 import java.util.List JavaDoc;
12
13 /**
14  * @author <a HREF="mailto:palber@novell.com">Polina Alber</a>
15  * Date: Apr 25, 2005; Time: 4:01:22 PM
16  * @since JBoss portal 2.0
17  * Interface org.jboss.portal.setup.pm.PersistenceSession
18  */

19 public interface PersistenceSession
20 {
21    void close() throws PersistenceException;
22
23    void openTransaction() throws PersistenceException;
24
25    void commit() throws PersistenceException;
26
27    void rollback() throws PersistenceException;
28
29    boolean execute(List JavaDoc commands) throws PersistenceException;
30
31    boolean validate(String JavaDoc expression, boolean checkRSSize) throws PersistenceException;
32 }
33
Popular Tags