|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.liquidsite.core.data.AbstractPeer
org.liquidsite.core.data.ContentPeer
A content database peer. This class contains static methods that handles all accesses to the LS_CONTENT table.
| Field Summary | |
static int |
LATEST_STATUS
The latest content status flag. |
static int |
PUBLISHED_STATUS
The published content status flag. |
| Method Summary | |
static int |
doCountByQuery(DataSource src,
ContentQuery query)
Returns the number of content objects matching the specified query. |
static void |
doDelete(DataSource src,
ContentData data)
Deletes a content object from the data source. |
static void |
doDeleteDomain(DataSource src,
java.lang.String domain)
Deletes all content objects in a domain from the data source. |
static void |
doDeleteRevision(DataSource src,
int id,
int revision)
Deletes a content object revision from the data source. |
static void |
doInsert(DataSource src,
ContentData data)
Inserts a new content object into the data source. |
static java.util.ArrayList |
doSelectById(DataSource src,
int id)
Returns a list of all content object revisions with the specified id. |
static ContentData |
doSelectByMaxRevision(DataSource src,
int id,
boolean maxIsZero)
Returns the content object with the specified id and highest revision. |
static ContentData |
doSelectByName(DataSource src,
java.lang.String domain,
int parent,
java.lang.String name,
boolean maxIsZero)
Returns the content object with the specified parent and name. |
static java.util.ArrayList |
doSelectByQuery(DataSource src,
ContentQuery query)
Returns a list of content objects matching the specified query. |
static ContentData |
doSelectByRevision(DataSource src,
int id,
int revision)
Returns the content object with the specified id and revision. |
static void |
doStatusUpdate(DataSource src,
int id)
Updates the status flags for all content object revisions. |
static void |
doUpdate(DataSource src,
ContentData data)
Updates a content object in the data source. |
protected AbstractData |
getDataObject()
Returns a new instance of the data object. |
| Methods inherited from class org.liquidsite.core.data.AbstractPeer |
count, delete, insert, select, selectList, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int LATEST_STATUS
public static final int PUBLISHED_STATUS
| Method Detail |
public static int doCountByQuery(DataSource src,
ContentQuery query)
throws DataObjectException
src - the data source to usequery - the content query to use
DataObjectException - if the data source couldn't be
accessed properly
public static java.util.ArrayList doSelectById(DataSource src,
int id)
throws DataObjectException
src - the data source to useid - the content id
DataObjectException - if the data source couldn't be
accessed properly
public static ContentData doSelectByRevision(DataSource src,
int id,
int revision)
throws DataObjectException
src - the data source to useid - the content idrevision - the content revision
DataObjectException - if the data source couldn't be
accessed properly
public static ContentData doSelectByMaxRevision(DataSource src,
int id,
boolean maxIsZero)
throws DataObjectException
src - the data source to useid - the content idmaxIsZero - the revision zero is max flag
DataObjectException - if the data source couldn't be
accessed properly
public static ContentData doSelectByName(DataSource src,
java.lang.String domain,
int parent,
java.lang.String name,
boolean maxIsZero)
throws DataObjectException
src - the data source to usedomain - the domain nameparent - the parent content idname - the content namemaxIsZero - the revision zero is max flag
DataObjectException - if the data source couldn't be
accessed properly
public static java.util.ArrayList doSelectByQuery(DataSource src,
ContentQuery query)
throws DataObjectException
src - the data source to usequery - the content query to use
DataObjectException - if the data source couldn't be
accessed properly
public static void doInsert(DataSource src,
ContentData data)
throws DataObjectException
src - the data source to usedata - the content data object
DataObjectException - if the data source couldn't be
accessed properlydoStatusUpdate(org.liquidsite.core.data.DataSource, int)
public static void doUpdate(DataSource src,
ContentData data)
throws DataObjectException
src - the data source to usedata - the content data object
DataObjectException - if the data source couldn't be
accessed properlydoStatusUpdate(org.liquidsite.core.data.DataSource, int)
public static void doDelete(DataSource src,
ContentData data)
throws DataObjectException
src - the data source to usedata - the content data object
DataObjectException - if the data source couldn't be
accessed properly
public static void doDeleteDomain(DataSource src,
java.lang.String domain)
throws DataObjectException
src - the data source to usedomain - the domain name
DataObjectException - if the data source couldn't be
accessed properly
public static void doDeleteRevision(DataSource src,
int id,
int revision)
throws DataObjectException
src - the data source to useid - the content identifierrevision - the content revision
DataObjectException - if the data source couldn't be
accessed properlydoStatusUpdate(org.liquidsite.core.data.DataSource, int)
public static void doStatusUpdate(DataSource src,
int id)
throws DataObjectException
src - the data source to useid - the content identifier
DataObjectException - if the data source couldn't be
accessed properlyprotected AbstractData getDataObject()
getDataObject in class AbstractPeer
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||