KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > appmappersistence > DODSApplicationMap


1 package org.enhydra.shark.appmappersistence;
2
3 import org.enhydra.shark.api.internal.appmappersistence.ApplicationMap;
4
5 /**
6  * Implementation of ApplicationMap interface.
7  * If value for field is not set, field will have value 'null'.
8  * @author Zoran Milakovic
9  */

10 public class DODSApplicationMap implements ApplicationMap {
11
12    private String JavaDoc toolAgentName;
13    private String JavaDoc username;
14    private String JavaDoc password;
15    private String JavaDoc applicationName;
16    private Integer JavaDoc applicationMode;
17    private String JavaDoc processDefId;
18    private String JavaDoc packageId;
19    private String JavaDoc applicationDefinitionId;
20
21    public DODSApplicationMap() {
22    }
23
24    public DODSApplicationMap(
25       String JavaDoc toolAgentName,
26       String JavaDoc username,
27       String JavaDoc password,
28       String JavaDoc appName,
29       Integer JavaDoc appMode ) {
30
31       setToolAgentClassName( toolAgentName );
32       setUsername( username );
33       setPassword( password );
34       setApplicationName( appName );
35       setApplicationMode( appMode );
36
37    }
38
39    public String JavaDoc getToolAgentClassName() {
40       return toolAgentName;
41    }
42
43    public void setToolAgentClassName( String JavaDoc name ) {
44       if( name != null && !name.trim().equals("") )
45          this.toolAgentName = name;
46       else
47          this.toolAgentName = null;
48    }
49
50    public String JavaDoc getPackageId() {
51       return packageId;
52    }
53
54    public void setPackageId( String JavaDoc packageId ) {
55       if ( packageId != null && !packageId.trim().equals("") )
56          this.packageId = packageId;
57       else
58          this.packageId = null;
59    }
60
61    public String JavaDoc getApplicationDefinitionId() {
62       return applicationDefinitionId;
63    }
64
65    public void setApplicationDefinitionId( String JavaDoc applicationDefinitionId ) {
66       if( applicationDefinitionId != null && !applicationDefinitionId.trim().equals("") )
67          this.applicationDefinitionId = applicationDefinitionId;
68       else
69          this.applicationDefinitionId = null;
70    }
71
72    public String JavaDoc getProcessDefinitionId() {
73       return processDefId;
74    }
75
76    public void setProcessDefinitionId( String JavaDoc processDefId ) {
77       if( processDefId != null && !processDefId.trim().equals("") )
78          this.processDefId = processDefId;
79       else
80          this.processDefId = null;
81    }
82
83    public String JavaDoc getUsername() {
84       return username;
85    }
86
87    public void setUsername( String JavaDoc username ) {
88       if( username != null && !username.trim().equals("") )
89          this.username = username;
90       else
91          this.username = null;
92    }
93
94    public String JavaDoc getPassword() {
95       return password;
96    }
97
98    public void setPassword( String JavaDoc password ) {
99       this.password = password;
100    }
101
102    public String JavaDoc getApplicationName() {
103       return applicationName;
104    }
105
106    public void setApplicationName( String JavaDoc appName ) {
107       if( appName != null && !appName.trim().equals("") )
108          this.applicationName = appName;
109       else
110          this.applicationName = null;
111    }
112
113    public Integer JavaDoc getApplicationMode() {
114       return applicationMode;
115    }
116
117    public void setApplicationMode( Integer JavaDoc appMode ) {
118       this.applicationMode = appMode;
119    }
120
121    public String JavaDoc toString() {
122       String JavaDoc retVal = "";
123       retVal += "toolAgentClassName=" + toolAgentName + "\n";
124       retVal += "username=" + username + "\n";
125       retVal += "password=" + password + "\n";
126       retVal += "applicationName=" + applicationName + "\n";
127       retVal += "applicationMode=" + applicationMode + "\n";
128       retVal += "processDefId=" + processDefId + "\n";
129       retVal += "packageId=" + packageId + "\n";
130       retVal += "applicationDefinitionId=" + applicationDefinitionId + "\n";
131       return retVal;
132    }
133
134 }
135
Popular Tags