|
|||||||||||
| 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.AttributePeer
A content attribute database peer. This class contains static methods that handles all accesses to the LS_ATTRIBUTE table.
| Method Summary | |
static void |
doDelete(DataSource src,
AttributeData data)
Deletes an attribute object from the data source. |
static void |
doDeleteContent(DataSource src,
int id)
Deletes all attributes for a content object from the data source. |
static void |
doDeleteDomain(DataSource src,
java.lang.String domain)
Deletes all attributes for a domain from the data source. |
static void |
doDeleteRevision(DataSource src,
int id,
int revision)
Deletes all attributes for a content revision from the data source. |
static void |
doInsert(DataSource src,
AttributeData data)
Inserts a new attribute object into the data source. |
static AttributeData |
doSelectByName(DataSource src,
int id,
int revision,
java.lang.String name)
Returns the attribute object with the specified content id, content revision, and attribute name. |
static java.util.ArrayList |
doSelectByRevision(DataSource src,
int id,
int revision)
Returns a list of all attribute objects with the specified content id and revision. |
static void |
doUpdate(DataSource src,
AttributeData data)
Updates an attribute 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 |
| Method Detail |
public static java.util.ArrayList 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 AttributeData doSelectByName(DataSource src,
int id,
int revision,
java.lang.String name)
throws DataObjectException
src - the data source to useid - the content idrevision - the content revisionname - the attribute name
DataObjectException - if the data source couldn't be
accessed properly
public static void doInsert(DataSource src,
AttributeData data)
throws DataObjectException
src - the data source to usedata - the attribute data object
DataObjectException - if the data source couldn't be
accessed properly
public static void doUpdate(DataSource src,
AttributeData data)
throws DataObjectException
src - the data source to usedata - the attribute data object
DataObjectException - if the data source couldn't be
accessed properly
public static void doDelete(DataSource src,
AttributeData data)
throws DataObjectException
src - the data source to usedata - the attribute 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 doDeleteContent(DataSource src,
int id)
throws DataObjectException
src - the data source to useid - the content object id
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 object idrevision - the content revision
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 | ||||||||||