|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.webactiv.util.AbstractTable<PortletRowRow>
com.stratelia.silverpeas.portlet.model.PortletRowTable
public class PortletRowTable
Field Summary | |
---|---|
protected static String |
PORTLETROW_COLUMNS
The column list used for every select query. |
Fields inherited from class com.stratelia.webactiv.util.AbstractTable |
---|
schema |
Constructor Summary | |
---|---|
PortletRowTable(Schema schema)
Builds a new PortletRowTable |
Method Summary | |
---|---|
int |
create(PortletRowRow portletRow)
Inserts in the database a new PortletRow row. |
void |
delete(int id)
Deletes thePortletRowRow. after having removed all the reference to it. |
PortletRowRow[] |
dereferenceInstanceId(int InstanceId)
Removes a reference to InstanceId |
PortletRowRow[] |
dereferencePortletColumnId(int portletColumnId)
Removes a reference to PortletColumnId |
protected PortletRowRow |
fetchRow(ResultSet rs)
Fetch the current PortletRow row from a resultSet. |
PortletRowRow[] |
getAllByInstanceId(int instanceId)
Returns all the PortletRowRow having a given instanceId |
PortletRowRow[] |
getAllByPortletColumnId(int portletColumnId)
Returns all the PortletRowRow having a given portletColumnId |
PortletRowRow[] |
getAllByPortletColumnId(int aPortletColumnId,
String orderField)
Returns all the PortletRow rows having a given portletColumnId |
PortletRowRow[] |
getAllRows()
Returns all the rows. |
PortletRowRow |
getPortletRow(int id)
Returns the unique PortletRow row having a given id |
PortletRowRow |
getPortletRow(String query)
Returns the unique row given by a no parameters query. |
PortletRowRow[] |
getPortletRows(String query)
Returns all the rows given by a no parameters query. |
protected void |
prepareInsert(String insertQuery,
PreparedStatement insert,
PortletRowRow row)
Prepares the statement to insert the given row |
protected void |
prepareUpdate(String updateQuery,
PreparedStatement update,
PortletRowRow row)
Prepares the statement to update the given row |
void |
save(PortletRowRow portletRow)
Updates thePortletRow row. or inserts it if new. |
void |
update(PortletRowRow portletRow)
Update the given PortletRowRow |
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 PORTLETROW_COLUMNS
Constructor Detail |
---|
public PortletRowTable(Schema schema)
Method Detail |
---|
public PortletRowRow getPortletRow(int id) throws UtilException
UtilException
public PortletRowRow[] getAllByPortletColumnId(int aPortletColumnId, String orderField) throws UtilException
UtilException
public PortletRowRow[] getAllByInstanceId(int instanceId) throws UtilException
UtilException
public PortletRowRow[] getAllByPortletColumnId(int portletColumnId) throws UtilException
UtilException
public PortletRowRow[] getAllRows() throws UtilException
UtilException
public PortletRowRow getPortletRow(String query) throws UtilException
UtilException
public PortletRowRow[] getPortletRows(String query) throws UtilException
UtilException
public int create(PortletRowRow portletRow) throws UtilException
UtilException
public void update(PortletRowRow portletRow) throws UtilException
UtilException
public void save(PortletRowRow portletRow) throws UtilException
UtilException
public void delete(int id) throws UtilException
UtilException
public PortletRowRow[] dereferenceInstanceId(int InstanceId) throws UtilException
UtilException
public PortletRowRow[] dereferencePortletColumnId(int portletColumnId) throws UtilException
UtilException
protected PortletRowRow fetchRow(ResultSet rs) throws SQLException
fetchRow
in class AbstractTable<PortletRowRow>
SQLException
protected void prepareUpdate(String updateQuery, PreparedStatement update, PortletRowRow row) throws SQLException
prepareUpdate
in class AbstractTable<PortletRowRow>
SQLException
protected void prepareInsert(String insertQuery, PreparedStatement insert, PortletRowRow row) throws SQLException
prepareInsert
in class AbstractTable<PortletRowRow>
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |