APIdia Launch Partner
Top Description Fields Constructors Methods
net.ucanaccess.util

public final Class HibernateSupport

extends Object
Class Inheritance

A utility class providing methods for interoperability with the UCanAccess Hibernate dialect.

This class is designed to check for the presence of the Hibernate dialect at runtime.

For more information on the Hibernate dialect, see the project page: UCanAccess Hibernate dialect

Author
Gord Thompson

Field Summary

Modifier and TypeField and Description
private static Boolean
private static final String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static boolean

Returns:

true if the property was found and its value is "true", otherwise false.
isActive
()

Checks a Java system property to determine if the application is running with the UCanAccess Hibernate dialect.

public static void
setActive(Boolean
The new active status.
value
)

Sets the Hibernate "active" status for the current process.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

activeback to summary
private static Boolean active
UCA_HIBERNATE_ISACTIVE_PROPERTYback to summary
private static final String UCA_HIBERNATE_ISACTIVE_PROPERTY

Constructor Detail

HibernateSupportback to summary
private HibernateSupport()

Method Detail

isActiveback to summary
public static boolean isActive()

Checks a Java system property to determine if the application is running with the UCanAccess Hibernate dialect. The property is set by the constructor of the UCanAccessDialect class.

Returns:boolean

true if the property was found and its value is "true", otherwise false.

setActiveback to summary
public static void setActive(Boolean value)

Sets the Hibernate "active" status for the current process. This method is primarily intended for use in test environments to simulate the presence of the Hibernate dialect.

Parameters
value:Boolean

The new active status.