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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidallocateSlot(String slotId, String uploader, String domain, String res, String filename, Long filesize, String contentType, ResultSet[] data) static voiddomainSlotsQuery(String domain, String afterId, Integer maxLimit, ResultSet[] data) static voidstatic voidlistExpiredSlots(String domain, Timestamp ts, Integer max, ResultSet[] data) static voidremoveExpiredSlots(String domain, Timestamp ts, Integer max) static voidremoveSlot(String slotId) static voidupdateSlot(String slotId) static voidusedSpaceCountForDomain(String domain, ResultSet[] data) static voidusedSpaceCountForUser(String jid, ResultSet[] data) static voiduserSlotsQuery(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
-