|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.webactiv.util.AbstractTable<PortletStateRow>
com.stratelia.silverpeas.portlet.model.PortletStateTable
public class PortletStateTable
Field Summary | |
---|---|
protected static String |
PORTLETSTATE_COLUMNS
The column list used for every select query. |
Fields inherited from class com.stratelia.webactiv.util.AbstractTable |
---|
schema |
Constructor Summary | |
---|---|
PortletStateTable(Schema schema)
Builds a new PortletStateTable |
Method Summary | |
---|---|
int |
create(PortletStateRow portletState)
Inserts in the database a new PortletState row. |
void |
delete(int id)
Deletes thePortletStateRow. after having removed all the reference to it. |
void |
dereferencePortletRowId(int portletRowId)
Removes a reference to PortletRowId |
void |
dereferenceUserId(int userId)
Removes a reference to UserId |
protected PortletStateRow |
fetchRow(ResultSet rs)
Fetch the current PortletState row from a resultSet. |
PortletStateRow[] |
getAllByPortletRowId(int portletRowId)
Returns all the PortletStateRow having a given portletRowId |
PortletStateRow[] |
getAllByPortletRowId(int aPortletRowId,
String orderField)
Returns all the PortletState rows having a given portletRowId |
PortletStateRow[] |
getAllByUserId(int userId)
Returns all the PortletStateRow having a given userId |
PortletStateRow[] |
getAllRows()
Returns all the rows. |
PortletStateRow |
getPortletState(int id)
Returns the unique PortletState row having a given id |
PortletStateRow |
getPortletState(String query)
Returns the unique row given by a no parameters query. |
PortletStateRow[] |
getPortletStates(String query)
Returns all the rows given by a no parameters query. |
protected void |
prepareInsert(String insertQuery,
PreparedStatement insert,
PortletStateRow row)
Prepares the statement to insert the given row |
protected void |
prepareUpdate(String updateQuery,
PreparedStatement update,
PortletStateRow row)
Prepares the statement to update the given row |
void |
save(PortletStateRow portletState)
Updates thePortletState row. or inserts it if new. |
void |
update(PortletStateRow portletState)
Update the given PortletStateRow |
Methods inherited from class com.stratelia.webactiv.util.AbstractTable |
---|
aliasColumns, getInteger, getInteger, getMatchingRows, getNextId, getRows, getRows, getRows, getRows, getRows, getRows, getRows, getUniqueRow, getUniqueRow, getUniqueRow, getUniqueRow, getUniqueRow, getUniqueRow, getUniqueRow, insertRow, truncate, updateRelation, updateRelation, updateRow |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String PORTLETSTATE_COLUMNS
Constructor Detail |
---|
public PortletStateTable(Schema schema)
Method Detail |
---|
public PortletStateRow getPortletState(int id) throws UtilException
UtilException
public PortletStateRow[] getAllByPortletRowId(int aPortletRowId, String orderField) throws UtilException
UtilException
public PortletStateRow[] getAllByPortletRowId(int portletRowId) throws UtilException
UtilException
public PortletStateRow[] getAllByUserId(int userId) throws UtilException
UtilException
public PortletStateRow[] getAllRows() throws UtilException
UtilException
public PortletStateRow getPortletState(String query) throws UtilException
UtilException
public PortletStateRow[] getPortletStates(String query) throws UtilException
UtilException
public int create(PortletStateRow portletState) throws UtilException
UtilException
public void update(PortletStateRow portletState) throws UtilException
UtilException
public void save(PortletStateRow portletState) throws UtilException
UtilException
public void delete(int id) throws UtilException
UtilException
public void dereferencePortletRowId(int portletRowId) throws UtilException
UtilException
public void dereferenceUserId(int userId) throws UtilException
UtilException
protected PortletStateRow fetchRow(ResultSet rs) throws SQLException
fetchRow
in class AbstractTable<PortletStateRow>
SQLException
protected void prepareUpdate(String updateQuery, PreparedStatement update, PortletStateRow row) throws SQLException
prepareUpdate
in class AbstractTable<PortletStateRow>
SQLException
protected void prepareInsert(String insertQuery, PreparedStatement insert, PortletStateRow row) throws SQLException
prepareInsert
in class AbstractTable<PortletStateRow>
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |