@Test public void testDelete() { System.out.println("delete"); JDBCSessionDataStorage instance = new JDBCSessionDataStorage(dataSource); SessionData sessionData = instance.create(); String sessionId = sessionData.getId(); sessionData.put(KEY, VALUE); instance.save(sessionData); instance.delete(sessionId); SessionData deleted = instance.get(sessionId); assertNull(deleted); }
@Override public void delete(String sessionId) { executeUpdate(delete, sessionId); }
JDBCSessionDataStorage implements SessionDataStorage { @Override public void delete(String sessionId) { executeUpdate(delete, sessionId); } }
JDBCSessionDataStorage implements SessionDataStorage { @Override public void delete(String sessionId) { executeUpdate(delete, sessionId); } JDBCSessionDataStorage(DataSource dataSource);  JDBCSessionDataStorage(DataSource dataSource, String select, String insert, String update, String delete);  JDBCSessionDataStorage(DataSource dataSource, String select, String insert, String update, String delete, SessionDataTranscoder transcoder); }
JDBCSessionDataStorage implements SessionDataStorage { @Override public void delete(String sessionId) { executeUpdate(delete, sessionId); } JDBCSessionDataStorage(DataSource dataSource);  JDBCSessionDataStorage(DataSource dataSource, String select, String insert, String update, String delete);  JDBCSessionDataStorage(DataSource dataSource, String select, String insert, String update, String delete, SessionDataTranscoder transcoder); @Override SessionData create(); @Override void save(SessionData sessionData); @Override SessionData get(String sessionId); @Override void delete(String sessionId); }
JDBCSessionDataStorage implements SessionDataStorage { @Override public void delete(String sessionId) { executeUpdate(delete, sessionId); } JDBCSessionDataStorage(DataSource dataSource);  JDBCSessionDataStorage(DataSource dataSource, String select, String insert, String update, String delete);  JDBCSessionDataStorage(DataSource dataSource, String select, String insert, String update, String delete, SessionDataTranscoder transcoder); @Override SessionData create(); @Override void save(SessionData sessionData); @Override SessionData get(String sessionId); @Override void delete(String sessionId); static final String SELECT; static final String INSERT; static final String UPDATE; static final String DELETE; }