KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > jtests > beans > ejbql > Name


1 package org.objectweb.jonas.jtests.beans.ejbql;
2
3 public class Name implements java.io.Serializable JavaDoc {
4
5     private String JavaDoc lastName;
6     private String JavaDoc firstName;
7     
8     public Name(String JavaDoc lname, String JavaDoc fname){
9         lastName = lname;
10         firstName = fname;
11     }
12     public String JavaDoc getLastName() {
13         return lastName;
14     }
15     public String JavaDoc getFirstName() {
16         return firstName;
17     }
18     public String JavaDoc toString() {
19         return ("(lastname='" + lastName + "',firstname=" + firstName +"')");
20     }
21 }
22
Popular Tags