KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > raptus > owxv3 > modules > filemgr > FileMgrUnlinkObject


1 /*
2  * eAdmin/OWX
3  * Copyright (C) 1996-2003 OWX-Project Team <owx-team@gmx.net>
4  */

5
6 package com.raptus.owxv3.modules.filemgr;
7
8 import java.sql.SQLException JavaDoc;
9
10 import com.raptus.owxv3.api.GlobalResources;
11
12
13
14 /**
15  * Contains
16  *
17  * <hr>
18  * <table width="100%" border="0">
19  * <tr>
20  * <td width="24%"><b>Filename</b></td><td width="76%">FileMgrUnlinkObject.java</td>
21  * </tr>
22  * <tr>
23  * <td width="24%"><b>Author</b></td><td width="76%">REEA</td>
24  * </tr>
25  * <tr>
26  * <td width="24%"><b>Date</b></td><td width="76%">25th of September 2001</td>
27  * </tr>
28  * </table>
29  * <hr>
30  * <table width="100%" border="0">
31  * <tr>
32  * <td width="24%"><b>Date / Author</b></td><td width="76%"><b>Changes</b></td>
33  * </tr>
34  * </table>
35  * <hr>
36  * <table width="100%" border="0">
37  * <tr>
38  * <td>This class is performing the deleting(unlinking) of a file assigment from the database</td>
39  * </tr>
40  * </table>
41  * <hr>
42  */

43 public class FileMgrUnlinkObject extends Object JavaDoc
44 //extends BusinessObject no use for this time to extend BusinessObject
45
{
46
47
48     /**
49      * A GlobalResources object that will br used do the database modifications
50      */

51     protected GlobalResources gres = null;
52
53
54     /**
55      *The constructor, the GlobalResources object is supplied for convenience
56      */

57     public FileMgrUnlinkObject(GlobalResources g){
58         gres=g;
59
60     }
61
62     /**
63      *
64      *This is the method that will delete (unlink) a file assigment
65      *Returns true if the unlink was succesfull, false otherwise
66      */

67
68     public boolean unLink(int linkid) throws SQLException JavaDoc
69     {
70        return gres.deleteLink(linkid);
71
72
73     }
74
75
76 }
77
Popular Tags