@MappedSuperclass public class KualiCodeBase extends PersistableBusinessObjectBase implements KualiCode
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
active |
protected String |
code |
protected String |
name |
extension, newCollectionRecord, objectId, versionNumber| Constructor and Description |
|---|
KualiCodeBase() |
KualiCodeBase(String code) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Implements equals comparing code to code.
|
String |
getCode()
The code value for this object.
|
String |
getCodeAndDescription() |
static String |
getCodeAndDescription(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.
|
String |
getName() |
int |
hashCode()
Overriding equals requires writing a hashCode method.
|
boolean |
isActive()
The active indicator for an object.
|
void |
setActive(boolean a)
Sets the record to active or inactive.
|
void |
setCode(String code) |
void |
setName(String name) |
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, setVersionNumbertoStringclone, finalize, getClass, notify, notifyAll, wait, wait, waittoStringpublic KualiCodeBase()
public KualiCodeBase(String code)
public String getCode()
Codedpublic boolean isActive()
InactivatableisActive in interface Inactivatablepublic void setActive(boolean a)
MutableInactivatablesetActive in interface MutableInactivatablename - - Setter for the active field.public String getCodeAndDescription()
public static String getCodeAndDescription(String code, String desc)
public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()Copyright © 2005–2016 The Kuali Foundation. All rights reserved.