01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: org_firebirdsql_jdbc_FBDriver.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.mail.dam.databasedrivers;
09:
10: import com.uwyn.rife.database.Datasource;
11: import com.uwyn.rife.database.exceptions.DatabaseException;
12: import com.uwyn.rife.mail.dam.DatabaseMailQueue;
13: import com.uwyn.rife.mail.exceptions.InstallMailQueueErrorException;
14: import com.uwyn.rife.mail.exceptions.MailQueueManagerException;
15:
16: public class org_firebirdsql_jdbc_FBDriver extends DatabaseMailQueue {
17: public org_firebirdsql_jdbc_FBDriver(Datasource datasource) {
18: super (datasource);
19: }
20:
21: public boolean install() throws MailQueueManagerException {
22: try {
23: mManager.install(mManager.getInstallTableQuery().precision(
24: "body", 8191));
25: } catch (DatabaseException e) {
26: throw new InstallMailQueueErrorException(e);
27: }
28:
29: return true;
30: }
31: }
|