提交 | 用户 | age
|
826b66
|
1 |
package com.hx.auto.common; |
C |
2 |
|
|
3 |
/**属性保存*/ |
|
4 |
public class UrlData { |
|
5 |
|
|
6 |
/**总包*/ |
|
7 |
private String totalUrl; |
|
8 |
/**生成action的包路径*/ |
|
9 |
private String[] actionUrl; |
|
10 |
/**生成mapper.xml路径*/ |
|
11 |
private String[] mapperUrl; |
|
12 |
/**生成DAO的包路径*/ |
|
13 |
private String[] daoUrl; |
|
14 |
/**生成service接口的包路径*/ |
|
15 |
private String[] serviceUrl; |
|
16 |
/**生成serviceImpl接口的包路径*/ |
|
17 |
private String[] serviceImplUrl; |
|
18 |
/**********************************/ |
|
19 |
/** |
|
20 |
* 一下类引入的路径需要 |
|
21 |
* @param totalUrl 总包,如:com.songSir |
|
22 |
*/ |
|
23 |
public void totalUrlData(String totalUrl){ |
|
24 |
this.totalUrl = totalUrl; |
|
25 |
} |
|
26 |
|
|
27 |
/**生成action的包路径 |
|
28 |
* @param packRoot 根目录,如:src.main.java |
|
29 |
* @param actionPack 包目录,如:com.songSir.model |
|
30 |
*/ |
|
31 |
public void actionUrlData(String packRoot,String actionPack) { |
|
32 |
actionUrl = new String[] {packRoot,actionPack}; |
|
33 |
} |
|
34 |
/**生成mapper.xml路径 |
|
35 |
* |
|
36 |
* @param packRoot 根目录,如:src.main.java |
|
37 |
* @param mapperPack 包目录/文件目录,如:com.songSir.mapper 或者 com/songSir/mapper |
|
38 |
*/ |
|
39 |
public void mapperUrlData(String packRoot,String mapperPack) { |
|
40 |
mapperUrl = new String[] {packRoot,mapperPack}; |
|
41 |
} |
|
42 |
/**生成DAO的包路径 |
|
43 |
* |
|
44 |
* @param packRoot 根目录,如:src.main.java |
|
45 |
* @param daoPack 包目录,如:com.songSir.dao |
|
46 |
*/ |
|
47 |
public void daoUrlData(String packRoot,String daoPack) { |
|
48 |
daoUrl = new String[] {packRoot,daoPack}; |
|
49 |
} |
|
50 |
/**生成service接口的包路径 |
|
51 |
* |
|
52 |
* @param packRoot 根目录,如:src.main.java |
|
53 |
* @param servicePack 包目录,如:com.songSir.service |
|
54 |
*/ |
|
55 |
public void serviceUrlData(String packRoot,String servicePack) { |
|
56 |
serviceUrl = new String[] {packRoot,servicePack}; |
|
57 |
} |
|
58 |
/**生成service接口的包路径 |
|
59 |
* |
|
60 |
* @param packRoot 根目录,如:src.main.java |
|
61 |
* @param serviceImpUrlPack 包目录,如:com.songSir.serviceImp |
|
62 |
*/ |
|
63 |
public void serviceImplUrlData(String packRoot,String serviceImpUrlPack) { |
|
64 |
serviceImplUrl = new String[] {packRoot,serviceImpUrlPack}; |
|
65 |
} |
|
66 |
/*********************************/ |
|
67 |
public String[] getActionUrl() { |
|
68 |
return actionUrl; |
|
69 |
} |
|
70 |
public void setActionUrl(String[] actionUrl) { |
|
71 |
this.actionUrl = actionUrl; |
|
72 |
} |
|
73 |
public String[] getMapperUrl() { |
|
74 |
return mapperUrl; |
|
75 |
} |
|
76 |
public void setMapperUrl(String[] mapperUrl) { |
|
77 |
this.mapperUrl = mapperUrl; |
|
78 |
} |
|
79 |
public String[] getDaoUrl() { |
|
80 |
return daoUrl; |
|
81 |
} |
|
82 |
public void setDaoUrl(String[] daoUrl) { |
|
83 |
this.daoUrl = daoUrl; |
|
84 |
} |
|
85 |
public String[] getServiceUrl() { |
|
86 |
return serviceUrl; |
|
87 |
} |
|
88 |
public void setServiceUrl(String[] serviceUrl) { |
|
89 |
this.serviceUrl = serviceUrl; |
|
90 |
} |
|
91 |
public String[] getServiceImplUrl() { |
|
92 |
return serviceImplUrl; |
|
93 |
} |
|
94 |
public void setServiceImplUrl(String[] serviceImplUrl) { |
|
95 |
this.serviceImplUrl = serviceImplUrl; |
|
96 |
} |
|
97 |
|
|
98 |
public String getTotalUrl() { |
|
99 |
return totalUrl; |
|
100 |
} |
|
101 |
|
|
102 |
public void setTotalUrl(String totalUrl) { |
|
103 |
this.totalUrl = totalUrl; |
|
104 |
} |
|
105 |
} |