com.stratelia.silverpeas.notificationManager.model
Class NotifDefaultAddressTable

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

public class NotifDefaultAddressTable
extends AbstractTable<NotifDefaultAddressRow>


Field Summary
protected static String NOTIFDEFAULTADDRESS_COLUMNS
          The column list used for every select query.
 
Fields inherited from class com.stratelia.webactiv.util.AbstractTable
schema
 
Constructor Summary
NotifDefaultAddressTable(Schema schema)
          Builds a new NotifDefaultAddressTable
 
Method Summary
 int create(NotifDefaultAddressRow notifDefaultAddress)
          Inserts in the database a new NotifDefaultAddress row.
 void delete(int id)
          Deletes theNotifDefaultAddressRow. after having removed all the reference to it.
 void dereferenceUserId(int userId)
          Removes a reference to UserId
protected  NotifDefaultAddressRow fetchRow(ResultSet rs)
          Fetch the current NotifDefaultAddress row from a resultSet.
 NotifDefaultAddressRow[] getAllByUserId(int userId)
          Returns all the NotifDefaultAddressRow having a given userId
 NotifDefaultAddressRow[] getAllRows()
          Returns all the rows.
 NotifDefaultAddressRow getNotifDefaultAddress(int id)
          Returns the unique NotifDefaultAddress row having a given id
 NotifDefaultAddressRow getNotifDefaultAddress(String query)
          Returns the unique row given by a no parameters query.
 NotifDefaultAddressRow[] getNotifDefaultAddresss(String query)
          Returns all the rows given by a no parameters query.
protected  void prepareInsert(String insertQuery, PreparedStatement insert, NotifDefaultAddressRow r)
          Prepares the statement to insert the given row
protected  void prepareUpdate(String updateQuery, PreparedStatement update, NotifDefaultAddressRow r)
          Prepares the statement to update the given row
 void save(NotifDefaultAddressRow notifDefaultAddress)
          Updates theNotifDefaultAddress row. or inserts it if new.
 void update(NotifDefaultAddressRow notifDefaultAddress)
          Update the given NotifDefaultAddressRow
 
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

NOTIFDEFAULTADDRESS_COLUMNS

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

See Also:
Constant Field Values
Constructor Detail

NotifDefaultAddressTable

public NotifDefaultAddressTable(Schema schema)
Builds a new NotifDefaultAddressTable

Method Detail

getNotifDefaultAddress

public NotifDefaultAddressRow getNotifDefaultAddress(int id)
                                              throws UtilException
Returns the unique NotifDefaultAddress row having a given id

Throws:
UtilException

getAllByUserId

public NotifDefaultAddressRow[] getAllByUserId(int userId)
                                        throws UtilException
Returns all the NotifDefaultAddressRow having a given userId

Throws:
UtilException

getAllRows

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

Throws:
UtilException

getNotifDefaultAddress

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

Throws:
UtilException

getNotifDefaultAddresss

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

Throws:
UtilException

create

public int create(NotifDefaultAddressRow notifDefaultAddress)
           throws UtilException
Inserts in the database a new NotifDefaultAddress row.

Throws:
UtilException

update

public void update(NotifDefaultAddressRow notifDefaultAddress)
            throws UtilException
Update the given NotifDefaultAddressRow

Throws:
UtilException

save

public void save(NotifDefaultAddressRow notifDefaultAddress)
          throws UtilException
Updates theNotifDefaultAddress row. or inserts it if new.

Throws:
UtilException

delete

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

Throws:
UtilException

dereferenceUserId

public void dereferenceUserId(int userId)
                       throws UtilException
Removes a reference to UserId

Throws:
UtilException

fetchRow

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

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

prepareUpdate

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

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

prepareInsert

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

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


Copyright © 2016 Silverpeas. All Rights Reserved.