public class DFolder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
log
Used for logging.
|
Constructor and Description |
---|
DFolder() |
Modifier and Type | Method and Description |
---|---|
static void |
deleteFolder(int folderID)
Deletes a folder from the database.
|
static java.sql.ResultSet |
getChildFolders(int parentFolderID)
Gets child folders for a folder.
|
static java.sql.ResultSet |
getTopLevelFolders()
Gets all top-level folders (those that have no parent folder).
|
static int |
setFolder(int folderID,
java.lang.String name,
int parentFolderID)
Saves a folder to the database.
|
public static int setFolder(int folderID, java.lang.String name, int parentFolderID)
folderID
- The existing database ID of the folder.name
- The name of the folder.parentFolderID
- The database ID of this folder's parent folder.public static java.sql.ResultSet getTopLevelFolders()
ResultSet
pointing to the folders.public static java.sql.ResultSet getChildFolders(int parentFolderID)
parentFolderID
- The ID of the parent folder.ResultSet
pointing to the folders.public static void deleteFolder(int folderID)
folderID
- The ID of the folder.