kz.greetgo.security.session.SessionStoragePostgresAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of greetgo.security Show documentation
Show all versions of greetgo.security Show documentation
Security infrastructure used in greetgo!
package kz.greetgo.security.session;
import java.sql.SQLException;
import java.util.List;
class SessionStoragePostgresAdapter extends SessionStorageAdapterAbstract implements SessionStorage {
SessionStoragePostgresAdapter(SessionStorageJdbcBuilder.Names names) {
super(names);
}
@Override
protected String checkTableExistsSql() {
return "select " + names.id + " from " + names.tableName + " limit 1";
}
@Override
protected String insertSessionSql(List