|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.webactiv.organization.Table<SpaceI18NRow>
com.stratelia.webactiv.organization.SpaceI18NTable
public class SpaceI18NTable
A SpaceTable object manages the ST_SPACE table.
Constructor Summary | |
---|---|
SpaceI18NTable(OrganizationSchema organization)
|
Method Summary | |
---|---|
void |
createTranslation(SpaceI18NRow translation)
Inserts in the database a new space row. |
protected SpaceI18NRow |
fetchRow(ResultSet rs)
Fetch the current space row from a resultSet. |
protected SpaceI18NRow |
fetchTranslation(ResultSet rs)
Fetch the current space row from a resultSet. |
List<SpaceI18NRow> |
getTranslations(int spaceId)
Returns the Space whith the given id. |
protected void |
prepareInsert(String insertQuery,
PreparedStatement insert,
SpaceI18NRow row)
Set all the parameters of the insert PreparedStatement built from the insertQuery in order to insert the given row. |
protected void |
prepareUpdate(String updateQuery,
PreparedStatement update,
SpaceI18NRow row)
Set all the parameters of the update PreparedStatement built from the updateQuery in order to update the given row. |
void |
removeTranslation(int id)
Delete a translation. |
void |
removeTranslations(int spaceId)
Delete all space's translations. |
void |
updateTranslation(SpaceI18NRow space)
Updates a space row. |
Methods inherited from class com.stratelia.webactiv.organization.Table |
---|
addIdToQuery, addParamToQuery, addParamToQuery, addParamToQuery, aliasColumns, getCount, getCount, getIds, getIds, getIds, getIds, getInteger, getInteger, getMatchingRows, getNextId, getRows, getRows, getRows, getRows, getUniqueRow, getUniqueRow, getUniqueRow, insertRow, performPrepareStatementParams, truncate, updateRelation, updateRelation, updateRelation, updateRow |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpaceI18NTable(OrganizationSchema organization)
Method Detail |
---|
protected SpaceI18NRow fetchTranslation(ResultSet rs) throws SQLException
SQLException
public List<SpaceI18NRow> getTranslations(int spaceId) throws AdminPersistenceException
AdminPersistenceException
public void createTranslation(SpaceI18NRow translation) throws AdminPersistenceException
AdminPersistenceException
protected void prepareInsert(String insertQuery, PreparedStatement insert, SpaceI18NRow row) throws SQLException
Table
prepareInsert
in class Table<SpaceI18NRow>
SQLException
public void updateTranslation(SpaceI18NRow space) throws AdminPersistenceException
AdminPersistenceException
protected void prepareUpdate(String updateQuery, PreparedStatement update, SpaceI18NRow row) throws SQLException
Table
prepareUpdate
in class Table<SpaceI18NRow>
SQLException
public void removeTranslation(int id) throws AdminPersistenceException
AdminPersistenceException
public void removeTranslations(int spaceId) throws AdminPersistenceException
AdminPersistenceException
protected SpaceI18NRow fetchRow(ResultSet rs) throws SQLException
fetchRow
in class Table<SpaceI18NRow>
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |