KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > legacy > Blobber


1 package org.hibernate.test.legacy;
2
3 import java.sql.Blob JavaDoc;
4 import java.sql.Clob JavaDoc;
5
6 public class Blobber {
7     private int id;
8     private Blob JavaDoc blob;
9     private Clob JavaDoc clob;
10     /**
11      * Returns the blob.
12      * @return Blob
13      */

14     public Blob JavaDoc getBlob() {
15         return blob;
16     }
17
18     /**
19      * Returns the clob.
20      * @return Clob
21      */

22     public Clob JavaDoc getClob() {
23         return clob;
24     }
25
26     /**
27      * Returns the id.
28      * @return int
29      */

30     public int getId() {
31         return id;
32     }
33
34     /**
35      * Sets the blob.
36      * @param blob The blob to set
37      */

38     public void setBlob(Blob JavaDoc blob) {
39         this.blob = blob;
40     }
41
42     /**
43      * Sets the clob.
44      * @param clob The clob to set
45      */

46     public void setClob(Clob JavaDoc clob) {
47         this.clob = clob;
48     }
49
50     /**
51      * Sets the id.
52      * @param id The id to set
53      */

54     public void setId(int id) {
55         this.id = id;
56     }
57
58 }
59
Popular Tags