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,Inactivatable,MutableInactivatable,Coded,GloballyUnique,Versioned,ModelObjectBasic,BusinessObject,KualiCode,PersistableBusinessObject
@MappedSuperclass
public class KualiCodeBase
extends PersistableBusinessObjectBase
implements 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
-
setCode
-
getName
-
setName
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceInactivatable- Returns:
- Getter for the active field.
-
setActive
public void setActive(boolean a) - Specified by:
setActivein interfaceMutableInactivatable- 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.
-