public abstract class PersistenceProvider extends Object
This class acts as a facade to PriDE. The other classes in this project do NOT access PriDE directly. Everything is accessed through this class.
SQLException
exception.
EntityBean
or a
collection of them.
Database
,
SQLException
Modifier and Type | Method and Description |
---|---|
static void |
commit()
Current context (database) only
|
static void |
commit(RecordDescriptor aDescriptor) |
static void |
commit(String aContextName) |
static void |
configureConnection(Properties someProperties)
Assumes the existence of at least the following properties:
pride.driver
pride.url (pride.db)
pride.user
pride.password
pride.dbtype
|
static void |
configureConnectionUsingSystemProperties()
Assumes the existence of at least the following system properties:
pride.driver
pride.url (pride.db)
pride.user
pride.password
pride.dbtype
|
static int |
delete(EntityBean aTemplateBean) |
static int |
insert(EntityBean aTemplateBean) |
static List<EntityBean> |
queryAll(EntityBean aTemplateBean) |
static EntityBean |
queryOne(EntityBean aTemplateBean) |
static List<EntityBean> |
querySet(String[] whereFields,
EntityBean aTemplateBean) |
static void |
refresh(EntityBean aTemplateBean) |
static void |
rollback()
Current context (database) only
|
static void |
rollback(RecordDescriptor aDescriptor) |
static void |
rollback(String aContextName) |
static int |
update(EntityBean aTemplateBean) |
public static void commit() throws SQLException
SQLException
public static void commit(RecordDescriptor aDescriptor) throws SQLException
SQLException
public static void commit(String aContextName) throws SQLException
SQLException
public static void configureConnection(Properties someProperties)
public static void configureConnectionUsingSystemProperties()
public static int delete(EntityBean aTemplateBean) throws SQLException
SQLException
public static int insert(EntityBean aTemplateBean) throws SQLException
SQLException
public static List<EntityBean> queryAll(EntityBean aTemplateBean) throws SQLException
SQLException
public static EntityBean queryOne(EntityBean aTemplateBean) throws SQLException
SQLException
public static List<EntityBean> querySet(String[] whereFields, EntityBean aTemplateBean) throws SQLException
SQLException
public static void refresh(EntityBean aTemplateBean) throws SQLException
SQLException
public static void rollback() throws SQLException
SQLException
public static void rollback(RecordDescriptor aDescriptor) throws SQLException
SQLException
public static void rollback(String aContextName) throws SQLException
SQLException
public static int update(EntityBean aTemplateBean) throws SQLException
SQLException