Package org.kuali.rice.krad.bo
Class KualiCodeBase
java.lang.Object
org.kuali.rice.krad.bo.BusinessObjectBase
org.kuali.rice.krad.bo.PersistableBusinessObjectBase
org.kuali.rice.krad.bo.KualiCodeBase
- All Implemented Interfaces:
Serializable,org.apache.ojb.broker.PersistenceBrokerAware,org.kuali.rice.core.api.mo.common.active.Inactivatable,org.kuali.rice.core.api.mo.common.active.MutableInactivatable,org.kuali.rice.core.api.mo.common.Coded,org.kuali.rice.core.api.mo.common.GloballyUnique,org.kuali.rice.core.api.mo.common.Versioned,org.kuali.rice.core.api.mo.ModelObjectBasic,org.kuali.rice.krad.bo.BusinessObject,org.kuali.rice.krad.bo.KualiCode,PersistableBusinessObject
@MappedSuperclass
public class KualiCodeBase
extends PersistableBusinessObjectBase
implements org.kuali.rice.krad.bo.KualiCode
- See Also:
-
Field Summary
FieldsFields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
extension, newCollectionRecord, objectId, versionNumber -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanImplements equals comparing code to code.getCode()static StringgetCodeAndDescription(String code, String desc) Static helper method to allow other classes to provide consistent "code and description" behavior, even if not extending from this class.getName()inthashCode()Overriding equals requires writing a hashCode method.booleanisActive()voidsetActive(boolean a) voidvoidMethods 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, setVersionNumberMethods inherited from class org.kuali.rice.krad.bo.BusinessObjectBase
toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic
toString
-
Field Details
-
code
-
name
-
active
-
-
Constructor Details
-
KualiCodeBase
public KualiCodeBase() -
KualiCodeBase
-
-
Method Details
-
getCode
- Specified by:
getCodein interfaceorg.kuali.rice.core.api.mo.common.Coded- Returns:
- Getter for the Code.
-
setCode
- Specified by:
setCodein interfaceorg.kuali.rice.krad.bo.KualiCode- Parameters:
code- - Setter for the Code.
-
getName
- Specified by:
getNamein interfaceorg.kuali.rice.krad.bo.KualiCode- Returns:
- Getter for the Name.
-
setName
- Specified by:
setNamein interfaceorg.kuali.rice.krad.bo.KualiCode- Parameters:
name- - Setter for the name.
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceorg.kuali.rice.core.api.mo.common.active.Inactivatable- Returns:
- Getter for the active field.
-
setActive
public void setActive(boolean a) - Specified by:
setActivein interfaceorg.kuali.rice.core.api.mo.common.active.MutableInactivatable- Parameters:
name- - Setter for the active field.
-
getCodeAndDescription
- Returns:
- Returns the code and description in format: xx - xxxxxxxxxxxxxxxx
-
getCodeAndDescription
Static helper method to allow other classes to provide consistent "code and description" behavior, even if not extending from this class. -
equals
Implements equals comparing code to code. -
hashCode
public int hashCode()Overriding equals requires writing a hashCode method.
-