-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
*
CFIDE
mapping for compatibility for orm
and scheduler
interfaces
* More integration tests * `Client` scope * Many more test scenarios * `struckKeyExists()` transpilers
- Loading branch information
Showing
9 changed files
with
154 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/** | ||
* Event handler for ORM Events. This should be used as a global application wide handler that can be set in the application | ||
* using ormsettings.eventHandler=MyEventHandler. These events can be handled by the application to perform any pre or post | ||
* actions for all ORM operations. | ||
*/ | ||
Interface | ||
{ | ||
/** | ||
* Called before injecting property values into a newly loaded entity instance. | ||
*/ | ||
public void function preLoad(any entity); | ||
|
||
/** | ||
* Called after an entity is fully loaded. | ||
*/ | ||
public void function postLoad(any entity); | ||
|
||
/** | ||
* Called before inserting the enetity into the database. | ||
*/ | ||
public void function preInsert(any entity); | ||
|
||
/** | ||
* Called after the entity is inserted into the database. | ||
*/ | ||
public void function postInsert(any entity); | ||
|
||
/** | ||
* Called before the entity is updated in the database. | ||
*/ | ||
public void function preUpdate(any entity, Struct oldData); | ||
|
||
/** | ||
* Called after the entity is updated in the database. | ||
*/ | ||
public void function postUpdate(any entity); | ||
|
||
|
||
/** | ||
* Called before the entity is deleted from the database. | ||
*/ | ||
public void function preDelete(any entity); | ||
|
||
/** | ||
* Called after deleting an item from the datastore | ||
*/ | ||
public void function postDelete(any entity); | ||
|
||
/** | ||
* Called before the session is flushed. | ||
*/ | ||
public void function preFlush(any entities); | ||
|
||
/** | ||
* Called after the session is flushed. | ||
*/ | ||
public void function postFlush(any entities); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* Strategy to specify the table name for a CFC and column name for a property in the cfc. | ||
* This can be used to specify the application specific table and column naming convention. | ||
* This rule will be applied even if the user has specified the table/column name in the mapping so that | ||
* the name can be changed for any application at one place without changing the names in all the code. | ||
*/ | ||
interface | ||
{ | ||
/** | ||
* Defines the table name to be used for a specified table name. The specified table name is either | ||
* the table name specified in the mapping or chosen using the entity name. | ||
*/ | ||
public string function getTableName(string tableName); | ||
|
||
/** | ||
* Defines the column name to be used for a specified column name. The specified column name is either | ||
* the column name specified in the mapping or chosen using the proeprty name. | ||
*/ | ||
public string function getColumnName(string columnName); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** | ||
* Event handler for Scheduler tasks Events. | ||
*/ | ||
Interface | ||
{ /** | ||
* Called when job is about to be executed.If this returns false, CF will veto the job and wont execute it | ||
*/ | ||
public boolean function onTaskStart(Struct context); | ||
|
||
/** | ||
* Called once execution of the task is over | ||
*/ | ||
public void function onTaskEnd(Struct context); | ||
|
||
/** | ||
* Called when a task gets misfired | ||
*/ | ||
public void function onMisfire(Struct context); | ||
|
||
/** | ||
* Called when a task throws an runtime exception | ||
*/ | ||
public void function onError(Struct context); | ||
|
||
/** | ||
* Called when URL is not specified.Instead this method will be invoked on scheduled times | ||
*/ | ||
public void function execute(Struct context); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"modules": {} | ||
} |