public class ReportDAO extends Object
Modifier and Type | Method and Description |
---|---|
static long |
create(Report rp)
Create
|
static long |
createFromFile(File repFile,
String name,
boolean active)
Create report from file
|
static void |
delete(long rpId)
Delete
|
static List<Report> |
findAll()
Find by pk
|
static Report |
findByPk(long rpId)
Find by pk
|
static void |
update(Report rp)
Update
|
public static long create(Report rp) throws DatabaseException
DatabaseException
public static long createFromFile(File repFile, String name, boolean active) throws DatabaseException, IOException
DatabaseException
IOException
public static void update(Report rp) throws DatabaseException
DatabaseException
public static void delete(long rpId) throws DatabaseException
DatabaseException
public static Report findByPk(long rpId) throws DatabaseException
DatabaseException
public static List<Report> findAll() throws DatabaseException
DatabaseException
Copyright © 2016. All rights reserved.