Villemos / hbird-business

The business tier of the Open Ground Segment; Hummingbird
www.hbird.de
Apache License 2.0
2 stars 2 forks source link

Improve data access interfaces #39

Open laurikimmel opened 11 years ago

laurikimmel commented 11 years ago

At the moment there are some strange or outdated methods in data access interfaces. Some of them have no practical use (getByName(name) etc.), some of them can be more general (get(ID, from, to) etc.) and some are missing.

Analyze all data access interfaces, make needed adjustments and create implementations. Don't forget testing.

laurikimmel commented 10 years ago
  1. Replace getState(...), getStates(...) and getMetadata(...) methods with more generic one public <T extends IApplicableTo> List<T> getApplicableTo(String instanceID, Class<T> clazz)
  2. Add method public <T extends IEntityInstance> List<T> getDerivedFrom(String instanceID, Class<T> clazz)
  3. Add methods public <T extends IEntityInstance> List<T> getIssuedBy(String instanceID, long from, long to Class<T> clazz) and public <T extends IEntityInstance> List<T> getDerivedFrom(String instanceID, Class<T> clazz)
  4. Refactor methods related to TLEs, OrbitalStates and LocationContactEvents to separate interface and implementation (Eg. IOrbitalDataAccess & MongoOrbitalDataAccess).