public class TwitterDAO extends SQLDAO
Constructor and Description |
---|
TwitterDAO() |
Modifier and Type | Method and Description |
---|---|
void |
createEntries(java.util.Collection<TwitterPhotoStorage.TwitterEntry> entries) |
java.util.List<TwitterPhotoStorage.TwitterEntry> |
getEntriesByEntityId(java.util.List<java.lang.String> entityIds,
UserIdentity userId) |
java.util.List<TwitterPhotoStorage.TwitterEntry> |
getEntriesByScreenName(java.util.Collection<java.lang.String> screenNames,
UserIdentity userId) |
java.lang.String |
getUrl(java.lang.String guid) |
void |
removeEntries(java.util.Collection<java.lang.String> guids) |
getTransactionTemplate, setDataSource, setTnxManager
public TwitterDAO()
public java.util.List<TwitterPhotoStorage.TwitterEntry> getEntriesByEntityId(java.util.List<java.lang.String> entityIds, UserIdentity userId)
entityIds
- optional list of entity ids used as a filteruserId
- public java.util.List<TwitterPhotoStorage.TwitterEntry> getEntriesByScreenName(java.util.Collection<java.lang.String> screenNames, UserIdentity userId)
screenNames
- optional screen name filter, if null or empty, the filter is ignoreduserId
- public java.lang.String getUrl(java.lang.String guid)
guid
- public void removeEntries(java.util.Collection<java.lang.String> guids)
guids
- public void createEntries(java.util.Collection<TwitterPhotoStorage.TwitterEntry> entries)
entries
- Copyright © 2015 Tampere University of Technology, Pori Department.