org.lexevs.dao.database.lazyload
Class LazyLoadableEntity

java.lang.Object
  extended by org.mayo.edu.lgModel.LexGridBase
      extended by org.LexGrid.commonTypes.Versionable
          extended by org.LexGrid.commonTypes.VersionableAndDescribable
              extended by org.LexGrid.concepts.Entity
                  extended by org.LexGrid.relations.AssociationEntity
                      extended by org.lexevs.dao.database.lazyload.LazyLoadableEntity
All Implemented Interfaces:
java.io.Serializable

public class LazyLoadableEntity
extends AssociationEntity

The Class LazyLoadableEntity.

Author:
Kevin Peterson
See Also:
Serialized Form

Constructor Summary
LazyLoadableEntity()
           
 
Method Summary
protected  void doHydrate()
          Do hydrate.
 java.lang.String getCodingSchemeId()
          Gets the coding scheme id.
 Definition[] getDefinition()
          Method getDefinition.Returns the contents of the collection in an Array.
 int getDefinitionCount()
          Method getDefinitionCount.
 java.lang.String getEntityId()
          Gets the entity id.
 Presentation[] getPresentation()
          Method getPresentation.Returns the contents of the collection in an Array.
 PropertyDao getPropertyDao()
          Gets the property dao.
protected  void hydrate()
          Hydrate.
 void setEntityId(java.lang.String entityId)
          Sets the entity id.
 void setPropertyDao(PropertyDao propertyDao)
          Sets the property dao.
 
Methods inherited from class org.LexGrid.relations.AssociationEntity
getForwardName, getIsNavigable, getIsTransitive, getReverseName, isIsNavigable, isIsTransitive, isValid, marshal, marshal, setForwardName, setIsNavigable, setIsTransitive, setReverseName, unmarshalAssociationEntity, validate
 
Methods inherited from class org.LexGrid.concepts.Entity
addAnyProperties, addAnyProperty, addComment, addComment, addDefinition, addDefinition, addEntityType, addEntityType, addPresentation, addPresentation, addProperty, addProperty, addPropertyLink, addPropertyLink, enumerateComment, enumerateDefinition, enumerateEntityType, enumeratePresentation, enumerateProperty, enumeratePropertyLink, getAllProperties, getComment, getComment, getCommentAsReference, getCommentCount, getDefinition, getDefinitionAsReference, getEntityCode, getEntityCodeNamespace, getEntityType, getEntityType, getEntityTypeAsReference, getEntityTypeCount, getIsAnonymous, getIsDefined, getPresentation, getPresentationAsReference, getPresentationCount, getProperty, getProperty, getPropertyAsReference, getPropertyCount, getPropertyLink, getPropertyLink, getPropertyLinkAsReference, getPropertyLinkCount, isIsAnonymous, isIsDefined, iterateComment, iterateDefinition, iterateEntityType, iteratePresentation, iterateProperty, iteratePropertyLink, removeAllComment, removeAllDefinition, removeAllEntityType, removeAllPresentation, removeAllProperty, removeAllPropertyLink, removeComment, removeCommentAt, removeDefinition, removeDefinitionAt, removeEntityType, removeEntityTypeAt, removePresentation, removePresentationAt, removeProperty, removePropertyAt, removePropertyLink, removePropertyLinkAt, setComment, setComment, setComment, setCommentAsReference, setDefinition, setDefinition, setDefinition, setDefinitionAsReference, setEntityCode, setEntityCodeNamespace, setEntityType, setEntityType, setEntityType, setEntityTypeAsReference, setIsAnonymous, setIsDefined, setPresentation, setPresentation, setPresentation, setPresentationAsReference, setProperty, setProperty, setProperty, setPropertyAsReference, setPropertyLink, setPropertyLink, setPropertyLink, setPropertyLinkAsReference, unmarshalEntity
 
Methods inherited from class org.LexGrid.commonTypes.VersionableAndDescribable
getEntityDescription, setEntityDescription, unmarshalVersionableAndDescribable
 
Methods inherited from class org.LexGrid.commonTypes.Versionable
getEffectiveDate, getEntryState, getExpirationDate, getIsActive, getOwner, getStatus, isIsActive, setEffectiveDate, setEntryState, setExpirationDate, setIsActive, setOwner, setStatus, unmarshalVersionable
 
Methods inherited from class org.mayo.edu.lgModel.LexGridBase
getParent, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LazyLoadableEntity

public LazyLoadableEntity()
Method Detail

getPresentation

public Presentation[] getPresentation()
Description copied from class: Entity
Method getPresentation.Returns the contents of the collection in an Array.

Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.

Overrides:
getPresentation in class Entity
Returns:
this collection as an Array

getDefinition

public Definition[] getDefinition()
Description copied from class: Entity
Method getDefinition.Returns the contents of the collection in an Array.

Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.

Overrides:
getDefinition in class Entity
Returns:
this collection as an Array

getDefinitionCount

public int getDefinitionCount()
Description copied from class: Entity
Method getDefinitionCount.

Overrides:
getDefinitionCount in class Entity
Returns:
the size of this collection

hydrate

protected void hydrate()
Hydrate.


doHydrate

protected void doHydrate()
Do hydrate.


getEntityId

public java.lang.String getEntityId()
Gets the entity id.

Returns:
the entity id

setEntityId

public void setEntityId(java.lang.String entityId)
Sets the entity id.

Parameters:
entityId - the new entity id

getCodingSchemeId

public java.lang.String getCodingSchemeId()
Gets the coding scheme id.

Returns:
the coding scheme id

getPropertyDao

public PropertyDao getPropertyDao()
Gets the property dao.

Returns:
the property dao

setPropertyDao

public void setPropertyDao(PropertyDao propertyDao)
Sets the property dao.

Parameters:
propertyDao - the new property dao

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.