| | |
| | | |
| | | package de.uhilger.radiozentrale.api; |
| | | |
| | | import de.uhilger.baselink.GenericRecord; |
| | | import de.uhilger.baselink.PersistenceManager; |
| | | import de.uhilger.radiozentrale.daten.Sender; |
| | | import de.uhilger.radiozentrale.web.Initialiser; |
| | |
| | | return geaendert; |
| | | } |
| | | |
| | | public Sender senderLoeschen(Sender sender) { |
| | | Sender geloescht = null; |
| | | Object o = getDb().delete(sender, getMapper(Initialiser.MP_SENDER)); |
| | | if(o instanceof Sender) { |
| | | geloescht = (Sender) o; |
| | | } |
| | | return geloescht; |
| | | } |
| | | |
| | | public List senderliste() { |
| | | return getDb().select(getSql(SQL_GET_SENDER), getMapper(Initialiser.MP_SENDER)); |
| | | } |