com.atlassian.greenhopper.service.rapid.view.subquery
Class SubqueryAOListMapper

java.lang.Object
  extended by com.atlassian.greenhopper.service.rapid.view.subquery.SubqueryAOListMapper
All Implemented Interfaces:
AOListMapper<SubqueryAO,Subquery>

public class SubqueryAOListMapper
extends java.lang.Object
implements AOListMapper<SubqueryAO,Subquery>


Constructor Summary
SubqueryAOListMapper(RapidViewAO rapidViewAO, SubqueryAOMapper mapper)
           
 
Method Summary
 void addCreateValues(Subquery subquery, java.util.Map<java.lang.String,java.lang.Object> params)
          Provide the db parameter for T to be created.
 SubqueryAO findExisting(SubqueryAO[] ts, Subquery u)
          Get an existing T for given u.
 java.lang.Class<SubqueryAO> getActiveObjectClass()
          Get the class of T
 SubqueryAO[] getExisting()
          Provides all existing T.
 void postCreateUpdate(SubqueryAO t, Subquery u)
          Called on the updated AO object (either once created or updated/saved).
 void preDelete(SubqueryAO t)
          Called before the element is deleted, gives the mapper a chance to clean up child objects
 void setValues(SubqueryAO subqueryAO, Subquery subquery)
          Updates an AO.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubqueryAOListMapper

public SubqueryAOListMapper(RapidViewAO rapidViewAO,
                            SubqueryAOMapper mapper)
Method Detail

getExisting

public SubqueryAO[] getExisting()
Description copied from interface: AOListMapper
Provides all existing T.

Specified by:
getExisting in interface AOListMapper<SubqueryAO,Subquery>

addCreateValues

public void addCreateValues(Subquery subquery,
                            java.util.Map<java.lang.String,java.lang.Object> params)
Description copied from interface: AOListMapper
Provide the db parameter for T to be created.

Specified by:
addCreateValues in interface AOListMapper<SubqueryAO,Subquery>

setValues

public void setValues(SubqueryAO subqueryAO,
                      Subquery subquery)
Description copied from interface: AOListMapper
Updates an AO. Note that save should not be called.

Specified by:
setValues in interface AOListMapper<SubqueryAO,Subquery>

findExisting

public SubqueryAO findExisting(SubqueryAO[] ts,
                               Subquery u)
Description copied from interface: AOListMapper
Get an existing T for given u. Returns null if not found.

Specified by:
findExisting in interface AOListMapper<SubqueryAO,Subquery>

getActiveObjectClass

public java.lang.Class<SubqueryAO> getActiveObjectClass()
Description copied from interface: AOListMapper
Get the class of T

Specified by:
getActiveObjectClass in interface AOListMapper<SubqueryAO,Subquery>

postCreateUpdate

public void postCreateUpdate(SubqueryAO t,
                             Subquery u)
Description copied from interface: AOListMapper
Called on the updated AO object (either once created or updated/saved). Gives the mapper a chance to do further work, e.g. update child objects.

Specified by:
postCreateUpdate in interface AOListMapper<SubqueryAO,Subquery>

preDelete

public void preDelete(SubqueryAO t)
Description copied from interface: AOListMapper
Called before the element is deleted, gives the mapper a chance to clean up child objects

Specified by:
preDelete in interface AOListMapper<SubqueryAO,Subquery>


Copyright © 2007-2012 Atlassian. All Rights Reserved.