Search in sources :

Example 1 with BaseModel

use of org.traccar.model.BaseModel in project traccar by traccar.

the class BaseObjectManager method removeItem.

public void removeItem(long itemId) throws SQLException {
    BaseModel item = getById(itemId);
    if (item != null) {
        dataManager.removeObject(baseClass, itemId);
        removeCachedItem(itemId);
    }
}
Also used : BaseModel(org.traccar.model.BaseModel)

Example 2 with BaseModel

use of org.traccar.model.BaseModel in project traccar by tananaev.

the class BaseObjectManager method removeItem.

public void removeItem(long itemId) throws StorageException {
    BaseModel item = getById(itemId);
    if (item != null) {
        dataManager.removeObject(baseClass, itemId);
        removeCachedItem(itemId);
    }
}
Also used : BaseModel(org.traccar.model.BaseModel)

Aggregations

BaseModel (org.traccar.model.BaseModel)2