public class MoonControllerBean extends AbstractCrudChildControllerBean<Moon> implements MoonControllerLocal
moons
.Constructor and Description |
---|
MoonControllerBean() |
Modifier and Type | Method and Description |
---|---|
List<Moon> |
findAll()
Finds all Moons.
|
List<Moon> |
findByCriteria(Searchable criteria)
Finds Moons based upon criteria.
|
Class<Moon> |
getItemType()
Gets the type of the Entity to maintain.
|
void |
prePersist(Moon moon,
Long planetId)
Fetches the Planet with the supplied planetId and sets it on the supplied
moon.
|
findById, getEntityManager, merge, persist, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findById, merge, persist, remove
public Class<Moon> getItemType()
getItemType
in class AbstractCrudChildControllerBean<Moon>
public List<Moon> findAll()
findAll
in interface MoonControllerRemote
public List<Moon> findByCriteria(Searchable criteria)
findByCriteria
in interface CrudChildActions<Moon>
criteria
- The search criteria.public void prePersist(Moon moon, Long planetId)
prePersist
in class AbstractCrudChildControllerBean<Moon>
moon
- The Moon.planetId
- The Object ID of the Planet to which the supplied moon
belongs.Copyright © 2008–2018. All rights reserved.