ORMClearSession removes all the entities that are loaded or created in the session. This clears the first level cache and removes the objects that are not yet saved to the database.

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

Clears the Hibernate session associated with the given data source.

The function clears the first level cache and removes the objects that are not yet saved to the database.

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

Category

Syntax

Ormclearsession([datasource])

ORMCloseSessionORMGetSessionORMFlushORMGetSessionFactoryORMClearSession() in Developing ColdFusion Applications.

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy