|
Holger's Java API |
|||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use DatabaseException | |
|---|---|
| com.antelmann.calendar | This package contains classes for implementing calendar and time related solutions. |
| com.antelmann.imagedb | This package contains classes implementing a database for images. |
| com.antelmann.mgmt | This package contains generally useful classes for business management. |
| com.antelmann.sql | This package contains classes to ease JDBC development. |
| com.antelmann.timeregister | This package contains classes that implement a time register solution for a small business. |
| Uses of DatabaseException in com.antelmann.calendar |
|---|
| Methods in com.antelmann.calendar that throw DatabaseException | |
|---|---|
void |
SQLCalendarDB.close()
|
void |
CalendarDB.close()
|
boolean |
SQLCalendarDB.containsEntry(CalendarEntry entry)
|
boolean |
CalendarDB.containsEntry(CalendarEntry entry)
entry is there if the id corresponds to an entry in the database; the contained data may be different |
boolean |
SQLCalendarDB.deleteEntry(CalendarEntry entry)
deletes the given entry from the database |
boolean |
FileCalendarDB.deleteEntry(CalendarEntry entry)
|
boolean |
CalendarDB.deleteEntry(CalendarEntry entry)
the corresponding entry in regards to the id will be deleted |
Collection<Alert> |
SQLCalendarDB.getActiveAlerts()
|
Collection<Alert> |
FileCalendarDB.getActiveAlerts()
|
Collection<Alert> |
CalendarDB.getActiveAlerts()
returns all active non-acknowledged alerts |
Collection<Alert> |
SQLCalendarDB.getAlerts(Filter<Alert> filter)
|
Collection<Alert> |
FileCalendarDB.getAlerts(Filter<Alert> filter)
|
Collection<Alert> |
CalendarDB.getAlerts(Filter<Alert> filter)
|
Collection<CalendarEntry> |
SQLCalendarDB.getEntries(Filter<CalendarEntry> filter)
|
Collection<CalendarEntry> |
FileCalendarDB.getEntries(Filter<CalendarEntry> filter)
|
Collection<CalendarEntry> |
CalendarDB.getEntries(Filter<CalendarEntry> filter)
|
void |
SQLCalendarDB.insertAlert(Alert alert)
|
void |
FileCalendarDB.insertAlert(Alert alert)
|
void |
CalendarDB.insertAlert(Alert alert)
|
CalendarEntry |
SQLCalendarDB.insertEntry(CalendarEntry entry)
|
CalendarEntry |
FileCalendarDB.insertEntry(CalendarEntry entry)
|
CalendarEntry |
CalendarDB.insertEntry(CalendarEntry entry)
the id of the given entry is ignored; the returned entry will reflect the actual database object |
void |
SQLCalendarDB.updateAlert(Alert alert)
|
void |
FileCalendarDB.updateAlert(Alert alert)
|
void |
CalendarDB.updateAlert(Alert alert)
|
void |
SQLCalendarDB.updateEntry(CalendarEntry entry)
|
void |
CalendarDB.updateEntry(CalendarEntry entry)
|
| Uses of DatabaseException in com.antelmann.imagedb |
|---|
| Methods in com.antelmann.imagedb that throw DatabaseException | |
|---|---|
boolean |
SQLImageDB.contains(ImageHolder ih)
|
boolean |
ImageDB.contains(ImageHolder ih)
determines whether an ImageHolder with the id of the given ImageHolder resides in the database |
boolean |
SQLImageDB.delete(ImageHolder ih)
deletes the given entry from the database completely |
boolean |
ImageDB.delete(ImageHolder ih)
deletes the given ImageHolder from the database; optional operation. |
Collection<ImageHolder> |
SQLImageDB.getImageHolders(Filter<ImageHolder> filter,
ImageHolder.Field... fields)
|
Collection<ImageHolder> |
ImageDB.getImageHolders(Filter<ImageHolder> filter,
ImageHolder.Field... fields)
retrieves a collection of ImageHolder objects; note that the returned ImageHolder objects may not contain more than the ID, initially. |
ImageHolder |
SQLImageDB.insert(ImageHolder ih)
|
ImageHolder |
ImageDB.insert(ImageHolder ih)
inserts the image holder information to the database. |
ImageHolder |
ImageHolder.insertInto(ImageDB db)
inserts the image to the given database. |
int |
SQLImageDB.numberOfImageHolders()
|
int |
ImageDB.numberOfImageHolders()
returns the total number of ImageHolder objects in the database |
void |
ImageHolder.retrieve(ImageDB db)
retrieves all available info on this ImageHolder from the database |
void |
ImageHolder.retrieve(ImageDB db,
ImageHolder.Field... fields)
retrieves only the given fields from the database |
ImageHolder |
SQLImageDB.retrieve(ImageHolder ih,
ImageHolder.Field... field)
|
ImageHolder |
ImageDB.retrieve(ImageHolder ih,
ImageHolder.Field... fields)
loads the specified fields from the database into the given ImageHolder and returns the same. |
void |
ImageHolder.store(ImageDB db)
stores the ImageHolder to the given database. |
void |
SQLImageDB.store(ImageHolder ih,
ImageHolder.Field... field)
|
void |
ImageDB.store(ImageHolder ih,
ImageHolder.Field... fields)
updates the specified ImageHolder fields in the database based on the given object; the entry must exist before calling this method. |
| Uses of DatabaseException in com.antelmann.mgmt |
|---|
| Subclasses of DatabaseException in com.antelmann.mgmt | |
|---|---|
class |
ConnectionException
ConnectionException signals access problems with the database. |
class |
TransactionException
thrown to indicate that the caller doesn't hold the lock on an active DBTransaction while trying to access Resources of the associated Database. |
class |
WrongDataException
WrongDataException signals a consistency problem with the data submitted to the database. |
| Methods in com.antelmann.mgmt that throw DatabaseException | ||
|---|---|---|
void |
DBTransaction.abort()
aborts this transaction |
|
void |
DBTransaction.commit()
commits all data within the transaction scope to the underlying database |
|
boolean |
DBClassStore.contains(T entry)
determines whether the given entry is present in the database; it may be, however, that the database object differs from the given object (but its IDs must be the same) if present. |
|
void |
DBClassStore.delete(T entry)
removes the given entry from the database |
|
|
AbstractDatabase.fetch(Class<T> c,
Filter<T> filter)
|
|
Enumeration<T> |
DBClassStore.fetch(Filter<T> filter)
filter may be null, in which case all entries from are returned. |
|
Object |
DBClassStore.generateNewID()
not every call must necessarily return a new value, but it must return an ID not yet present in the persistent storage. |
|
T |
DBClassStore.getResource(Object id)
returns a Resource based on its ID. |
|
void |
DBClassStore.insert(T entry)
it is suggested to create the entry with an ID obtained through generateNewID() before passing it into
this method. |
|
User |
UserLoginStore.loginUser(String name,
char[] password)
returns the User that corresponds to the credentials provided |
|
static User |
JUserLoginPanel.showDialog(String title,
Component parent,
UserLoginStore uls)
|
|
static User |
JUserLoginPanel.showDialog(String title,
Component parent,
UserLoginStore uls,
Image image,
String borderLayoutOrientation)
on every failed login attempt, the waiting period is extended by one second |
|
int |
DBClassStore.size()
returns the total number of T elements in this store |
|
void |
DBClassStore.update(T entry)
updates the given entry in the database. |
|
| Uses of DatabaseException in com.antelmann.sql |
|---|
| Methods in com.antelmann.sql that throw DatabaseException | |
|---|---|
void |
SQLTransaction.abort()
|
void |
SQLTransaction.commit()
|
boolean |
JDBCRowProxy.contains(T entry)
|
void |
JDBCRowProxy.delete(T entry)
|
AbstractIterator<T> |
JDBCRowProxy.fetch(Filter<T> filter)
if the iteration fails at any point, an IterationException is thrown. |
Object |
ObjectRowMapper.generateNewID()
|
Object |
JDBCRowProxy.generateNewID()
returns a value supplied by the mapper |
T |
JDBCRowProxy.getResource(Object id)
|
void |
JDBCRowProxy.insert(T entry)
|
int |
JDBCRowProxy.size()
|
void |
JDBCRowProxy.update(T entry)
|
| Uses of DatabaseException in com.antelmann.timeregister |
|---|
| Methods in com.antelmann.timeregister that throw DatabaseException | |
|---|---|
void |
SQLPunchDB.delete(Holiday h)
|
void |
PunchDBClient.delete(Holiday h)
|
void |
PunchAdminDB.delete(Holiday h)
|
void |
SQLPunchDB.delete(PunchData entry)
|
void |
PunchDBClient.delete(PunchData entry)
|
void |
PunchAdminDB.delete(PunchData entry)
deletes the given entry from the database without any consistency checking. |
void |
FilePunchDB.delete(PunchData entry)
optional operation; may throw UnsupportedOperationException. |
void |
SQLPunchDB.delete(WorkUnit unit)
|
void |
PunchDBClient.delete(WorkUnit unit)
|
void |
PunchAdminDB.delete(WorkUnit unit)
|
void |
SQLPunchDB.delete(WorkUnitValidator wv)
|
void |
PunchDBClient.delete(WorkUnitValidator schedule)
|
void |
PunchAdminDB.delete(WorkUnitValidator schedule)
|
void |
SQLPunchDB.deleteUser(User user)
|
void |
PunchDBClient.deleteUser(User user)
|
void |
PunchAdminDB.deleteUser(User user)
use with caution: this also deletes all associated records of the given user |
protected List<WorkUnit> |
SQLPunchDB.extractUnits(ResultSet rs,
Map<Object,TimeUser> users,
Filter<WorkUnit> filter)
|
protected TimeUser |
SQLPunchDB.extractUser(ResultSet rs)
|
static String |
TimeSheetReport.generateHTMLReport(PunchDB db,
User user,
Date from,
Date until)
|
static String |
TimeSheetReport.generateHTMLReport(PunchDB db,
User user,
Date from,
Date until,
String template)
|
static List<User> |
PunchUtils.getActiveUsers(PunchDB db)
returns all users that are enabled |
String[] |
SQLPunchDB.getActivities()
returns a list of activities contained in the database |
Set<WorkUnit> |
WorkUnitAnalyzer.getCorrespondingToPunchData(PunchDB db,
boolean returnThoseThatCorrespond)
returns those WorkUnits that do or do not directly correspond to a punch pair in the given database. |
PunchData |
SQLPunchDB.getFirstPunch(User user)
|
PunchData |
RemotePunchDBClient.getFirstPunch(User user)
|
PunchData |
PunchDBClient.getFirstPunch(User user)
|
PunchData |
PunchDB.getFirstPunch(User user)
if user is null, the first punch of all is returned. |
HolidayCalendar |
SQLPunchDB.getHolidays()
|
HolidayCalendar |
PunchDBClient.getHolidays()
|
HolidayCalendar |
PunchAdminDB.getHolidays()
|
PunchData |
SQLPunchDB.getLastPunch(User user)
|
PunchData |
RemotePunchDBClient.getLastPunch(User user)
|
PunchData |
PunchDBClient.getLastPunch(User user)
|
PunchData |
PunchDB.getLastPunch(User user)
if user is null, the last punch of all is returned. |
String |
SQLPunchDB.getPassword(String employee)
|
protected PunchData |
SQLPunchDB.getPunch(User user,
boolean first)
|
PunchDataAnalyzer |
SQLPunchDB.getPunchData(User user,
Date from,
Date until,
String location,
String activity)
|
PunchDataAnalyzer |
RemotePunchDBClient.getPunchData(User user,
Date from,
Date until,
String location,
String activity)
|
PunchDataAnalyzer |
PunchDBClient.getPunchData(User user,
Date from,
Date until,
String location,
String activity)
|
PunchDataAnalyzer |
PunchDB.getPunchData(User user,
Date from,
Date until,
String location,
String activity)
retrieves the relevant set of Punchdata objects in a PunchDataAnalyzer |
PunchDataAnalyzer |
FilePunchDB.getPunchData(User user,
Date after,
Date before,
String location,
String activity)
retrieves the relevant set of Punchdata objects |
User |
SQLPunchDB.getUser(String id)
|
Map<Object,TimeUser> |
SQLPunchDB.getUsers()
uses TimeUser objects |
Map<Object,TimeUser> |
RemotePunchDBClient.getUsers()
|
Map<Object,TimeUser> |
PunchDBClient.getUsers()
|
Map<Object,TimeUser> |
PunchDB.getUsers()
returns an unmodifiable view of the users, mapping the id to a TimeUser |
List<WorkUnit> |
SQLPunchDB.getWorkUnits(Filter<WorkUnit> filter)
|
List<WorkUnit> |
SQLPunchDB.getWorkUnits(User user,
WorkUnit.Type type,
Date beginAfter,
Date beginBefore,
String activity)
|
List<WorkUnit> |
PunchDBClient.getWorkUnits(User user,
WorkUnit.Type type,
Date beginFrom,
Date beginUntil,
String activity)
|
List<WorkUnit> |
PunchAdminDB.getWorkUnits(User user,
WorkUnit.Type type,
Date beginFrom,
Date beginUntil,
String activity)
retrieves the relevant set of WorkUnit objects |
List<WorkUnit> |
SQLPunchDB.getWorkUnitsFor(User user,
Date date)
|
List<WorkUnit> |
PunchDBClient.getWorkUnitsFor(User user,
Date date)
|
List<WorkUnit> |
PunchAdminDB.getWorkUnitsFor(User user,
Date time)
returns all work units that enclose the given time based on the given user (or all users if user is null). |
WorkUnitValidator |
SQLPunchDB.getWorkUnitValidator(String name)
may return null if the given name was not found |
Map<String,WorkUnitValidator> |
SQLPunchDB.getWorkUnitValidators(Filter<WorkUnitValidator> filter)
|
Map<String,WorkUnitValidator> |
PunchDBClient.getWorkUnitValidators(Filter<WorkUnitValidator> filter)
|
Map<String,WorkUnitValidator> |
PunchAdminDB.getWorkUnitValidators(Filter<WorkUnitValidator> filter)
filter may be null, in which case no restrictions apply and all validators found will be returned |
void |
SQLPunchDB.insert(Holiday h)
|
void |
PunchDBClient.insert(Holiday h)
|
void |
PunchAdminDB.insert(Holiday h)
|
void |
SQLPunchDB.insert(WorkUnit unit)
|
void |
PunchDBClient.insert(WorkUnit unit)
|
void |
PunchAdminDB.insert(WorkUnit unit)
inserts the given unit into the database |
void |
SQLPunchDB.insertUser(User user)
|
void |
PunchDBClient.insertUser(User user)
|
void |
PunchAdminDB.insertUser(User user)
|
boolean |
SQLPunchDB.isInUse(WorkUnitValidator wv)
checks whether any user uses this validator |
protected boolean |
JPunchClock.passwordCheck(User user)
returns true only if the correct password is entered or if no password is set |
void |
PunchDBClient.ping()
simply checks connectivity |
protected void |
JBarcodePunchClock.processBarcode(String barcode)
processes the given barcode on the embedded PunchStation |
void |
RemotePunchDBClient.punch(PunchData entry)
|
void |
PunchDBClient.punch(PunchData entry)
|
void |
PunchDB.punch(PunchData entry)
performs consistency check before adding the entry. |
void |
AbstractPunchDB.punch(PunchData pd)
first verifies the PunchData, then stores it, and finally calls the listeners. |
PunchData |
PunchStation.punch(User user)
punches the given user in/out depending on whether he/she was checked out/in before. |
PunchData |
PunchStation.punch(User user,
boolean checkIn)
uses the current activity setting of this instance |
PunchData |
PunchStation.punch(User user,
boolean checkIn,
String activity)
stores the PunchData after checking some basic consistency w/ existing data. |
PunchData |
PunchStation.punch(User user,
String activity)
punches the given user in/out depending on whether he/she was checked out/in before. |
void |
UserStatusTableModel.refresh()
|
void |
TimeRangeSummaryTableModel.refresh(PunchAdminDB db,
Date from,
Date until)
|
PunchData |
RemotePunchDBImpl.remoteGetFirstPunch(User user)
|
PunchData |
RemotePunchDB.remoteGetFirstPunch(User user)
|
PunchData |
RemotePunchDBImpl.remoteGetLastPunch(User user)
|
PunchData |
RemotePunchDB.remoteGetLastPunch(User user)
|
Map |
RemotePunchDBImpl.remoteGetUsers()
|
Map |
RemotePunchDB.remoteGetUsers()
|
void |
RemotePunchDBImpl.remotePunch(PunchData entry)
|
void |
RemotePunchDB.remotePunch(PunchData entry)
|
PunchDataAnalyzer |
RemotePunchDBImpl.remoteRetrievePunchData(User user,
Date from,
Date until,
String location,
String activity)
|
PunchDataAnalyzer |
RemotePunchDB.remoteRetrievePunchData(User user,
Date from,
Date until,
String location,
String activity)
|
void |
RemotePunchDBImpl.remoteUpdatePassword(User user)
|
void |
RemotePunchDB.remoteUpdatePassword(User user)
|
void |
SQLPunchDB.save(WorkUnitValidator wv)
if the validator exists, it will be updated; otherwise the entry will be created |
void |
PunchDBClient.save(WorkUnitValidator schedule)
|
void |
PunchAdminDB.save(WorkUnitValidator schedule)
if the schedule exists (based on equals(Object)), it will be updated; otherwise the entry will be created |
void |
SQLPunchDB.store(PunchData entry)
|
void |
PunchDBClient.store(PunchData entry)
|
void |
PunchAdminDB.store(PunchData entry)
stores the given entry into the database without any consistency checking and without calling the listeners on punch(PunchData). |
void |
FilePunchDB.store(PunchData entry)
|
protected abstract void |
AbstractPunchDB.store(PunchData pd)
used by the final punch(PunchData) method to delegate the database storing. |
void |
PunchDataAnalyzer.storeInto(PunchDB db)
|
void |
SQLPunchDB.updatePassword(User user)
|
void |
RemotePunchDBClient.updatePassword(User user)
|
void |
PunchDBClient.updatePassword(User user)
|
void |
PunchDB.updatePassword(User user)
updates the permanent storage with the password that is now present in the user |
void |
PunchDataAnalyzer.updatePassword(User user)
not supported with the analyzer; always throws DatabaseException |
void |
FilePunchDB.updatePassword(User user)
|
void |
SQLPunchDB.updateUser(User user)
|
void |
PunchDBClient.updateUser(User user)
|
void |
PunchAdminDB.updateUser(User user)
|
void |
SQLPunchDB.verifyConsistency()
|
static void |
PunchDataAnalyzer.verifyPunch(PunchDB db,
PunchData pd)
checks whether the data can be stored into the database w/o causing inconsistency for the employee in the given PunchData entry. |
|
|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||