private ENTITY remove(ENTITY entity) throws SpeedmentException { final List<Object> values = primaryKeyFields.get() .map(f -> toDatabaseType(f, entity)) .collect(toList()); try { operationHandler.executeDelete(dbms, deleteStatement, values); return entity; } catch (final SQLException ex) { throw new SpeedmentException(ex); } }
@Override public ENTITY remove(ENTITY entity) throws SpeedmentException { assertHasPrimaryKeyColumns(); final List<Object> values = primaryKeyFields.get() .map(f -> toDatabaseType(f, entity)) .collect(toList()); try { operationHandler.executeDelete(dbms, deleteStatement, values); return entity; } catch (final SQLException ex) { throw new SpeedmentException(ex); } }
private ENTITY remove(ENTITY entity) throws SpeedmentException { final List<Object> values = primaryKeyFields.get() .map(f -> toDatabaseType(f, entity)) .collect(toList()); try { operationHandler.executeDelete(dbms, deleteStatement, values); return entity; } catch (final SQLException ex) { throw new SpeedmentException(ex); } }
@Override public ENTITY remove(ENTITY entity) throws SpeedmentException { assertHasPrimaryKeyColumns(); final List<Object> values = primaryKeyFields.get() .map(f -> toDatabaseType(f, entity)) .collect(toList()); try { operationHandler.executeDelete(dbms, deleteStatement, values); return entity; } catch (final SQLException ex) { throw new SpeedmentException(ex); } }