com.stratelia.silverpeas.notificationManager.model
Class NotifChannelTable

java.lang.Object
  extended by com.stratelia.webactiv.util.AbstractTable<NotifChannelRow>
      extended by com.stratelia.silverpeas.notificationManager.model.NotifChannelTable

public class NotifChannelTable
extends AbstractTable<NotifChannelRow>


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

NOTIFCHANNEL_COLUMNS

protected static final String NOTIFCHANNEL_COLUMNS
The column list used for every select query.

See Also:
Constant Field Values
Constructor Detail

NotifChannelTable

public NotifChannelTable(Schema schema)
Builds a new NotifChannelTable

Method Detail

getNotifChannel

public NotifChannelRow getNotifChannel(int id)
                                throws UtilException
Returns the unique NotifChannel row having a given id

Throws:
UtilException

getAllRows

public NotifChannelRow[] getAllRows()
                             throws UtilException
Returns all the rows.

Throws:
UtilException

getNotifChannel

public NotifChannelRow getNotifChannel(String query)
                                throws UtilException
Returns the unique row given by a no parameters query.

Throws:
UtilException

getNotifChannels

public NotifChannelRow[] getNotifChannels(String query)
                                   throws UtilException
Returns all the rows given by a no parameters query.

Throws:
UtilException

create

public int create(NotifChannelRow notifChannel)
           throws UtilException
Inserts in the database a new NotifChannel row.

Throws:
UtilException

update

public void update(NotifChannelRow notifChannel)
            throws UtilException
Update the given NotifChannelRow

Throws:
UtilException

save

public void save(NotifChannelRow notifChannel)
          throws UtilException
Updates theNotifChannel row. or inserts it if new.

Throws:
UtilException

delete

public void delete(int id)
            throws UtilException
Deletes theNotifChannelRow. after having removed all the reference to it.

Throws:
UtilException

fetchRow

protected NotifChannelRow fetchRow(ResultSet rs)
                            throws SQLException
Fetch the current NotifChannel row from a resultSet.

Specified by:
fetchRow in class AbstractTable<NotifChannelRow>
Throws:
SQLException

prepareUpdate

protected void prepareUpdate(String updateQuery,
                             PreparedStatement update,
                             NotifChannelRow r)
                      throws SQLException
Prepares the statement to update the given row

Specified by:
prepareUpdate in class AbstractTable<NotifChannelRow>
Throws:
SQLException

prepareInsert

protected void prepareInsert(String insertQuery,
                             PreparedStatement insert,
                             NotifChannelRow r)
                      throws SQLException
Prepares the statement to insert the given row

Specified by:
prepareInsert in class AbstractTable<NotifChannelRow>
Throws:
SQLException


Copyright © 2016 Silverpeas. All Rights Reserved.