org.wamblee.security.authentication
Class Group

java.lang.Object
  extended by org.wamblee.security.authentication.Group
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

@Entity
public class Group
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable

Represents a group.

Author:
Erik Brakkee
See Also:
Serialized Form

Field Summary
static java.lang.String NAME_PARAM
           
static java.lang.String QUERY_ALL_GROUPS
           
static java.lang.String QUERY_COUNT_GROUPS
           
static java.lang.String QUERY_FIND_BY_NAME
           
 
Constructor Summary
protected Group()
          Creates a new Group object.
  Group(Group aGroup)
          Creates a new Group object.
 
Method Summary
 int compareTo(java.lang.Object aGroup)
           
 boolean equals(java.lang.Object aGroup)
           
 java.lang.String getName()
          Gets the name of the group.
 java.lang.Long getPrimaryKey()
           
 int hashCode()
           
 void setPrimaryKey(java.lang.Long aKey)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

QUERY_FIND_BY_NAME

public static final java.lang.String QUERY_FIND_BY_NAME
See Also:
Constant Field Values

QUERY_COUNT_GROUPS

public static final java.lang.String QUERY_COUNT_GROUPS
See Also:
Constant Field Values

QUERY_ALL_GROUPS

public static final java.lang.String QUERY_ALL_GROUPS
See Also:
Constant Field Values

NAME_PARAM

public static final java.lang.String NAME_PARAM
See Also:
Constant Field Values
Constructor Detail

Group

public Group(Group aGroup)
Creates a new Group object.


Group

protected Group()
Creates a new Group object.

Method Detail

getName

public java.lang.String getName()
Gets the name of the group.

Returns:
Group name.

equals

public boolean equals(java.lang.Object aGroup)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

public int compareTo(java.lang.Object aGroup)
Specified by:
compareTo in interface java.lang.Comparable

getPrimaryKey

public java.lang.Long getPrimaryKey()

setPrimaryKey

public void setPrimaryKey(java.lang.Long aKey)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2022. All Rights Reserved.