@MappedSuperclass public class KualiCodeBase extends PersistableBusinessObjectBase implements KualiCode
Modifier and Type | Field and Description |
---|---|
protected boolean |
active |
protected String |
code |
protected String |
name |
extension, 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, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postLoad, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber
toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
toString
public KualiCodeBase()
public KualiCodeBase(String code)
public String getCode()
Coded
public boolean isActive()
Inactivatable
isActive
in interface Inactivatable
public void setActive(boolean a)
MutableInactivatable
setActive
in interface MutableInactivatable
name
- - Setter for the active field.public String getCodeAndDescription()
public static String getCodeAndDescription(String code, String desc)
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.