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. |
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.
Copyright © 2002 – 2004 Project Wonder.