|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.webactiv.util.AbstractTable<NotifDefaultAddressRow>
com.stratelia.silverpeas.notificationManager.model.NotifDefaultAddressTable
public class NotifDefaultAddressTable
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 |
---|
protected static final String NOTIFDEFAULTADDRESS_COLUMNS
Constructor Detail |
---|
public NotifDefaultAddressTable(Schema schema)
Method Detail |
---|
public NotifDefaultAddressRow getNotifDefaultAddress(int id) throws UtilException
UtilException
public NotifDefaultAddressRow[] getAllByUserId(int userId) throws UtilException
UtilException
public NotifDefaultAddressRow[] getAllRows() throws UtilException
UtilException
public NotifDefaultAddressRow getNotifDefaultAddress(String query) throws UtilException
UtilException
public NotifDefaultAddressRow[] getNotifDefaultAddresss(String query) throws UtilException
UtilException
public int create(NotifDefaultAddressRow notifDefaultAddress) throws UtilException
UtilException
public void update(NotifDefaultAddressRow notifDefaultAddress) throws UtilException
UtilException
public void save(NotifDefaultAddressRow notifDefaultAddress) throws UtilException
UtilException
public void delete(int id) throws UtilException
UtilException
public void dereferenceUserId(int userId) throws UtilException
UtilException
protected NotifDefaultAddressRow fetchRow(ResultSet rs) throws SQLException
fetchRow
in class AbstractTable<NotifDefaultAddressRow>
SQLException
protected void prepareUpdate(String updateQuery, PreparedStatement update, NotifDefaultAddressRow r) throws SQLException
prepareUpdate
in class AbstractTable<NotifDefaultAddressRow>
SQLException
protected void prepareInsert(String insertQuery, PreparedStatement insert, NotifDefaultAddressRow r) throws SQLException
prepareInsert
in class AbstractTable<NotifDefaultAddressRow>
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |