1 /*
2 * Replica is published under the terms
3 * of the Apache Software License.
4 */
5 package replica.database.commands;
6
7 import java.sql.Connection;
8
9 /***
10 * This class serves as a container to pass to the execute method of the database commands.
11 *
12 * @author Pedro Costa
13 * @author Helder Silva
14 * @since 20/Jan/2004
15 */
16 public class DatabaseCommandVO {
17
18 Connection connection;
19 String command;
20
21 /***
22 *
23 */
24 public DatabaseCommandVO() {
25 super();
26 }
27
28 public DatabaseCommandVO(Connection connection, String command) {
29 this();
30
31 setConnection( connection );
32 setCommand( command );
33 }
34
35 /***
36 * @return
37 */
38 public String getCommand() {
39 return command;
40 }
41
42 /***
43 * @return
44 */
45 public Connection getConnection() {
46 return connection;
47 }
48
49 /***
50 * @param string
51 */
52 public void setCommand(String string) {
53 command = string;
54 }
55
56 /***
57 * @param connection
58 */
59 public void setConnection(Connection connection) {
60 this.connection = connection;
61 }
62
63 public String toString(){
64 return "[" + getCommand() + "]";
65 }
66 }
This page was automatically generated by Maven