User Guide Cancel

ORMClearSession

 

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])
Ormclearsession([datasource])
Ormclearsession([datasource])

ORMCloseSessionORMGetSessionORMFlushORMGetSessionFactoryORMClearSession() in Developing ColdFusion Applications.

Get help faster and easier

New user?