|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.greenhopper.manager.AbstractRelatedAOListMapper<P,T,U>
public abstract class AbstractRelatedAOListMapper<P,T extends Entity,U extends AbstractModel>
Abstract class of a AOListMapper
for an entity T
which has a relationship with parent entity P
.
Field Summary | |
---|---|
protected RelatedAOMapper<P,T,U> |
mapper
|
protected P |
parentAO
|
Constructor Summary | |
---|---|
protected |
AbstractRelatedAOListMapper(P parentAO,
RelatedAOMapper<P,T,U> mapper)
|
Method Summary | |
---|---|
void |
addCreateValues(U model,
java.util.Map<java.lang.String,java.lang.Object> params)
Provide the db parameter for T to be created. |
T |
findExisting(T[] recordAOs,
U model)
Get an existing T for given u. |
java.util.List<U> |
fromAO(T[] ts)
|
abstract java.lang.Class<T> |
getActiveObjectClass()
Get the class of T |
abstract T[] |
getExisting()
Provides all existing T. |
abstract void |
postCreateUpdate(T recordAO,
U model)
Called on the updated AO object (either once created or updated/saved). |
abstract void |
preDelete(T recordAO)
Called before the element is deleted, gives the mapper a chance to clean up child objects |
void |
setValues(T recordAO,
U model)
Updates an AO. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final P parentAO
protected final RelatedAOMapper<P,T extends Entity,U extends AbstractModel> mapper
Constructor Detail |
---|
protected AbstractRelatedAOListMapper(P parentAO, RelatedAOMapper<P,T,U> mapper)
Method Detail |
---|
public void addCreateValues(U model, java.util.Map<java.lang.String,java.lang.Object> params)
AOListMapper
addCreateValues
in interface AOListMapper<T extends Entity,U extends AbstractModel>
public void setValues(T recordAO, U model)
AOListMapper
setValues
in interface AOListMapper<T extends Entity,U extends AbstractModel>
public T findExisting(T[] recordAOs, U model)
AOListMapper
findExisting
in interface AOListMapper<T extends Entity,U extends AbstractModel>
public java.util.List<U> fromAO(T[] ts)
fromAO
in interface AOListMapper<T extends Entity,U extends AbstractModel>
public abstract java.lang.Class<T> getActiveObjectClass()
AOListMapper
getActiveObjectClass
in interface AOListMapper<T extends Entity,U extends AbstractModel>
public abstract void postCreateUpdate(T recordAO, U model)
AOListMapper
postCreateUpdate
in interface AOListMapper<T extends Entity,U extends AbstractModel>
public abstract void preDelete(T recordAO)
AOListMapper
preDelete
in interface AOListMapper<T extends Entity,U extends AbstractModel>
public abstract T[] getExisting()
AOListMapper
getExisting
in interface AOListMapper<T extends Entity,U extends AbstractModel>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |