org.nakedobjects.plugins.sql.objectstore.auto
Class ReversedAutoAssociationMapper

java.lang.Object
  extended by org.nakedobjects.plugins.sql.objectstore.AbstractMapper
      extended by org.nakedobjects.plugins.sql.objectstore.auto.AbstractAutoMapper
          extended by org.nakedobjects.plugins.sql.objectstore.auto.ReversedAutoAssociationMapper
All Implemented Interfaces:
CollectionMapper

public class ReversedAutoAssociationMapper
extends AbstractAutoMapper
implements CollectionMapper

used where there is a one to many association, and the elements are only known to parent


Field Summary
 
Fields inherited from class org.nakedobjects.plugins.sql.objectstore.auto.AbstractAutoMapper
collectionMappers, dbCreatesId, fieldMappings, specification, table
 
Constructor Summary
ReversedAutoAssociationMapper(java.lang.String elemenType, NakedObjectAssociation field, java.lang.String parameterBase, FieldMappingLookup lookup)
           
 
Method Summary
 void createTables(DatabaseConnector connection)
           
protected  void loadFields(NakedObject object, Results rs)
           
 void loadInternalCollection(DatabaseConnector connector, NakedObject parent)
           
 void saveInternalCollection(DatabaseConnector connector, NakedObject parent)
           
 
Methods inherited from class org.nakedobjects.plugins.sql.objectstore.auto.AbstractAutoMapper
columnList, getAdapter, needsTables, toString, updateWhereClause, values
 
Methods inherited from class org.nakedobjects.plugins.sql.objectstore.AbstractMapper
addPrimaryKeyMapper, asSqlName, createVersion, getFieldMappingLookup, recreateOid, shutdown, startup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.nakedobjects.plugins.sql.objectstore.CollectionMapper
needsTables
 

Constructor Detail

ReversedAutoAssociationMapper

public ReversedAutoAssociationMapper(java.lang.String elemenType,
                                     NakedObjectAssociation field,
                                     java.lang.String parameterBase,
                                     FieldMappingLookup lookup)
Method Detail

createTables

public void createTables(DatabaseConnector connection)
Specified by:
createTables in interface CollectionMapper
Specified by:
createTables in class AbstractMapper

loadInternalCollection

public void loadInternalCollection(DatabaseConnector connector,
                                   NakedObject parent)
Specified by:
loadInternalCollection in interface CollectionMapper

loadFields

protected void loadFields(NakedObject object,
                          Results rs)

saveInternalCollection

public void saveInternalCollection(DatabaseConnector connector,
                                   NakedObject parent)
Specified by:
saveInternalCollection in interface CollectionMapper


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.