Skip to content

Commit

Permalink
feat(KeyType): Add AssignedKey Type
Browse files Browse the repository at this point in the history
`AssignedKey` types do not set or retrieve any values from the database.
Another name for this key type would be `NullKeyType`.
  • Loading branch information
MordantWastrel authored and elpete committed Aug 22, 2018
1 parent d42cf61 commit 897277d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions models/KeyTypes/AssignedKey.cfc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
component implements="KeyType" {

/**
* Called to handle any tasks before inserting into the database.
* Recieves the entity as the only argument.
*/
public void function preInsert( required entity ) {
return;
}

/**
* Called to handle any tasks after inserting into the database.
* Recieves the entity and the queryExecute result as arguments.
*/
public void function postInsert( required entity, required struct result ) {
return;
}

}

0 comments on commit 897277d

Please sign in to comment.