Class AccessLevelTable
- java.lang.Object
-
- org.silverpeas.core.persistence.jdbc.AbstractTable<T>
-
- org.silverpeas.core.admin.persistence.Table<AccessLevelRow>
-
- org.silverpeas.core.admin.persistence.AccessLevelTable
-
@Repository public class AccessLevelTable extends Table<AccessLevelRow>
-
-
Constructor Summary
Constructors Constructor Description AccessLevelTable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AccessLevelRow
fetchAccessLevel(ResultSet rs)
Fetch the current access level row from a resultSet.protected AccessLevelRow
fetchRow(ResultSet rs)
Fetch the current accessLevel row from a resultSet.AccessLevelRow
getAccessLevel(String id)
Returns the Access level whith the given id.AccessLevelRow[]
getAllAccessLevels()
Returns all the Access levels.protected void
prepareInsert(String insertQuery, PreparedStatement insert, AccessLevelRow row)
insert a accessLevelprotected void
prepareUpdate(String updateQuery, PreparedStatement update, AccessLevelRow row)
update a accessLevel-
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
-
fetchAccessLevel
protected AccessLevelRow fetchAccessLevel(ResultSet rs) throws SQLException
Fetch the current access level row from a resultSet.- Parameters:
rs
-- Returns:
- the current access level row from a resultSet.
- Throws:
SQLException
-
getAllAccessLevels
public AccessLevelRow[] getAllAccessLevels() throws SQLException
Returns all the Access levels.- Returns:
- all the Access levels.
- Throws:
SQLException
-
getAccessLevel
public AccessLevelRow getAccessLevel(String id) throws SQLException
Returns the Access level whith the given id.- Parameters:
id
-- Returns:
- the Access level whith the given id.
- Throws:
SQLException
-
fetchRow
protected AccessLevelRow fetchRow(ResultSet rs) throws SQLException
Fetch the current accessLevel row from a resultSet.- Specified by:
fetchRow
in classAbstractTable<AccessLevelRow>
- Parameters:
rs
-- Returns:
- the current accessLevel row from a resultSet.
- Throws:
SQLException
-
prepareUpdate
protected void prepareUpdate(String updateQuery, PreparedStatement update, AccessLevelRow row)
update a accessLevel- Specified by:
prepareUpdate
in classAbstractTable<AccessLevelRow>
-
prepareInsert
protected void prepareInsert(String insertQuery, PreparedStatement insert, AccessLevelRow row)
insert a accessLevel- Specified by:
prepareInsert
in classAbstractTable<AccessLevelRow>
-
-