- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 27 of file FolderData.java.
◆ FolderData()
org.turro.attach.zul.navigator.FolderData.FolderData |
( |
String |
path | ) |
|
Definition at line 31 of file FolderData.java.
32 Dao dao =
new AttachPU();
33 versionedSize = (Long) dao.getSingleResultOrNull(
34 "select sum(a.fileSize) from Attachment a where a.path like ? or a.path = ?",
35 new Object[] {path +
"/%", path});
36 size = (Long) dao.getSingleResultOrNull(
37 "select sum(a.fileSize) from Attachment a where (a.path like ? or a.path = ?) " +
38 "and a.modification = ( " +
39 "select max(a2.modification) from Attachment a2 " +
40 "where a2.path = a.path " +
41 "and a2.fileName = a.fileName " +
43 new Object[] {path +
"/%", path});
◆ getSize()
long org.turro.attach.zul.navigator.FolderData.getSize |
( |
| ) |
|
◆ getVersionedSize()
long org.turro.attach.zul.navigator.FolderData.getVersionedSize |
( |
| ) |
|
Definition at line 50 of file FolderData.java.
51 return versionedSize ==
null ? 0 : versionedSize;
The documentation for this class was generated from the following file: