Package tigase.http.upload.db.derby
Class StoredProcedures
java.lang.Object
tigase.http.upload.db.derby.StoredProcedures
Created by andrzej on 10.08.2016.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
allocateSlot
(String slotId, String uploader, String domain, String res, String filename, Long filesize, String contentType, ResultSet[] data) static void
domainSlotsQuery
(String domain, String afterId, Integer maxLimit, ResultSet[] data) static void
static void
listExpiredSlots
(String domain, Timestamp ts, Integer max, ResultSet[] data) static void
removeExpiredSlots
(String domain, Timestamp ts, Integer max) static void
removeSlot
(String slotId) static void
updateSlot
(String slotId) static void
usedSpaceCountForDomain
(String domain, ResultSet[] data) static void
usedSpaceCountForUser
(String jid, ResultSet[] data) static void
userSlotsQuery
(String jid, String afterId, Integer maxLimit, ResultSet[] data)
-
Constructor Details
-
StoredProcedures
public StoredProcedures()
-
-
Method Details
-
allocateSlot
public static void allocateSlot(String slotId, String uploader, String domain, String res, String filename, Long filesize, String contentType, ResultSet[] data) throws SQLException - Throws:
SQLException
-
getSlot
- Throws:
SQLException
-
listExpiredSlots
public static void listExpiredSlots(String domain, Timestamp ts, Integer max, ResultSet[] data) throws SQLException - Throws:
SQLException
-
removeExpiredSlots
- Throws:
SQLException
-
updateSlot
- Throws:
SQLException
-
usedSpaceCountForUser
- Throws:
SQLException
-
usedSpaceCountForDomain
- Throws:
SQLException
-
userSlotsQuery
public static void userSlotsQuery(String jid, String afterId, Integer maxLimit, ResultSet[] data) throws SQLException - Throws:
SQLException
-
domainSlotsQuery
public static void domainSlotsQuery(String domain, String afterId, Integer maxLimit, ResultSet[] data) throws SQLException - Throws:
SQLException
-
removeSlot
- Throws:
SQLException
-