View Javadoc
1   package at.rseiler.spbee.core.pojo.annotation;
2   
3   import at.rseiler.spbee.core.annotation.StoredProcedure;
4   
5   import java.io.Serializable;
6   
7   /**
8    * Holds the data of a {@link at.rseiler.spbee.core.annotation.StoredProcedure} annotation.
9    *
10   * @author Reinhard Seiler {@literal <rseiler.developer@gmail.com>}
11   */
12  public class StoredProcedureData implements Serializable {
13  
14      private static final long serialVersionUID = 8765442214373371627L;
15  
16      private final String name;
17  
18      public StoredProcedureData(StoredProcedure storedProcedure) {
19          this.name = storedProcedure.value();
20      }
21  
22      public String getName() {
23          return name;
24      }
25  
26      @Override
27      public String toString() {
28          return "StoredProcedureData{" +
29                  "name='" + name + '\'' +
30                  '}';
31      }
32  
33  }