|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.stratelia.webactiv.organization.Table<ComponentInstanceI18NRow>
com.stratelia.webactiv.organization.ComponentInstanceI18NTable
public class ComponentInstanceI18NTable
A ComponentInstanceI18NTable object manages the ST_ComponentInstance table.
| Constructor Summary | |
|---|---|
ComponentInstanceI18NTable(OrganizationSchema organization)
|
|
| Method Summary | |
|---|---|
void |
createTranslation(ComponentInstanceI18NRow translation)
Inserts in the database a new component row. |
protected ComponentInstanceI18NRow |
fetchRow(ResultSet rs)
Fetch the current component row from a resultSet. |
protected ComponentInstanceI18NRow |
fetchTranslation(ResultSet rs)
Fetch the current component row from a resultSet. |
List<ComponentInstanceI18NRow> |
getTranslations(int componentId)
Returns the Component whith the given id. |
protected void |
prepareInsert(String insertQuery,
PreparedStatement insert,
ComponentInstanceI18NRow 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,
ComponentInstanceI18NRow 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 componentId)
Delete all component's translations. |
void |
updateTranslation(ComponentInstanceI18NRow component)
Updates a component 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 ComponentInstanceI18NTable(OrganizationSchema organization)
| Method Detail |
|---|
protected ComponentInstanceI18NRow fetchTranslation(ResultSet rs)
throws SQLException
rs -
SQLException
public List<ComponentInstanceI18NRow> getTranslations(int componentId)
throws AdminPersistenceException
componentId -
AdminPersistenceException
public void createTranslation(ComponentInstanceI18NRow translation)
throws AdminPersistenceException
translation -
AdminPersistenceException
protected void prepareInsert(String insertQuery,
PreparedStatement insert,
ComponentInstanceI18NRow row)
throws SQLException
Table
prepareInsert in class Table<ComponentInstanceI18NRow>SQLException
public void updateTranslation(ComponentInstanceI18NRow component)
throws AdminPersistenceException
component -
AdminPersistenceException
protected void prepareUpdate(String updateQuery,
PreparedStatement update,
ComponentInstanceI18NRow row)
throws SQLException
Table
prepareUpdate in class Table<ComponentInstanceI18NRow>SQLException
public void removeTranslation(int id)
throws AdminPersistenceException
id -
AdminPersistenceException
public void removeTranslations(int componentId)
throws AdminPersistenceException
componentId -
AdminPersistenceException
protected ComponentInstanceI18NRow fetchRow(ResultSet rs)
throws SQLException
fetchRow in class Table<ComponentInstanceI18NRow>SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||