org.kuali.rice.location.impl.campus
Class CampusBo

java.lang.Object
  extended by org.kuali.rice.krad.bo.BusinessObjectBase
      extended by org.kuali.rice.krad.bo.PersistableBusinessObjectBase
          extended by org.kuali.rice.location.impl.campus.CampusBo
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.PersistenceBrokerAware, Inactivatable, MutableInactivatable, Coded, GloballyUnique, Versioned, ModelObjectBasic, BusinessObject, ExternalizableBusinessObject, PersistableBusinessObject, CampusContract, CampusEbo

@Entity
public class CampusBo
extends PersistableBusinessObjectBase
implements CampusEbo

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
extension, newCollectionRecord, objectId, versionNumber
 
Constructor Summary
CampusBo()
           
 
Method Summary
static CampusBo from(Campus im)
          Converts a immutable object to its mutable counterpart
 CampusTypeBo getCampusType()
          This is the campus type for the Campus.
 String getCampusTypeCode()
           
 String getCode()
          The code value for this object.
 String getName()
          This is the name for the Campus.
 String getShortName()
          This is the short name for the Campus.
 boolean isActive()
          The active indicator for an object.
 void setActive(boolean active)
          Sets the record to active or inactive.
 void setCampusType(CampusTypeBo campusType)
           
 void setCampusTypeCode(String campusTypeCode)
           
 void setCode(String code)
           
 void setName(String name)
           
 void setShortName(String shortName)
           
static Campus to(CampusBo bo)
          Converts a mutable bo to its immutable counterpart
 
Methods inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, buildListOfDeletionAwareLists, getExtension, getLegacyDataAdapter, getObjectId, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postLoad, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber
 
Methods inherited from class org.kuali.rice.krad.bo.BusinessObjectBase
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.location.framework.campus.CampusEbo
getObjectId, getVersionNumber
 
Methods inherited from interface org.kuali.rice.krad.bo.BusinessObject
refresh
 
Methods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic
toString
 

Constructor Detail

CampusBo

public CampusBo()
Method Detail

getCode

public String getCode()
Description copied from interface: CampusEbo
The code value for this object. In general a code value cannot be null or a blank string.

Specified by:
getCode in interface Coded
Specified by:
getCode in interface CampusEbo
Returns:
the code value for this object.

setCode

public void setCode(String code)

getName

public String getName()
Description copied from interface: CampusEbo
This is the name for the Campus.

It is a name a campus.

Specified by:
getName in interface CampusContract
Specified by:
getName in interface CampusEbo
Returns:
name for Campus.

setName

public void setName(String name)

getShortName

public String getShortName()
Description copied from interface: CampusEbo
This is the short name for the Campus.

It is a shorter name for a campus.

Specified by:
getShortName in interface CampusContract
Specified by:
getShortName in interface CampusEbo
Returns:
short name for Campus.

setShortName

public void setShortName(String shortName)

getCampusTypeCode

public String getCampusTypeCode()

setCampusTypeCode

public void setCampusTypeCode(String campusTypeCode)

isActive

public boolean isActive()
Description copied from interface: CampusEbo
The active indicator for an object.

Specified by:
isActive in interface Inactivatable
Specified by:
isActive in interface CampusEbo
Returns:
true if active false if not.

setActive

public void setActive(boolean active)
Description copied from interface: CampusEbo
Sets the record to active or inactive.

Specified by:
setActive in interface MutableInactivatable
Specified by:
setActive in interface CampusEbo

getCampusType

public CampusTypeBo getCampusType()
Description copied from interface: CampusEbo
This is the campus type for the Campus.

It is a object that defines the type of a campus.

Specified by:
getCampusType in interface CampusContract
Specified by:
getCampusType in interface CampusEbo
Returns:
short name for Campus.

setCampusType

public void setCampusType(CampusTypeBo campusType)

to

public static Campus to(CampusBo bo)
Converts a mutable bo to its immutable counterpart

Parameters:
bo - the mutable business object
Returns:
the immutable object

from

public static CampusBo from(Campus im)
Converts a immutable object to its mutable counterpart

Parameters:
im - immutable object
Returns:
the mutable bo


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.