Package com.avoka.fc.core.dao
Class VersionAttachmentDao
- java.lang.Object
-
- com.avoka.core.dao.BaseDao
-
- com.avoka.fc.core.dao.AbstractDao
-
- com.avoka.fc.core.dao.VersionAttachmentDao
-
public class VersionAttachmentDao extends AbstractDao
Provides a template VersionAttachment data access object.
-
-
Field Summary
-
Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
-
Constructor Summary
Constructors Constructor Description VersionAttachmentDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<VersionAttachment>
getCachedVersionAttachments(TemplateVersion version)
Return the version attachment list for the given form version.List<VersionAttachment>
getTemplateVersionAttachments(Object templateVersionId)
Return the version attachment list for the given template version.VersionAttachment
getVersionAttachmentByName(TemplateVersion templateVersion, String name)
Return the version attachment for the given form version and attachment name.VersionAttachment
getVersionAttachmentForPK(Object id)
Return the version attachment for the specified primary key.List<VersionAttachment>
getVersionAttachments(TemplateVersion version)
Return the version attachment list for the given form version.-
Methods inherited from class com.avoka.fc.core.dao.AbstractDao
andFilterClientExcludeNull, andFilterClientIncludeNull, andFilterClientOnly, isClientAccessAllowed, performQueryConfigCached
-
Methods inherited from class com.avoka.core.dao.BaseDao
addOrdering, addOrderingCaseInsensitive, addOrderingCaseSensitive, andQueryBetween, andQueryInExp, andQueryInExp, andQueryLikeIgnoreCaseExp, andQueryMatchDbExp, andQueryMatchExp, andQueryMatchIsNotNull, andQueryMatchIsNull, andQueryNoMatchExp, andQueryNotTrue, deleteObject, deleteObjects, findObject, getDataContext, getFetchLimit, getLogger, getObjectForPK, newObject, orQueryLikeIgnoreCaseExp, orQueryMatchExp, performNamedQuery, performNamedQuery, performNamedQuery, performNamedQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performQuery, performQuery, performQuery, registerNewObject, setCacheStrategy, setFetchLimit, setLocalCacheStrategy, setLocalCacheStrategy, setSharedCacheStrategy, toMap, toMap
-
-
-
-
Method Detail
-
getVersionAttachmentForPK
public VersionAttachment getVersionAttachmentForPK(Object id)
Return the version attachment for the specified primary key.- Parameters:
id
- the version attachment PK- Returns:
- the version attachment
-
getTemplateVersionAttachments
public List<VersionAttachment> getTemplateVersionAttachments(Object templateVersionId)
Return the version attachment list for the given template version.- Parameters:
templateVersionId
- the template version id- Returns:
- the list of version attachments
-
getCachedVersionAttachments
public List<VersionAttachment> getCachedVersionAttachments(TemplateVersion version)
Return the version attachment list for the given form version.- Parameters:
version
- the template version- Returns:
- the list of version attachments
- Since:
- 5.1.0
-
getVersionAttachments
public List<VersionAttachment> getVersionAttachments(TemplateVersion version)
Return the version attachment list for the given form version.- Parameters:
version
- the template version- Returns:
- the list of version attachments
-
getVersionAttachmentByName
public VersionAttachment getVersionAttachmentByName(TemplateVersion templateVersion, String name)
Return the version attachment for the given form version and attachment name.- Parameters:
templateVersion
- the form template versionname
- the version attachment name- Returns:
- the version attachment for the given form version and attachment name
- Since:
- 3.6.0
-
-