com.stratelia.webactiv.organization
Class SpaceI18NTable

java.lang.Object
  extended by com.stratelia.webactiv.organization.Table<SpaceI18NRow>
      extended by com.stratelia.webactiv.organization.SpaceI18NTable

public class SpaceI18NTable
extends Table<SpaceI18NRow>

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

SpaceI18NTable

public SpaceI18NTable(OrganizationSchema organization)
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 AdminPersistenceException
Returns the Space whith the given id.

Throws:
AdminPersistenceException

createTranslation

public void createTranslation(SpaceI18NRow translation)
                       throws AdminPersistenceException
Inserts in the database a new space row.

Throws:
AdminPersistenceException

prepareInsert

protected void prepareInsert(String insertQuery,
                             PreparedStatement insert,
                             SpaceI18NRow row)
                      throws SQLException
Description copied from class: Table
Set all the parameters of the insert PreparedStatement built from the insertQuery in order to insert the given row.

Specified by:
prepareInsert in class Table<SpaceI18NRow>
Throws:
SQLException

updateTranslation

public void updateTranslation(SpaceI18NRow space)
                       throws AdminPersistenceException
Updates a space row.

Throws:
AdminPersistenceException

prepareUpdate

protected void prepareUpdate(String updateQuery,
                             PreparedStatement update,
                             SpaceI18NRow row)
                      throws SQLException
Description copied from class: Table
Set all the parameters of the update PreparedStatement built from the updateQuery in order to update the given row.

Specified by:
prepareUpdate in class Table<SpaceI18NRow>
Throws:
SQLException

removeTranslation

public void removeTranslation(int id)
                       throws AdminPersistenceException
Delete a translation.

Throws:
AdminPersistenceException

removeTranslations

public void removeTranslations(int spaceId)
                        throws AdminPersistenceException
Delete all space's translations.

Throws:
AdminPersistenceException

fetchRow

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

Specified by:
fetchRow in class Table<SpaceI18NRow>
Returns:
Throws:
SQLException


Copyright © 2016 Silverpeas. All Rights Reserved.