JADE Java Persistence API
1.0

com.jadeworld.jade.rootschema
Class Global

java.lang.Object
  extended by com.jadeworld.jade.rootschema.Object
      extended by com.jadeworld.jade.rootschema.Global

public abstract class Global
extends Object

The Global class provides a means by which application-specific data can be shared among users of a JADE application. A subclass of Global (with a default name of Gapplication-class-name, which can be overridden at subschema creation time) is created whenever you create a new subschema. A single instance of the Gapplication-class-name class is also created. It is your responsibility to declare properties and methods for a Global subclass. At run time, a single instance of the Gapplication-class-name subclass is shared by any active applications defined for the subschema. You can refer to this single instance in your logic, by using the em.getGlobal() method. Because the global object is persistent, any updates to properties of global must be made in transaction state.


Field Summary
 
Fields inherited from class com.jadeworld.jade.rootschema.Object
oid
 
Constructor Summary
Global()
           
 
Method Summary
 boolean isValidObject(java.lang.Object entity)
          Used to establish if the object specified in the entity parameter exists as a valid JADE object.
 
Methods inherited from class com.jadeworld.jade.rootschema.Object
changeObjectVolatility, creationTime, edition, equals, exclusiveLock, getClassNumberForObject, getInstanceIdForObject, getLockStatus, getName, getObjectStringForObject, getObjectVolatility, getOidString, getOidStringForObject, getPropertyValue, hashCode, hasMembers, isImportedObject, isKindOf, isLockedByMe, isObjectFrozen, isObjectNonSharedTransient, isObjectPersistent, isObjectSharedTransient, isObjectStable, isObjectTransient, isObjectVolatile, isSharedTransient, isSystemObject, isTransient, latestEdition, lock, makeObjectFrozen, makeObjectStable, makeObjectVolatile, reserveLock, sdeCauseEvent, sdsCauseEvent, setPropertyValue, sharedLock, toString, tryLock, unlock, updateObjectEdition
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Global

public Global()
Method Detail

isValidObject

public boolean isValidObject(java.lang.Object entity)
Used to establish if the object specified in the entity parameter exists as a valid JADE object. This method returns false if the specified object has been deleted or if it is null.

Parameters:
entity - The JADE object to be checked for validity
Returns:
true if the entity represents a valid JADE object; otherwise false.

JADE Java Persistence API
1.0

Copyright © 2007 Jade Software Corporation