Class SpaceI18NTable
- java.lang.Object
-
- org.silverpeas.core.persistence.jdbc.AbstractTable<T>
-
- org.silverpeas.core.admin.persistence.Table<SpaceI18NRow>
-
- org.silverpeas.core.admin.persistence.SpaceI18NTable
-
@Repository public class SpaceI18NTable extends Table<SpaceI18NRow>
A SpaceTable object manages the ST_SPACE table.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
protected void
prepareUpdate(String updateQuery, PreparedStatement update, SpaceI18NRow 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 org.silverpeas.core.admin.persistence.Table
addIdToQuery, addParamToQuery, addParamToQuery, aliasColumns, checkGroupExistence, checkUserExistence, getCount, getCount, getIds, getIds, getIds, getIds, getNotNullString, getRows, performPrepareStatementParams, updateRelation
-
Methods inherited from class org.silverpeas.core.persistence.jdbc.AbstractTable
getInteger, getInteger, getMatchingRows, getNextId, getRows, getRows, getRows, getRows, getRows, getRows, getRows, getUniqueRow, getUniqueRow, getUniqueRow, getUniqueRow, getUniqueRow, getUniqueRow, getUniqueRow, insertRow, truncate, updateRelation, updateRelation, updateRow
-
-
-
-
Method Detail
-
fetchTranslation
protected SpaceI18NRow fetchTranslation(ResultSet rs) throws SQLException
Fetch the current space row from a resultSet.- Throws:
SQLException
-
getTranslations
public List<SpaceI18NRow> getTranslations(int spaceId) throws SQLException
Returns the Space whith the given id.- Throws:
SQLException
-
createTranslation
public void createTranslation(SpaceI18NRow translation) throws SQLException
Inserts in the database a new space row.- Throws:
SQLException
-
prepareInsert
protected void prepareInsert(String insertQuery, PreparedStatement insert, SpaceI18NRow row) throws SQLException
- Specified by:
prepareInsert
in classAbstractTable<SpaceI18NRow>
- Throws:
SQLException
-
updateTranslation
public void updateTranslation(SpaceI18NRow space) throws SQLException
Updates a space row.- Throws:
SQLException
-
prepareUpdate
protected void prepareUpdate(String updateQuery, PreparedStatement update, SpaceI18NRow row) throws SQLException
- Specified by:
prepareUpdate
in classAbstractTable<SpaceI18NRow>
- Throws:
SQLException
-
removeTranslation
public void removeTranslation(int id) throws SQLException
Delete a translation.- Throws:
SQLException
-
removeTranslations
public void removeTranslations(int spaceId) throws SQLException
Delete all space's translations.- Throws:
SQLException
-
fetchRow
protected SpaceI18NRow fetchRow(ResultSet rs) throws SQLException
Fetch the current space row from a resultSet.- Specified by:
fetchRow
in classAbstractTable<SpaceI18NRow>
- Parameters:
rs
- the result set from which the row will be fetched.- Returns:
- the entity in the row.
- Throws:
SQLException
- on SQL error.
-
-