org.minetti.astrodevice.common.orb
Interface ObservingSiteDaoOrbProcess

All Superinterfaces:
Remote

public interface ObservingSiteDaoOrbProcess
extends Remote

ORB process on observing sites.

Author:
Jean-Philippe MINETTI

Method Summary
 long add(String name, int latitudeDeg, int latitudeMin, double latitudeSec, int longitudeDeg, int longitudeMin, double longitudeSec, short elevation)
           
 List<Entity> find()
          Finds and returns all observing sites as entity list.
 ObservingSite find(long id)
          Finds and returns an observing site by its identifier.
 long[] getIds()
          Returns the identifiers of all observing site.
 void persist(ObservingSite observingSite)
          Persists a new observing site.
 void remove(ObservingSite observingSite)
          Removes an observing site.
 void update(ObservingSite observingSite)
          Updates an observing site.
 

Method Detail

getIds

long[] getIds()
              throws RemoteException
Returns the identifiers of all observing site.

Returns:
Identifiers of all observing site.
Throws:
RemoteException - Exception if an error occurred.

add

long add(String name,
         int latitudeDeg,
         int latitudeMin,
         double latitudeSec,
         int longitudeDeg,
         int longitudeMin,
         double longitudeSec,
         short elevation)
         throws RemoteException
Throws:
RemoteException

find

List<Entity> find()
                  throws RemoteException
Finds and returns all observing sites as entity list.

Returns:
All observing sites as entity list.
Throws:
RemoteException - Exception if an error occurred.

find

ObservingSite find(long id)
                   throws RemoteException
Finds and returns an observing site by its identifier.

Parameters:
id - Observing site identifier.
Returns:
Observing site.
Throws:
RemoteException - Exception if an error occurred.

persist

void persist(ObservingSite observingSite)
             throws RemoteException
Persists a new observing site.

Parameters:
observingSite - Observing site to persist.
Throws:
RemoteException - Exception if an error occurred.

update

void update(ObservingSite observingSite)
            throws RemoteException
Updates an observing site.

Parameters:
observingSite - Observing site to update.
Throws:
RemoteException - Exception if an error occurred.

remove

void remove(ObservingSite observingSite)
            throws RemoteException
Removes an observing site.

Parameters:
observingSite - Observing site to remove.
Throws:
RemoteException - Exception if an error occurred.


Copyright © 2012 astroDevice. All Rights Reserved.