public class AssociationDAO extends SQLDAO
Constructor and Description |
---|
AssociationDAO() |
Modifier and Type | Method and Description |
---|---|
void |
associate(java.util.Collection<? extends Media> mediaList) |
void |
deassociate(java.lang.String guid,
java.lang.String mediaObjectId)
GUID and/or mediaObjectId must be given.
|
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
getAssociationsForGUIDs(java.util.Collection<java.lang.String> guids) |
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
getAssociationsForMediaObjectIds(java.util.Collection<java.lang.String> mediaObjectIds) |
getTransactionTemplate, setDataSource, setTnxManager
public AssociationDAO()
public void associate(java.util.Collection<? extends Media> mediaList)
mediaList
- public void deassociate(java.lang.String guid, java.lang.String mediaObjectId)
guid
- if null, the associations between the given mediaObjectId and ANY GUID will be removedmediaObjectId
- if null, the associations between the given GUID and ANY mediaObjectId will be removedpublic java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getAssociationsForGUIDs(java.util.Collection<java.lang.String> guids)
guids
- public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getAssociationsForMediaObjectIds(java.util.Collection<java.lang.String> mediaObjectIds)
mediaObjectIds
- Copyright © 2015 Tampere University of Technology, Pori Department.