org.lexevs.dao.database.access.property
Interface PropertyDao

All Superinterfaces:
LexGridSchemaVersionAwareDao
All Known Implementing Classes:
IbatisPropertyDao

public interface PropertyDao
extends LexGridSchemaVersionAwareDao

The Interface PropertyDao.

Author:
Kevin Peterson

Nested Class Summary
static class PropertyDao.PropertyType
          The Enum PropertyType.
 
Nested classes/interfaces inherited from interface org.lexevs.dao.database.access.LexGridSchemaVersionAwareDao
LexGridSchemaVersionAwareDao.IndividualDaoCallback<T>
 
Method Summary
 void deleteAllCodingSchemePropertiesOfCodingScheme(java.lang.String codingSchemeUId)
          Delete all coding scheme properties of coding scheme.
 void deleteAllEntityPropertiesOfCodingScheme(java.lang.String codingSchemeUId)
          Delete all entity properties of coding scheme.
 void deleteAllPropertiesOfParent(java.lang.String codingSchemeUId, java.lang.String parentUId, PropertyDao.PropertyType parentType)
          Delete all entity properties of coding scheme.
 void deleteAllRelationPropertiesOfCodingScheme(java.lang.String codingSchemeUId)
          Delete all relation properties of coding scheme.
 boolean entryStateExists(java.lang.String codingSchemeUId, java.lang.String entryStateUId)
           
 java.util.List<java.lang.String> getAllHistoryPropertyUidsOfParentByRevisionId(java.lang.String codingSchemeId, java.lang.String parentId, java.lang.String revisionId)
           
 java.util.List<Property> getAllPropertiesOfParent(java.lang.String codingSchemeId, java.lang.String parentId, PropertyDao.PropertyType type)
          Gets the all properties of parent.
 java.lang.String getEntryStateUId(java.lang.String codingSchemeUId, java.lang.String propertyUId)
           
 Property getHistoryPropertyByRevisionId(java.lang.String codingSchemeId, java.lang.String propertyUid, java.lang.String revisionId)
           
 java.lang.String getLatestRevision(java.lang.String csUId, java.lang.String propertyUId)
           
 java.util.List<Property> getPropertiesOfParents(java.lang.String codingSchemeId, java.util.List<java.lang.String> parentUids)
           
 java.util.List<Property> getPropertiesOfParents(java.lang.String codingSchemeId, java.util.List<java.lang.String> propertyNames, java.util.List<java.lang.String> propertyTypes, java.util.List<java.lang.String> parentUids)
           
 Property getPropertyByUid(java.lang.String codingSchemeId, java.lang.String propertyUid)
           
 java.lang.String getPropertyUIdByPropertyIdAndName(java.lang.String codingSchemeUId, java.lang.String referenceUId, java.lang.String propertyId, java.lang.String propertyName)
           
 void insertBatchProperties(java.lang.String codingSchemeId, PropertyDao.PropertyType type, java.util.List<PropertyBatchInsertItem> batch)
          Insert batch properties.
 java.lang.String insertHistoryProperty(java.lang.String codingSchemeUId, java.lang.String propertyUId, Property property)
          insert property data into history.
 java.lang.String insertProperty(java.lang.String codingSchemeUId, java.lang.String parentUId, PropertyDao.PropertyType type, Property property)
          Insert property.
 void insertPropertyLink(java.lang.String codingSchemeUId, java.lang.String parentUId, PropertyLink propertyLink)
          Insert property link.
 void insertPropertyQualifier(java.lang.String codingSchemeId, java.lang.String propertyId, PropertyQualifier qualifier)
          Insert property qualifier.
 void insertPropertySource(java.lang.String codingSchemeId, java.lang.String propertyId, Source source)
          Insert property source.
 void insertPropertyUsageContext(java.lang.String codingSchemeId, java.lang.String propertyId, java.lang.String usageContext)
          Insert property usage context.
 void removePropertyByUId(java.lang.String codingSchemeUId, java.lang.String propertyUId)
           
 java.lang.String updateProperty(java.lang.String codingSchemeUId, java.lang.String parentUId, java.lang.String propertyUId, PropertyDao.PropertyType type, Property property)
          Update property.
 java.lang.String updatePropertyVersionableAttrib(java.lang.String codingSchemeUId, java.lang.String propertyUId, Property property)
           
 
Methods inherited from interface org.lexevs.dao.database.access.LexGridSchemaVersionAwareDao
executeInTransaction, supportsLgSchemaVersion
 

Method Detail

getAllPropertiesOfParent

java.util.List<Property> getAllPropertiesOfParent(java.lang.String codingSchemeId,
                                                  java.lang.String parentId,
                                                  PropertyDao.PropertyType type)
Gets the all properties of parent.

Parameters:
codingSchemeId - the coding scheme id
parentId - the parent id
type - the type
Returns:
the all properties of parent

getAllHistoryPropertyUidsOfParentByRevisionId

java.util.List<java.lang.String> getAllHistoryPropertyUidsOfParentByRevisionId(java.lang.String codingSchemeId,
                                                                               java.lang.String parentId,
                                                                               java.lang.String revisionId)

getHistoryPropertyByRevisionId

