public class SolarSystemFacadeBean extends Object implements SolarSystemFacadeLocal
planets
and the
moons
.
Constructor and Description |
---|
SolarSystemFacadeBean() |
Modifier and Type | Method and Description |
---|---|
List<Planet> |
findAllPlanets()
Finds all Planets.
|
Moon |
findMoonById(Long objectId)
Finds the Moon with the supplied objectId.
|
List<Moon> |
findMoonsByCriteria(MoonSearchCriteria criteria)
Finds Moons based upon criteria.
|
Planet |
findPlanetById(Long objectId)
Finds the Planet with the supplied objectId.
|
List<Planet> |
findPlanetsByCriteria(PlanetSearchCriteria criteria)
Finds Planets based upon criteria.
|
Moon |
mergeMoon(Moon moon)
Merges the supplied moon.
|
Planet |
mergePlanet(Planet planet)
Merges the supplied planet.
|
void |
persistMoon(Moon moon)
Persists a Moon.
|
void |
persistPlanet(Planet planet)
Persists a Planet.
|
void |
removeMoon(Moon moon)
Removes the supplied moon.
|
void |
removePlanet(Planet planet)
Removes the supplied planet.
|
public void persistPlanet(Planet planet)
persistPlanet
in interface SolarSystemFacadeRemote
planet
- The Planet to persist.public Planet findPlanetById(Long objectId)
findPlanetById
in interface SolarSystemFacadeRemote
objectId
- The object ID of the Planet to find.public List<Planet> findPlanetsByCriteria(PlanetSearchCriteria criteria)
findPlanetsByCriteria
in interface SolarSystemFacadeRemote
criteria
- The search criteria.public List<Planet> findAllPlanets()
findAllPlanets
in interface SolarSystemFacadeRemote
public Planet mergePlanet(Planet planet)
mergePlanet
in interface SolarSystemFacadeRemote
planet
- The Planet to merge.public void removePlanet(Planet planet)
removePlanet
in interface SolarSystemFacadeRemote
planet
- The Planet to merge.public void persistMoon(Moon moon)
persistMoon
in interface SolarSystemFacadeRemote
moon
- The Moon to persist.public Moon findMoonById(Long objectId)
findMoonById
in interface SolarSystemFacadeRemote
objectId
- The object ID of the Moon to find.public List<Moon> findMoonsByCriteria(MoonSearchCriteria criteria)
findMoonsByCriteria
in interface SolarSystemFacadeRemote
criteria
- The search criteria.public Moon mergeMoon(Moon moon)
mergeMoon
in interface SolarSystemFacadeRemote
moon
- The Moon to merge.public void removeMoon(Moon moon)
removeMoon
in interface SolarSystemFacadeRemote
moon
- The Moon to merge.Copyright © 2008–2018. All rights reserved.