SPT Core API

com.sptci.jdo
Class Group

java.lang.Object
  extended by com.sptci.jdo.JDOObject
      extended by com.sptci.jdo.NameDescription
          extended by com.sptci.jdo.Group
All Implemented Interfaces:
Serializable, Cloneable, Comparable<JDOObject>, javax.jdo.InstanceCallbacks, javax.jdo.listener.ClearCallback, javax.jdo.listener.DeleteCallback, javax.jdo.listener.LoadCallback, javax.jdo.listener.StoreCallback

public class Group
extends NameDescription

The JavaBean that represents a group record used to implement authorisation. Sub-classes must use an inheritance strategy of InheritanceStrategy.SUPERCLASS_TABLE since this class maintains a Discriminator policy.

Version:
$Id: Group.java 4618 2009-02-10 00:49:30Z rakesh $
Author:
Rakesh Vidyadharan 2006-05-10
See Also:

© Copyright 2006 Sans Pareil Technologies, Inc.

, Serialized Form

Field Summary
 
Fields inherited from class com.sptci.jdo.NameDescription
description, name
 
Fields inherited from class com.sptci.jdo.JDOObject
hash, HASH, logger, startLetter
 
Constructor Summary
protected Group()
          Default constructor.
  Group(String name)
          Create a new instance of the bean with the mandatory name field
  Group(String name, String description)
          Create a new instance of the bean with the specified values.
 
Method Summary
 
Methods inherited from class com.sptci.jdo.NameDescription
compareTo, createXStream, equals, getDescription, getName, hashCode, setDescription, setName
 
Methods inherited from class com.sptci.jdo.JDOObject
clone, fromXML, getObjectId, getPersistenceManager, getStartLetter, jdoPostLoad, jdoPreClear, jdoPreDelete, jdoPreStore, resetHash, toString, toXML
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Group

protected Group()
Default constructor. Cannot be instantiated.


Group

public Group(String name)
      throws IllegalArgumentException
Create a new instance of the bean with the mandatory name field

Parameters:
name - The NameDescription.name value to use to create the new instance
Throws:
IllegalArgumentException - If the name value specified is null or empty.

Group

public Group(String name,
             String description)
      throws IllegalArgumentException
Create a new instance of the bean with the specified values.

Parameters:
name - The NameDescription.name value to use to create the new instance
description - The NameDescription.description value to use to create the new instance
Throws:
IllegalArgumentException - If the name value specified is null or empty.

SPT Core API