gov.nih.nci.caarray.services.vocab
Class VocabUtils
java.lang.Object
gov.nih.nci.caarray.services.vocab.VocabUtils
public class VocabUtils
- extends java.lang.Object
- Author:
- dickersc
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VocabUtils
public VocabUtils()
getVisibleEntries
public static OntologyEntry[] getVisibleEntries(javax.ejb.SessionContext ctx,
OntologyEntry[] entries)
- Parameters:
entries
-
- Returns:
copy
public static void copy(OntologyEntry entry,
VocabData vocab)
- Parameters:
entries
-
copy
public static void copy(OntologyEntry entry,
VocabDesc vocabDesc)
copy
public static void copy(VocabData vocab,
OntologyEntry entry)
- Parameters:
vocabData
-
copy
public static void copy(ActionProtocolTypeMapData source,
ActionProtocolTypeMap target)
copy
public static void copy(ActionProtocolTypeMap source,
ActionProtocolTypeMapData target)
copy
public static void copy(Database source,
DatabaseData target)
copy
public static void copy(DatabaseData source,
Database target)
syncVocabUnitTypeAndUnitName
public static void syncVocabUnitTypeAndUnitName(UnitData unitData)
throws java.lang.Exception
- Synchronize the specified
UnitData
with the appropriate
controlled vocabularies from the persistence store that represent
its unit type and unit name. If the unit type or name has the ID,
the ID is used to retrieve the controlled vocabularies and set it to the
UnitData
. If the ID is %lt;= 0 and the name attribute
is specified The unit type and unit name may contain
only ID or a value for the name attribute. For unit type, the name
attribute may contain mass, time, etc. For unit name, the name may be kg,
g, mg, etc. for unit type mass or years, days, hours, minutes for time.
- Parameters:
unitData
-
- Throws:
java.lang.Exception