|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.liquidsite.core.data.AbstractPeer
An abstract data object peer. This class provides some of the functionality needed by all data object peers. The data object peers each provide specialized static methods for operating on the data objects by retrieving and storing them to the data source (i.e. a database).
| Constructor Summary | |
protected |
AbstractPeer(java.lang.String name)
Creates a new peer for the specified database object. |
| Method Summary | |
protected long |
count(DataSource src,
DatabaseQuery query)
Performs a database query that returns a single number as the result. |
protected void |
delete(DataSource src,
DatabaseQuery query)
Performs a database delete statement. |
protected abstract AbstractData |
getDataObject()
Returns a new instance of the data object. |
protected void |
insert(DataSource src,
DatabaseQuery query)
Performs a database insert statement. |
protected AbstractData |
select(DataSource src,
DatabaseQuery query)
Performs a database select query. |
protected java.util.ArrayList |
selectList(DataSource src,
DatabaseQuery query)
Performs a database list select query. |
protected void |
update(DataSource src,
DatabaseQuery query)
Performs a database update statement. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected AbstractPeer(java.lang.String name)
name - the database object name| Method Detail |
protected abstract AbstractData getDataObject()
protected long count(DataSource src,
DatabaseQuery query)
throws DataObjectException
src - the data source to usequery - the database query
DataObjectException - if the query couldn't be executed
correctly, or the results were malformed
protected AbstractData select(DataSource src,
DatabaseQuery query)
throws DataObjectException
src - the data source to usequery - the database query
DataObjectException - if the query couldn't be executed
correctly, or the results were malformed
protected java.util.ArrayList selectList(DataSource src,
DatabaseQuery query)
throws DataObjectException
src - the data source to usequery - the database query
DataObjectException - if the query couldn't be executed
correctly, or the results were malformed
protected void insert(DataSource src,
DatabaseQuery query)
throws DataObjectException
src - the data source to usequery - the database query
DataObjectException - if the statement couldn't be
executed correctly
protected void update(DataSource src,
DatabaseQuery query)
throws DataObjectException
src - the data source to usequery - the database query
DataObjectException - if the statement couldn't be
executed correctly
protected void delete(DataSource src,
DatabaseQuery query)
throws DataObjectException
src - the data source to usequery - the database query
DataObjectException - if the statement couldn't be
executed correctly
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||