|
|||||||||
| Home >> All >> com >> RuntimeCollective >> webapps >> [ bean overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.RuntimeCollective.webapps.bean
Class UserGroupType

java.lang.Objectcom.RuntimeCollective.webapps.bean.UserGroupType
- All Implemented Interfaces:
- EntityBean, java.io.Serializable
- public class UserGroupType
- extends java.lang.Object
- implements EntityBean
- extends java.lang.Object
A type of user group.
- Version:
- $Id: UserGroupType.java,v 1.8 2003/09/30 15:13:10 joe Exp $
| Field Summary | |
static java.lang.String |
DATABASE_TABLE
The name of a table (in the default database) that indexes this bean type. |
private int |
iId
Unique identifier |
private java.lang.String |
iName
The name of this type of user group. |
| Fields inherited from interface com.RuntimeCollective.webapps.bean.EntityBean |
INTERFACE_BEAN, NULL_ID |
| Constructor Summary | |
UserGroupType()
Default constructor generates a new blank bean with a new unique ID. |
|
UserGroupType(int id)
Generate a bean from the database for the given primary key. |
|
| Method Summary | |
void |
delete()
Delete this bean from the database. |
static java.util.Iterator |
getAllTypes()
Get all the user group types. |
static java.util.List |
getAllTypesAsList()
Get all the user group types. |
static UserGroupType |
getForName(java.lang.String name)
Get a user group type for the given name. |
int |
getId()
Get unique identifier |
java.lang.String |
getName()
Get the name of this type of user group. |
void |
save()
Save this bean to the database. |
void |
setId(int id)
Set unique identifier |
void |
setName(java.lang.String name)
Set the name of this type of user group. |
java.lang.String |
toString()
Convert this Object to a human-readable String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
DATABASE_TABLE
public static final java.lang.String DATABASE_TABLE
- The name of a table (in the default database) that indexes this bean type. This table must have a PK column called "id" and a row for each of the beans of this type.
- See Also:
- Constant Field Values
iId
private int iId
- Unique identifier
iName
private java.lang.String iName
- The name of this type of user group.
| Constructor Detail |
UserGroupType
public UserGroupType()
- Default constructor generates a new blank bean with a new unique ID.
UserGroupType
public UserGroupType(int id)
- Generate a bean from the database for the given primary key.
| Method Detail |
getId
public int getId()
- Get unique identifier
- Specified by:
getIdin interfaceEntityBean
setId
public void setId(int id)
- Set unique identifier
- Specified by:
setIdin interfaceEntityBean
getName
public java.lang.String getName()
- Get the name of this type of user group.
setName
public void setName(java.lang.String name)
- Set the name of this type of user group.
save
public void save()
- Save this bean to the database.
- Specified by:
savein interfaceEntityBean
delete
public void delete()
- Delete this bean from the database.
- Specified by:
deletein interfaceEntityBean
getAllTypes
public static java.util.Iterator getAllTypes()
- Get all the user group types.
getAllTypesAsList
public static java.util.List getAllTypesAsList()
- Get all the user group types.
getForName
public static UserGroupType getForName(java.lang.String name)
- Get a user group type for the given name.
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
|
|||||||||
| Home >> All >> com >> RuntimeCollective >> webapps >> [ bean overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.RuntimeCollective.webapps.bean.UserGroupType