|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.webactiv.util.AbstractTable<NotifChannelRow>
com.stratelia.silverpeas.notificationManager.model.NotifChannelTable
public class NotifChannelTable
Field Summary | |
---|---|
protected static String |
NOTIFCHANNEL_COLUMNS
The column list used for every select query. |
Fields inherited from class com.stratelia.webactiv.util.AbstractTable |
---|
schema |
Constructor Summary | |
---|---|
NotifChannelTable(Schema schema)
Builds a new NotifChannelTable |
Method Summary | |
---|---|
int |
create(NotifChannelRow notifChannel)
Inserts in the database a new NotifChannel row. |
void |
delete(int id)
Deletes theNotifChannelRow. after having removed all the reference to it. |
protected NotifChannelRow |
fetchRow(ResultSet rs)
Fetch the current NotifChannel row from a resultSet. |
NotifChannelRow[] |
getAllRows()
Returns all the rows. |
NotifChannelRow |
getNotifChannel(int id)
Returns the unique NotifChannel row having a given id |
NotifChannelRow |
getNotifChannel(String query)
Returns the unique row given by a no parameters query. |
NotifChannelRow[] |
getNotifChannels(String query)
Returns all the rows given by a no parameters query. |
protected void |
prepareInsert(String insertQuery,
PreparedStatement insert,
NotifChannelRow r)
Prepares the statement to insert the given row |
protected void |
prepareUpdate(String updateQuery,
PreparedStatement update,
NotifChannelRow r)
Prepares the statement to update the given row |
void |
save(NotifChannelRow notifChannel)
Updates theNotifChannel row. or inserts it if new. |
void |
update(NotifChannelRow notifChannel)
Update the given NotifChannelRow |
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 NOTIFCHANNEL_COLUMNS
Constructor Detail |
---|
public NotifChannelTable(Schema schema)
Method Detail |
---|
public NotifChannelRow getNotifChannel(int id) throws UtilException
UtilException
public NotifChannelRow[] getAllRows() throws UtilException
UtilException
public NotifChannelRow getNotifChannel(String query) throws UtilException
UtilException
public NotifChannelRow[] getNotifChannels(String query) throws UtilException
UtilException
public int create(NotifChannelRow notifChannel) throws UtilException
UtilException
public void update(NotifChannelRow notifChannel) throws UtilException
UtilException
public void save(NotifChannelRow notifChannel) throws UtilException
UtilException
public void delete(int id) throws UtilException
UtilException
protected NotifChannelRow fetchRow(ResultSet rs) throws SQLException
fetchRow
in class AbstractTable<NotifChannelRow>
SQLException
protected void prepareUpdate(String updateQuery, PreparedStatement update, NotifChannelRow r) throws SQLException
prepareUpdate
in class AbstractTable<NotifChannelRow>
SQLException
protected void prepareInsert(String insertQuery, PreparedStatement insert, NotifChannelRow r) throws SQLException
prepareInsert
in class AbstractTable<NotifChannelRow>
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |