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  @Override
021  public String toString() {
022    return "profileId:"+profileId+" method:"+className+"."+methodName+methodDesc+":"+lineNumber;
023  }
024
025  public int getProfileId() {
026    return profileId;
027  }
028
029  public void setProfileId(int profileId) {
030    this.profileId = profileId;
031  }
032
033  public void setLineNumber(int lineNumber) {
034    this.lineNumber = lineNumber;
035  }
036
037  public int getLineNumber() {
038    return lineNumber;
039  }
040
041  public String getMethodName() {
042    return methodName;
043  }
044}