Property getHistoryPropertyByRevisionId(java.lang.String codingSchemeId,
                                        java.lang.String propertyUid,
                                        java.lang.String revisionId)

getPropertiesOfParents

java.util.List<Property> getPropertiesOfParents(java.lang.String codingSchemeId,
                                                java.util.List<java.lang.String> parentUids)

getPropertiesOfParents

java.util.List<Property> getPropertiesOfParents(java.lang.String codingSchemeId,
                                                java.util.List<java.lang.String> propertyNames,
                                                java.util.List<java.lang.String> propertyTypes,
                                                java.util.List<java.lang.String> parentUids)

getPropertyByUid

Property getPropertyByUid(java.lang.String codingSchemeId,
                          java.lang.String propertyUid)

insertPropertyQualifier

void insertPropertyQualifier(java.lang.String codingSchemeId,
                             java.lang.String propertyId,
                             PropertyQualifier qualifier)
Insert property qualifier.

Parameters:
codingSchemeId - the coding scheme id
propertyId - the property id
qualifier - the qualifier

insertProperty

java.lang.String insertProperty(java.lang.String codingSchemeUId,
                                java.lang.String parentUId,
                                PropertyDao.PropertyType type,
                                Property property)
Insert property.

Parameters:
codingSchemeUId - the coding scheme id
parentUId - the parent id
type - the type
property - the property
Returns:
the string

insertHistoryProperty

java.lang.String insertHistoryProperty(java.lang.String codingSchemeUId,
                                       java.lang.String propertyUId,
                                       Property property)
insert property data into history.

Parameters:
codingSchemeUId -
propertyUId -
type -
property -
Returns:

insertPropertySource

void insertPropertySource(java.lang.String codingSchemeId,
                          java.lang.String propertyId,
                          Source source)
Insert property source.

Parameters:
codingSchemeId - the coding scheme id
propertyId - the property id
source - the source

insertPropertyUsageContext

void insertPropertyUsageContext(java.lang.String codingSchemeId,
                                java.lang.String propertyId,
                                java.lang.String usageContext)
Insert property usage context.

Parameters:
codingSchemeId - the coding scheme id
propertyId - the property id
usageContext - the usage context

deleteAllCodingSchemePropertiesOfCodingScheme

void deleteAllCodingSchemePropertiesOfCodingScheme(java.lang.String codingSchemeUId)
Delete all coding scheme properties of coding scheme.

Parameters:
codingSchemeUId - the coding scheme id.

deleteAllEntityPropertiesOfCodingScheme

void deleteAllEntityPropertiesOfCodingScheme(java.lang.String codingSchemeUId)
Delete all entity properties of coding scheme.

Parameters:
codingSchemeUId - the coding scheme id

deleteAllRelationPropertiesOfCodingScheme

void deleteAllRelationPropertiesOfCodingScheme(java.lang.String codingSchemeUId)
Delete all relation properties of coding scheme.

Parameters:
codingSchemeUId - the coding scheme id

deleteAllPropertiesOfParent

void deleteAllPropertiesOfParent(java.lang.String codingSchemeUId,
                                 java.lang.String parentUId,
                                 PropertyDao.PropertyType parentType)
Delete all entity properties of coding scheme.

Parameters:
codingSchemeUId - the coding scheme uid.
parentUId - the parent uid.
parentType - the parent type

insertBatchProperties

void insertBatchProperties(java.lang.String codingSchemeId,
                           PropertyDao.PropertyType type,
                           java.util.List<PropertyBatchInsertItem> batch)
Insert batch properties.

Parameters:
codingSchemeId - the coding scheme id
type - the type
batch - the batch

insertPropertyLink

void insertPropertyLink(java.lang.String codingSchemeUId,
                        java.lang.String parentUId,
                        PropertyLink propertyLink)
Insert property link.

Parameters:
codingSchemeUId - the coding scheme id
propertyId - the property id
propertyLink - the property link

updateProperty

java.lang.String updateProperty(java.lang.String codingSchemeUId,
                                java.lang.String parentUId,
                                java.lang.String propertyUId,
                                PropertyDao.PropertyType type,
                                Property property)
Update property.

Parameters:
codingSchemeUId - the coding scheme id
parentUId - the parent id
propertyUId - the property id
type - the type
property - the property

updatePropertyVersionableAttrib

java.lang.String updatePropertyVersionableAttrib(java.lang.String codingSchemeUId,
                                                 java.lang.String propertyUId,
                                                 Property property)

entryStateExists

boolean entryStateExists(java.lang.String codingSchemeUId,
                         java.lang.String entryStateUId)

getPropertyUIdByPropertyIdAndName

java.lang.String getPropertyUIdByPropertyIdAndName(java.lang.String codingSchemeUId,
                                                   java.lang.String referenceUId,
                                                   java.lang.String propertyId,
                                                   java.lang.String propertyName)

removePropertyByUId

void removePropertyByUId(java.lang.String codingSchemeUId,
                         java.lang.String propertyUId)

getLatestRevision

java.lang.String getLatestRevision(java.lang.String csUId,
                                   java.lang.String propertyUId)

getEntryStateUId

java.lang.String getEntryStateUId(java.lang.String codingSchemeUId,
                                  java.lang.String propertyUId)

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.