|
|||||||||||||||||||
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
StartPlsqlCommand.java | - | 0% | 0% | 0% |
|
1 |
/*
|
|
2 |
* Replica is published under the terms
|
|
3 |
* of the Apache Software License.
|
|
4 |
*/
|
|
5 |
package replica.server.commands.plsql;
|
|
6 |
|
|
7 |
import replica.core.ApplicationMessage;
|
|
8 |
import replica.group.GroupManager;
|
|
9 |
import replica.server.ServerProcess;
|
|
10 |
import replica.server.commands.LoggedInCommand;
|
|
11 |
import replica.session.Session;
|
|
12 |
import replica.session.SessionManager;
|
|
13 |
|
|
14 |
/**
|
|
15 |
*
|
|
16 |
* @author Pedro Costa
|
|
17 |
* @author Helder Silva
|
|
18 |
* @since 29/Jan/2004
|
|
19 |
*/
|
|
20 |
public class StartPlsqlCommand extends LoggedInCommand { |
|
21 |
|
|
22 |
SessionManager sessionManager; |
|
23 |
GroupManager groupManager; |
|
24 |
|
|
25 |
/**
|
|
26 |
*
|
|
27 |
*/
|
|
28 | 0 |
public StartPlsqlCommand() {
|
29 | 0 |
super();
|
30 |
} |
|
31 |
|
|
32 |
/* (non-Javadoc)
|
|
33 |
* @see replica.server.commands.LoggedInCommand#internalExecute(replica.core.ApplicationMessage)
|
|
34 |
*/
|
|
35 | 0 |
protected Object internalExecute(ApplicationMessage msg) {
|
36 |
|
|
37 | 0 |
Session session = getSessionManager().getSession( msg.getSessionID() ); |
38 |
|
|
39 | 0 |
ServerProcess serverProcess = (ServerProcess)session.getObject("SERVER_PROCESS");
|
40 |
|
|
41 | 0 |
new PlsqlCommandProcessor(msg.getBody().toString(), serverProcess, getGroupManager());
|
42 |
|
|
43 | 0 |
return ""; |
44 |
} |
|
45 |
|
|
46 |
/**
|
|
47 |
* @return
|
|
48 |
*/
|
|
49 | 0 |
public SessionManager getSessionManager() {
|
50 | 0 |
return sessionManager;
|
51 |
} |
|
52 |
|
|
53 |
/**
|
|
54 |
* @param manager
|
|
55 |
*/
|
|
56 | 0 |
public void setSessionManager(SessionManager manager) { |
57 | 0 |
sessionManager = manager; |
58 |
} |
|
59 |
|
|
60 |
/**
|
|
61 |
* @return
|
|
62 |
*/
|
|
63 | 0 |
public GroupManager getGroupManager() {
|
64 | 0 |
return groupManager;
|
65 |
} |
|
66 |
|
|
67 |
/**
|
|
68 |
* @param manager
|
|
69 |
*/
|
|
70 | 0 |
public void setGroupManager(GroupManager manager) { |
71 | 0 |
groupManager = manager; |
72 |
} |
|
73 |
|
|
74 |
} |
|
75 |
|
|