| java.lang.Object org.sakaiproject.metaobj.shared.model.IdentifiableObject
All known Subclasses: org.theospi.portfolio.wizard.model.CompletedWizardCategory, org.theospi.portfolio.matrix.model.AbstractLabel, org.theospi.portfolio.guidance.model.GuidanceItemAttachment, org.theospi.portfolio.guidance.model.Guidance, org.theospi.portfolio.matrix.model.WizardPage, org.theospi.portfolio.wizard.model.WizardStyleItem, org.theospi.portfolio.matrix.model.WizardPageForm, org.theospi.portfolio.presentation.model.PresentationTemplate, org.theospi.portfolio.style.model.Style, org.theospi.portfolio.review.model.Review, org.theospi.portfolio.guidance.model.GuidanceItem, org.theospi.portfolio.presentation.model.PresentationItem, org.theospi.portfolio.presentation.model.PresentationPageRegion, org.theospi.portfolio.matrix.model.ScaffoldingCell, org.theospi.portfolio.presentation.model.Presentation, org.theospi.portfolio.matrix.model.Cell, org.theospi.portfolio.wizard.model.WizardCategory, org.theospi.portfolio.matrix.model.Matrix, org.theospi.portfolio.wizard.model.CompletedWizard, org.theospi.portfolio.matrix.model.Scaffolding, org.theospi.portfolio.presentation.model.TemplateFileRef, org.sakaiproject.metaobj.shared.model.SchemaFile, org.theospi.portfolio.portal.model.ToolType, org.theospi.portfolio.presentation.model.PresentationLog, org.sakaiproject.metaobj.shared.model.StructuredArtifactDefinitionBean, org.sakaiproject.metaobj.security.impl.sakai.AgentWrapper, org.theospi.portfolio.shared.model.ObjectWithWorkflow, org.theospi.portfolio.presentation.model.PresentationPage, org.theospi.portfolio.presentation.model.PresentationComment, org.theospi.portfolio.presentation.model.PresentationLayout, org.theospi.portfolio.presentation.model.PresentationPageItem, org.theospi.portfolio.matrix.model.Attachment, org.theospi.portfolio.workflow.model.Workflow, org.theospi.portfolio.wizard.model.CompletedWizardPage, org.theospi.portfolio.workflow.model.WorkflowItem, org.theospi.portfolio.portal.model.ToolCategory, org.theospi.portfolio.portal.model.SiteType, org.theospi.portfolio.wizard.model.WizardPageSequence, org.theospi.portfolio.presentation.model.PresentationItemDefinition,
IdentifiableObject | abstract public class IdentifiableObject (Code) | | any derived class should use the generator in the hibernate xml definitian:
org.sakaiproject.metaobj.shared.IdentifiableIdGenerator
This way the newId field will be supported when creating
new objects with predetermined ids.
User: jbush
Date: May 15, 2004
Time: 1:55:47 PM
To change this template use File | Settings | File Templates.
|
Field Summary | |
final protected Log | logger |
Method Summary | |
public boolean | equals(Object in) | public Id | getId() returns the id of the object stored in the database. | public Id | getNewId() If this object is new and we want it to have a specific id then this is set before
the object is saved. | public Id | getVirtualId() this returns the effective id. | public int | hashCode() | public void | setId(Id id) sets the id of the object. | public void | setNewId(Id newId) if create an identifiable object with a specific id, then this is what you set. |
logger | final protected Log logger(Code) | | |
getId | public Id getId()(Code) | | returns the id of the object stored in the database. if the object is new and hasn't
been saved to the database then it may have an id... check getNewId.
Id |
getNewId | public Id getNewId()(Code) | | If this object is new and we want it to have a specific id then this is set before
the object is saved.
Id |
getVirtualId | public Id getVirtualId()(Code) | | this returns the effective id. First it checks for the real id,
then if it's not good then it returns the newId.
Id |
hashCode | public int hashCode()(Code) | | |
setId | public void setId(Id id)(Code) | | sets the id of the object. If the object is new then this parameter will be ignored
and a new id will be generated. Use setNewId to set the id of a new object.
Parameters: id - |
setNewId | public void setNewId(Id newId)(Code) | | if create an identifiable object with a specific id, then this is what you set.
The id generator won't create a new id but will use this field as the id
Parameters: newId - |
|
|