|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.webactiv.organization.Table<InstanceDataRow>
com.stratelia.webactiv.organization.InstanceDataTable
public class InstanceDataTable
A InstanceData object manages component parameters
Constructor Summary | |
---|---|
InstanceDataTable(OrganizationSchema organization)
|
Method Summary | |
---|---|
void |
createInstanceData(int componentId,
Parameter parameter)
Inserts in the database a new instanceData row. |
protected InstanceDataRow |
fetchInstanceData(ResultSet rs)
Fetch the current instanceData row from a resultSet. |
protected InstanceDataRow |
fetchRow(ResultSet rs)
Fetch the current instanceData row from a resultSet. |
protected InstanceDataRow |
fetchUserSet(ResultSet rs)
Fetch the current instanceData row from a resultSet. |
List<Parameter> |
getAllParametersInComponent(int componentId)
Returns all the parameters of the given component (List of SPParameter) |
InstanceDataRow |
getInstanceData(int id)
Returns the instance whith the given id. |
protected void |
prepareInsert(String insertQuery,
PreparedStatement insert,
InstanceDataRow 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,
InstanceDataRow row)
Set all the parameters of the update PreparedStatement built from the updateQuery in order to update the given row. |
void |
removeInstanceData(int id)
Removes a instance data row. |
void |
updateInstanceData(int componentId,
Parameter parameter)
Updates a instance data 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 InstanceDataTable(OrganizationSchema organization)
Method Detail |
---|
protected InstanceDataRow fetchUserSet(ResultSet rs) throws SQLException
SQLException
public void createInstanceData(int componentId, Parameter parameter) throws AdminPersistenceException, SQLException
AdminPersistenceException
SQLException
public InstanceDataRow getInstanceData(int id) throws AdminPersistenceException
AdminPersistenceException
protected void prepareInsert(String insertQuery, PreparedStatement insert, InstanceDataRow row) throws SQLException
Table
prepareInsert
in class Table<InstanceDataRow>
SQLException
public List<Parameter> getAllParametersInComponent(int componentId) throws AdminPersistenceException
AdminPersistenceException
public void updateInstanceData(int componentId, Parameter parameter) throws AdminPersistenceException, SQLException
AdminPersistenceException
SQLException
public void removeInstanceData(int id) throws AdminPersistenceException
AdminPersistenceException
protected InstanceDataRow fetchRow(ResultSet rs) throws SQLException
fetchRow
in class Table<InstanceDataRow>
SQLException
protected InstanceDataRow fetchInstanceData(ResultSet rs) throws SQLException
SQLException
protected void prepareUpdate(String updateQuery, PreparedStatement update, InstanceDataRow row) throws SQLException
Table
prepareUpdate
in class Table<InstanceDataRow>
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |