1 56 package org.objectstyle.cayenne.map.event; 57 58 import org.objectstyle.cayenne.map.ProcedureParameter; 59 60 63 public class ProcedureParameterEvent extends MapEvent { 64 protected ProcedureParameter parameter; 65 66 public ProcedureParameterEvent(Object source, ProcedureParameter parameter) { 67 super(source); 68 setParameter(parameter); 69 } 70 71 public ProcedureParameterEvent( 72 Object source, 73 ProcedureParameter parameter, 74 String oldName) { 75 this(source, parameter); 76 setOldName(oldName); 77 } 78 79 public ProcedureParameterEvent( 80 Object source, 81 ProcedureParameter parameter, 82 int type) { 83 this(source, parameter); 84 setId(type); 85 } 86 87 public String getNewName() { 88 return (parameter != null) ? parameter.getName() : null; 89 } 90 91 public ProcedureParameter getParameter() { 92 return parameter; 93 } 94 95 public void setParameter(ProcedureParameter parameter) { 96 this.parameter = parameter; 97 } 98 } 99 | Popular Tags |