public class UserStore extends AbstractItemValueStore<User>
AbstractItemValueStore.ItemV<T>
JdbcAbstractStore.Creator<T>, JdbcAbstractStore.DataType, JdbcAbstractStore.EntityPopulator<T>, JdbcAbstractStore.SqlOperation<R>, JdbcAbstractStore.StatementValues<T>
datasource
Constructor and Description |
---|
UserStore(javax.sql.DataSource pool,
Container container) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
allUids() |
boolean |
areValid(java.lang.String[] usersUids) |
java.lang.String |
byLogin(java.lang.String login) |
void |
create(Item item,
User value) |
void |
delete(Item item) |
void |
deleteAll() |
User |
get(Item item) |
java.lang.String |
getPassword(long itemId) |
void |
setPassword(Item item,
java.lang.String password,
boolean updateLastChange) |
void |
update(Item item,
User value) |
getMultiple, join
batchInsert, batchInsert, delete, delete, delete, doOrContinue, doOrFail, getConnection, insert, insert, insert, insert, insertAndReturn, insertWithSerial, lastInsertId, select, select, select, unique, unique, unique, unique, unique, update, update, update, update, update
public UserStore(javax.sql.DataSource pool, Container container)
public void create(Item item, User value) throws java.sql.SQLException
java.sql.SQLException
public void update(Item item, User value) throws java.sql.SQLException
java.sql.SQLException
public void delete(Item item) throws java.sql.SQLException
java.sql.SQLException
public void deleteAll() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String byLogin(java.lang.String login) throws java.sql.SQLException
java.sql.SQLException
public boolean areValid(java.lang.String[] usersUids) throws java.sql.SQLException
java.sql.SQLException
public void setPassword(Item item, java.lang.String password, boolean updateLastChange) throws java.sql.SQLException
java.sql.SQLException
public java.util.List<java.lang.String> allUids() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getPassword(long itemId) throws java.sql.SQLException
java.sql.SQLException
Copyright © 2021. All Rights Reserved.