1 15 package org.apache.tapestry.vlib.ejb; 16 17 import java.io.Serializable ; 18 19 import org.apache.commons.lang.builder.ToStringBuilder; 20 21 30 31 public class MasterQueryParameters implements Serializable 32 { 33 private static final long serialVersionUID = 557672936915184047L; 34 35 private String _title; 36 private String _author; 37 private Integer _ownerId; 38 private Integer _publisherId; 39 40 public MasterQueryParameters(String title, String author, Integer ownerId, Integer publisherId) 41 { 42 _title = title; 43 _author = author; 44 _ownerId = ownerId; 45 _publisherId = publisherId; 46 } 47 48 53 54 public String getAuthor() 55 { 56 return _author; 57 } 58 59 64 65 public Integer getPublisherId() 66 { 67 return _publisherId; 68 } 69 70 75 76 public String getTitle() 77 { 78 return _title; 79 } 80 81 public Integer getOwnerId() 82 { 83 return _ownerId; 84 } 85 86 public String toString() 87 { 88 ToStringBuilder builder = new ToStringBuilder(this); 89 builder.append("title", _title); 90 builder.append("author", _author); 91 builder.append("ownerId", _ownerId); 92 builder.append("publisherId", _publisherId); 93 94 return builder.toString(); 95 } 96 } 97 | Popular Tags |