001package io.ebean.enhance.transactional;
002
003/**
004 * Holds profileId and details for a given @Transactional method.
005 */
006public class TransactionalMethodKey {
007
008  private final String className;
009  private final String methodName;
010  private final String methodDesc;
011  private int profileId;
012  private int lineNumber;
013
014  public TransactionalMethodKey(String className, String methodName, String methodDesc) {
015    this.className = className;
016    this.methodName = methodName;
017    this.methodDesc = methodDesc;
018  }
019
020  public String toString() {
021    return "profileId:"+profileId+" method:"+className+"."+methodName+methodDesc+":"+lineNumber;
022  }
023
024  public int getProfileId() {
025    return profileId;
026  }
027
028  public void setProfileId(int profileId) {
029    this.profileId = profileId;
030  }
031
032  public void setLineNumber(int lineNumber) {
033    this.lineNumber = lineNumber;
034  }
035
036  public String getMethodName() {
037    return methodName;
038  }
039}