public class LogbookManager extends Object
| Modifier and Type | Method and Description |
|---|---|
static Logbook |
create(String name,
String owner)
Creates a logbook in the database.
|
static Logbooks |
findAll()
Returns the list of logbooks in the database.
|
static Logbook |
findLogbook(String name)
XXX: The biggest bottom neck here is that if the logbook contains more than 1000 logs, the merge times goes up
exponentially, to prevent this, lets get a logbook without logs, removing the botton neck.
|
static Logbook |
findLogbookOld(String name)
Deprecated.
|
static void |
remove(String name)
Remove a logbook (mark as Inactive).
|
public static Logbooks findAll() throws OlogException
OlogException - wrapping an SQLException@Deprecated public static Logbook findLogbookOld(String name) throws OlogException
OlogException - wrapping an SQLExceptionpublic static Logbook findLogbook(String name) throws OlogException
OlogException - wrapping an SQLExceptionpublic static Logbook create(String name, String owner) throws OlogException
name - name of logbookowner - owner of logbookOlogException - wrapping an SQLExceptionpublic static void remove(String name) throws OlogException
name - logbook nameOlogExceptionCopyright © 2010-2014 Michigan State University. All Rights Reserved.