org.apache.lokahi.core.common.authorization
Class Global

java.lang.Object
  extended by org.apache.lokahi.core.common.interfaces.RestObject
      extended by org.apache.lokahi.core.common.interfaces.TMCDao<T>
          extended by org.apache.lokahi.core.common.interfaces.FunctionableEntity<Global>
              extended by org.apache.lokahi.core.common.authorization.Global
All Implemented Interfaces:
Collectable, Dao<Global>, Entity, Restable

public class Global
extends FunctionableEntity<Global>

Version:
$Id: Global.java,v 1.4 2006/03/07 22:05:24 drtobes Exp $
Author:
Stephen Toback

Constructor Summary
Global()
           
 
Method Summary
 java.lang.StringBuilder buildShortXMLRepresentation()
          Builds a short xml representation of this object containing name, and primary key.
 java.lang.StringBuilder buildXMLRepresention()
          Builds a xml representation of this object
 boolean equals(java.lang.Object o)
           
 Global fillObject(java.sql.ResultSet r)
          Creates the Dao from the passed resultset, internally calling the appriate constructor.
 Global get(int id)
           
 java.lang.String getName()
          Gets the name.
 int getObjectId()
           
 FunctionableEntity getParent()
           
 int getPk()
          Gets the primary key
 int hashCode()
           
 
Methods inherited from class org.apache.lokahi.core.common.interfaces.RestObject
elementBuilder, elementBuilder
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Global

public Global()
Method Detail

getObjectId

public int getObjectId()
Specified by:
getObjectId in class FunctionableEntity<Global>

buildXMLRepresention

public java.lang.StringBuilder buildXMLRepresention()
Description copied from interface: Restable
Builds a xml representation of this object

Returns:
the xml representation

buildShortXMLRepresentation

public java.lang.StringBuilder buildShortXMLRepresentation()
Description copied from interface: Restable
Builds a short xml representation of this object containing name, and primary key.

Returns:
the xml representation

getPk

public int getPk()
Description copied from interface: Collectable
Gets the primary key

Returns:
the int primary key

getName

public java.lang.String getName()
Description copied from interface: Collectable
Gets the name.

Returns:
the String name.

get

public Global get(int id)
Specified by:
get in class TMCDao<Global>

getParent

public FunctionableEntity getParent()
Specified by:
getParent in class FunctionableEntity<Global>

fillObject

public Global fillObject(java.sql.ResultSet r)
                  throws java.sql.SQLException
Description copied from interface: Dao
Creates the Dao from the passed resultset, internally calling the appriate constructor.

Parameters:
r - the resultset from a database call, should include the entire object
Returns:
Object populated from the resultset
Throws:
java.sql.SQLException

equals

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

hashCode

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