Class KeyStoreTable
- java.lang.Object
-
- org.silverpeas.core.persistence.jdbc.AbstractTable<T>
-
- org.silverpeas.core.admin.persistence.Table<KeyStoreRow>
-
- org.silverpeas.core.admin.persistence.KeyStoreTable
-
@Repository public class KeyStoreTable extends Table<KeyStoreRow>
A KeyStoreTable object manages the ST_KeyStore table.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected KeyStoreRow
fetchKeyStore(ResultSet rs)
Fetch the current keyStore row from a resultSet.protected KeyStoreRow
fetchRow(ResultSet rs)
Fetch the current accessLevel row from a resultSet.KeyStoreRow
getRecordByKey(int nKey)
Get a keystore record by userKeyprotected void
prepareInsert(String insertQuery, PreparedStatement insert, KeyStoreRow row)
insert a KeyStoreprotected void
prepareUpdate(String updateQuery, PreparedStatement update, KeyStoreRow row)
update a KeyStorevoid
removeKeyStoreRecord(int nKey)
Remove a keystore record with the given key-
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
-
fetchKeyStore
protected KeyStoreRow fetchKeyStore(ResultSet rs) throws SQLException
Fetch the current keyStore row from a resultSet.- Throws:
SQLException
-
getRecordByKey
public KeyStoreRow getRecordByKey(int nKey) throws SQLException
Get a keystore record by userKey- Throws:
SQLException
-
removeKeyStoreRecord
public void removeKeyStoreRecord(int nKey) throws SQLException
Remove a keystore record with the given key- Throws:
SQLException
-
fetchRow
protected KeyStoreRow fetchRow(ResultSet rs) throws SQLException
Fetch the current accessLevel row from a resultSet.- Specified by:
fetchRow
in classAbstractTable<KeyStoreRow>
- Parameters:
rs
- the result set from which the row will be fetched.- Returns:
- the entity in the row.
- Throws:
SQLException
- on SQL error.
-
prepareUpdate
protected void prepareUpdate(String updateQuery, PreparedStatement update, KeyStoreRow row)
update a KeyStore- Specified by:
prepareUpdate
in classAbstractTable<KeyStoreRow>
-
prepareInsert
protected void prepareInsert(String insertQuery, PreparedStatement insert, KeyStoreRow row)
insert a KeyStore- Specified by:
prepareInsert
in classAbstractTable<KeyStoreRow>
-
-