edu.vt.middleware.ed
Class PermNameReservation

java.lang.Object
  extended by edu.vt.middleware.ed.SimpleArbitratedName
      extended by edu.vt.middleware.ed.AbstractReservation
          extended by edu.vt.middleware.ed.PermNameReservation
All Implemented Interfaces:
ArbitratedName, DataObject, MutableDataObject, ReservationObject, Serializable, Cloneable, Comparable<ArbitratedName>

public final class PermNameReservation
extends AbstractReservation
implements Serializable, Comparable<ArbitratedName>, Cloneable

Contains attributes that specify one permanent reservation.

Version:
$Revision: 7644 $
Author:
Cathy Winfrey
See Also:
Serialized Form

Field Summary
private  Boolean active
          active status
private  String comments
          comments
static int COMMENTS_MAXLENGTH
          Maximum length of comments
static int CREATED_BY_MAXLENGTH
          Maximum length of created by
static Boolean DEFAULT_ACTIVE_STATUS
          active status default value
static ArbitratedDataSource DEFAULT_DATASOURCE
          data source default value
static String FIND_BY_NAME
          Constant for named query
static String FIND_BY_NAME_AND_NAMESPACE
          Constant for named query
static String FIND_BY_NAME_CI
          Constant for named query
static String FIND_BY_NAME_CI_AND_NAMESPACE
          Constant for named query
static String FIND_BY_NAMESPACE
          Constant for named query
static int MODIFIED_BY_MAXLENGTH
          Maximum length of modified by
static int NAME_MAXLENGTH
          Maximum length of name
static String NAME_PARAMETER
          Constant for named query
static String NAMESPACE_PARAMETER
          Constant for named query
private static long serialVersionUID
          serial version UID
 
Fields inherited from class edu.vt.middleware.ed.AbstractReservation
DEFAULT_DATASOURCE_CLIENT
 
Constructor Summary
PermNameReservation()
          Default constructor.
 
Method Summary
private  Boolean copyBoolean(Boolean sourceVal)
          Copies a Boolean value into a new instance, to safely store the value from / return the value to a calling routine.
 Boolean getActive()
          Gets the active status of the reservation.
 String getComments()
          Gets the comments of the reservation
 Long getUid()
          This returns the uid.
protected  String nonCoreAttributesToString()
          Provides a string representation of the non-core attributes of the arbitrated entry.
 void reset()
          Initializes the reservation instance to the empty state.
 void setActive(Boolean activeValue)
          Sets the active status of the reservation.
 void setComments(String commentsValue)
          Sets the comments of the reservation.
 void setUid(Long l)
          This sets the uid.
 
Methods inherited from class edu.vt.middleware.ed.AbstractReservation
copyCalendar, coreAttributesToString, getCreatedBy, getCreationDate, getModificationDate, getModifiedBy, setCreatedBy, setCreationDate, setModificationDate, setModifiedBy
 
Methods inherited from class edu.vt.middleware.ed.SimpleArbitratedName
clone, compareTo, getDataSource, getDn, getName, getNamespace, getRegistryNamespace, setDataSource, setDn, setName, setNamespace, setRegistryNamespace, toString, toStringFull, updateDataSource
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface edu.vt.middleware.ed.ArbitratedName
clone, getDataSource, getDn, getName, getNamespace, setDataSource, setDn, setName, setNamespace, toStringFull, updateDataSource
 

Field Detail

FIND_BY_NAMESPACE

public static final String FIND_BY_NAMESPACE
Constant for named query

See Also:
Constant Field Values

FIND_BY_NAME

public static final String FIND_BY_NAME
Constant for named query

See Also:
Constant Field Values

FIND_BY_NAME_CI

public static final String FIND_BY_NAME_CI
Constant for named query

See Also:
Constant Field Values

FIND_BY_NAME_AND_NAMESPACE

public static final String FIND_BY_NAME_AND_NAMESPACE
Constant for named query

See Also:
Constant Field Values

FIND_BY_NAME_CI_AND_NAMESPACE

public static final String FIND_BY_NAME_CI_AND_NAMESPACE
Constant for named query

See Also:
Constant Field Values

NAME_PARAMETER

public static final String NAME_PARAMETER
Constant for named query

See Also:
Constant Field Values

NAMESPACE_PARAMETER

public static final String NAMESPACE_PARAMETER
Constant for named query

See Also:
Constant Field Values

DEFAULT_ACTIVE_STATUS

public static final Boolean DEFAULT_ACTIVE_STATUS
active status default value


DEFAULT_DATASOURCE

public static final ArbitratedDataSource DEFAULT_DATASOURCE
data source default value


COMMENTS_MAXLENGTH

public static final int COMMENTS_MAXLENGTH
Maximum length of comments

See Also:
Constant Field Values

CREATED_BY_MAXLENGTH

public static final int CREATED_BY_MAXLENGTH
Maximum length of created by

See Also:
Constant Field Values

MODIFIED_BY_MAXLENGTH

public static final int MODIFIED_BY_MAXLENGTH
Maximum length of modified by

See Also:
Constant Field Values

NAME_MAXLENGTH

public static final int NAME_MAXLENGTH
Maximum length of name

See Also:
Constant Field Values

serialVersionUID

private static final long serialVersionUID
serial version UID

See Also:
Constant Field Values

active

private Boolean active
active status


comments

private String comments
comments

Constructor Detail

PermNameReservation

public PermNameReservation()
Default constructor.

Method Detail

getUid

public Long getUid()
This returns the uid.

Specified by:
getUid in interface DataObject
Overrides:
getUid in class AbstractReservation
Returns:
Long - uid

setUid

public void setUid(Long l)
This sets the uid.

Specified by:
setUid in interface DataObject
Overrides:
setUid in class AbstractReservation
Parameters:
l - Long to set

getActive

public Boolean getActive()
Gets the active status of the reservation.

Returns:
the active status of the reservation.

setActive

public void setActive(Boolean activeValue)
Sets the active status of the reservation.

Parameters:
activeValue - the active status of the reservation

getComments

public String getComments()
Gets the comments of the reservation

Returns:
the comments of the reservation

setComments

public void setComments(String commentsValue)
Sets the comments of the reservation.

Parameters:
commentsValue - the comments of the reservation

reset

public void reset()
Initializes the reservation instance to the empty state.

Overrides:
reset in class AbstractReservation

copyBoolean

private Boolean copyBoolean(Boolean sourceVal)
Copies a Boolean value into a new instance, to safely store the value from / return the value to a calling routine.

Parameters:
sourceVal - value to copy
Returns:
copied value

nonCoreAttributesToString

protected String nonCoreAttributesToString()
Provides a string representation of the non-core attributes of the arbitrated entry.

Overrides:
nonCoreAttributesToString in class AbstractReservation
Returns:
string as a colon-separated list of 'attributeName'=|$attributeValue| pairs for each non-core attribute of the arbitrated entry
See Also:
SimpleArbitratedName.coreAttributesToString()


Copyright © 2008 Virginia Tech. All Rights Reserved.