@Entity public class EntityExternalIdentifierBo extends DataObjectBase implements EntityExternalIdentifierContract
objectId, versionNumber
Constructor and Description |
---|
EntityExternalIdentifierBo() |
Modifier and Type | Method and Description |
---|---|
protected String |
decryptedExternalId() |
protected void |
decryptExternalId() |
protected void |
encryptExternalId() |
protected void |
evaluateExternalIdentifierType() |
static EntityExternalIdentifierBo |
from(EntityExternalIdentifier immutable)
Creates a EntityExternalIdentifierBo business object from an immutable representation of a
EntityExternalIdentifier.
|
String |
getEntityId()
Gets this id of the parent identity object.
|
String |
getExternalId()
Gets this
EntityExternalIdentifierContract 's external id. |
EntityExternalIdentifierTypeBo |
getExternalIdentifierType()
Gets this
EntityExternalIdentifierContract 's type. |
String |
getExternalIdentifierTypeCode()
Gets this
EntityExternalIdentifierContract 's type code. |
String |
getId()
The unique identifier for an object.
|
protected void |
prePersist()
Default implementation of the JPA
PrePersist hook which generates the unique objectId for this
persistable business object if it does not already have one. |
protected void |
preUpdate()
Default implementation of the JPA
PreUpdate hook which generates the unique objectId for this
persistable business object if it does not already have one. |
void |
setEntityId(String entityId) |
void |
setExternalId(String externalId) |
void |
setExternalIdentifierType(EntityExternalIdentifierTypeBo externalIdentifierType) |
void |
setExternalIdentifierTypeCode(String externalIdentifierTypeCode) |
void |
setId(String id) |
static EntityExternalIdentifier |
to(EntityExternalIdentifierBo bo) |
generateAndSetObjectIdIfNeeded, getExtensionObject, getObjectId, getVersionNumber, setExtensionObject, setObjectId, setVersionNumber, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getVersionNumber
getObjectId
public EntityExternalIdentifierBo()
public static EntityExternalIdentifier to(EntityExternalIdentifierBo bo)
public static EntityExternalIdentifierBo from(EntityExternalIdentifier immutable)
immutable
- immutable EntityExternalIdentifierprotected void prePersist()
DataObjectBase
PrePersist
hook which generates the unique objectId for this
persistable business object if it does not already have one. Any sub-class which overrides this method
should take care to invoke super.prePersist to ensure that the objectId for this persistable
business object is generated properly.
This method is currently invoked by the corresponding OJB #beforeInsert(PersistenceBroker)
hook.
prePersist
in class DataObjectBase
protected void preUpdate()
DataObjectBase
PreUpdate
hook which generates the unique objectId for this
persistable business object if it does not already have one. Any sub-class which overrides this method
should take care to invoke super.preUpdate to ensure that the objectId for this persistable
business object is generated properly.
This method is currently invoked by the corresponding OJB #beforeUpdate(PersistenceBroker)
hook.
preUpdate
in class DataObjectBase
protected void encryptExternalId()
protected void decryptExternalId()
protected void evaluateExternalIdentifierType()
protected String decryptedExternalId()
public void setExternalId(String externalId)
public void setExternalIdentifierTypeCode(String externalIdentifierTypeCode)
public void setExternalIdentifierType(EntityExternalIdentifierTypeBo externalIdentifierType)
public EntityExternalIdentifierTypeBo getExternalIdentifierType()
EntityExternalIdentifierContract
EntityExternalIdentifierContract
's type.getExternalIdentifierType
in interface EntityExternalIdentifierContract
EntityExternalIdentifierContract
, or null if none has been assigned.public String getExternalId()
EntityExternalIdentifierContract
EntityExternalIdentifierContract
's external id.getExternalId
in interface EntityExternalIdentifierContract
EntityExternalIdentifierContract
, or null if none has been assigned.public String getId()
Identifiable
getId
in interface Identifiable
public String getEntityId()
EntityExternalIdentifierContract
getEntityId
in interface EntityExternalIdentifierContract
EntityEmailContract
public void setEntityId(String entityId)
public String getExternalIdentifierTypeCode()
EntityExternalIdentifierContract
EntityExternalIdentifierContract
's type code.getExternalIdentifierTypeCode
in interface EntityExternalIdentifierContract
EntityExternalIdentifierContract
, or null if none has been assigned.Copyright © 2005–2015 The Kuali Foundation. All rights reserved.