Project Wonder 2.0

er.extensions
Interface ERXGeneratesPrimaryKeyInterface

All Known Implementing Classes:
ERXCustomObject, ERXGenericRecord

public interface ERXGeneratesPrimaryKeyInterface

Enterprise objects that need to generate their own primary keys should implement this interface. This interface works in conjunction with the ERXDatabaseContextDelegate.

Note that ERXGenericRecord implements a default implementation of this interface.


Method Summary
 NSDictionary primaryKeyDictionary(boolean inTransaction)
          This method is called by the ERXDatabaseContextDelegate when in the middle of a transaction.
 

Method Detail

primaryKeyDictionary

public NSDictionary primaryKeyDictionary(boolean inTransaction)
This method is called by the ERXDatabaseContextDelegate when in the middle of a transaction. This is signaled by passing in the boolean true into the method. If the object returns null then a new primary key is generated.


Last updated: Do, Dez 9, 2004 • 12:46 PM CET

Copyright © 2002 – 2004 Project Wonder.