1 package net.sf.openrocket.database;
5 import net.sf.openrocket.preset.ComponentPreset;
7 public interface ComponentPresetDao {
9 public List<ComponentPreset> listAll();
11 public void insert( ComponentPreset preset );
13 public List<ComponentPreset> listForType( ComponentPreset.Type type );
16 * Return a list of component presets based on the type.
17 * All components returned will be of Type type.
20 * @param favorite if true, only return the favorites. otherwise return all matching.
23 public List<ComponentPreset> listForType( ComponentPreset.Type type, boolean favorite );
25 public List<ComponentPreset> listForTypes( ComponentPreset.Type ... type );
27 public void setFavorite( ComponentPreset preset, boolean favorite );