BrightSide Workbench Full Report + Source Code
org.turro.attach.zul.navigator.FolderData Class Reference

Public Member Functions

 FolderData (String path)
 
long getSize ()
 
long getVersionedSize ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 27 of file FolderData.java.

Constructor & Destructor Documentation

◆ FolderData()

org.turro.attach.zul.navigator.FolderData.FolderData ( String  path)

Definition at line 31 of file FolderData.java.

31  {
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 " +
42  ")",
43  new Object[] {path + "/%", path});
44  }
Here is the call graph for this function:

Member Function Documentation

◆ getSize()

long org.turro.attach.zul.navigator.FolderData.getSize ( )

Definition at line 46 of file FolderData.java.

46  {
47  return size == null ? 0 : size;
48  }

◆ getVersionedSize()

long org.turro.attach.zul.navigator.FolderData.getVersionedSize ( )

Definition at line 50 of file FolderData.java.

50  {
51  return versionedSize == null ? 0 : versionedSize;
52  }

The documentation for this class was generated from the following file: