ORMFlush

Note: This function has been enhanced in ColdFusion 9.0.1 to support multiple data sources in the same application. Install the ColdFusion 9 update to use the feature.

Description

Flushes the Hibernate session associated with the data source in the request. ORMFlush flushes all pending CRUD operations in the request. Any changes made in the objects, in the current ORM session, are saved to the database.

If you do not specify the data source, the Hibernate session associated with the default data source is flushed.

Category

ORM functions

Function Syntax

ormflush([datasource])

See Also

ORMCloseSession, ORMClearSession, ORMGetSession, ORMGetSessionFactory, ORMFlush() in Developing ColdFusion Applications.