|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.webactiv.organization.Table<DomainRow>
com.stratelia.webactiv.organization.DomainTable
public class DomainTable
A DomainTable object manages the ST_Domain table.
Constructor Summary | |
---|---|
DomainTable(OrganizationSchema schema)
|
Method Summary | |
---|---|
void |
createDomain(DomainRow domain)
Insert a new domain row. |
protected DomainRow |
fetchDomain(ResultSet rs)
Fetch the current domain row from a resultSet. |
protected DomainRow |
fetchRow(ResultSet rs)
Fetch the current domain row from a resultSet. |
DomainRow[] |
getAllDomains()
Returns all the Domains. |
DomainRow |
getDomain(int id)
Returns the domain whith the given id. |
protected void |
prepareInsert(String insertQuery,
PreparedStatement insert,
DomainRow 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,
DomainRow row)
Set all the parameters of the update PreparedStatement built from the updateQuery in order to update the given row. |
void |
removeDomain(int id)
Delete the domain |
void |
updateDomain(DomainRow domain)
Updates a domain 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 DomainTable(OrganizationSchema schema)
Method Detail |
---|
protected DomainRow fetchDomain(ResultSet rs) throws SQLException
rs
-
SQLException
public DomainRow getDomain(int id) throws AdminPersistenceException
id
-
AdminPersistenceException
public DomainRow[] getAllDomains() throws AdminPersistenceException
AdminPersistenceException
public void createDomain(DomainRow domain) throws AdminPersistenceException
domain
-
AdminPersistenceException
protected void prepareInsert(String insertQuery, PreparedStatement insert, DomainRow row) throws SQLException
Table
prepareInsert
in class Table<DomainRow>
SQLException
public void updateDomain(DomainRow domain) throws AdminPersistenceException
domain
-
AdminPersistenceException
protected void prepareUpdate(String updateQuery, PreparedStatement update, DomainRow row) throws SQLException
Table
prepareUpdate
in class Table<DomainRow>
SQLException
public void removeDomain(int id) throws AdminPersistenceException
id
-
AdminPersistenceException
protected DomainRow fetchRow(ResultSet rs) throws SQLException
fetchRow
in class Table<DomainRow>
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |