|
|||||||||||||||||||
| 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 | |||||||||||||||
| DatabaseCommandVO.java | - | 0% | 0% | 0% |
|
||||||||||||||
| 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 | 0 |
public DatabaseCommandVO() {
|
| 25 | 0 |
super();
|
| 26 |
} |
|
| 27 |
|
|
| 28 | 0 |
public DatabaseCommandVO(Connection connection, String command) {
|
| 29 | 0 |
this();
|
| 30 |
|
|
| 31 | 0 |
setConnection( connection ); |
| 32 | 0 |
setCommand( command ); |
| 33 |
} |
|
| 34 |
|
|
| 35 |
/**
|
|
| 36 |
* @return
|
|
| 37 |
*/
|
|
| 38 | 0 |
public String getCommand() {
|
| 39 | 0 |
return command;
|
| 40 |
} |
|
| 41 |
|
|
| 42 |
/**
|
|
| 43 |
* @return
|
|
| 44 |
*/
|
|
| 45 | 0 |
public Connection getConnection() {
|
| 46 | 0 |
return connection;
|
| 47 |
} |
|
| 48 |
|
|
| 49 |
/**
|
|
| 50 |
* @param string
|
|
| 51 |
*/
|
|
| 52 | 0 |
public void setCommand(String string) { |
| 53 | 0 |
command = string; |
| 54 |
} |
|
| 55 |
|
|
| 56 |
/**
|
|
| 57 |
* @param connection
|
|
| 58 |
*/
|
|
| 59 | 0 |
public void setConnection(Connection connection) { |
| 60 | 0 |
this.connection = connection;
|
| 61 |
} |
|
| 62 |
|
|
| 63 | 0 |
public String toString(){
|
| 64 | 0 |
return "[" + getCommand() + "]"; |
| 65 |
} |
|
| 66 |
} |
|
| 67 |
|
|
||||||||||