Ticket #269: Add missing JavaDoc for MySQLConnection, remove whitespace at ends of lines.

This commit is contained in:
Michael Jumper
2013-02-26 21:17:57 -08:00
parent 79872b9012
commit 39a2d4eae7
2 changed files with 9 additions and 3 deletions

View File

@@ -57,7 +57,7 @@ import org.mybatis.guice.transactional.Transactional;
/** /**
* A MySQL-based implementation of the connection directory. * A MySQL-based implementation of the connection directory.
* *
* @author James Muehlner * @author James Muehlner
*/ */
public class ConnectionDirectory implements Directory<String, Connection>{ public class ConnectionDirectory implements Directory<String, Connection>{
@@ -171,7 +171,7 @@ public class ConnectionDirectory implements Directory<String, Connection>{
/** /**
* Inserts all parameter values from the given configuration into the * Inserts all parameter values from the given configuration into the
* database, associating them with the connection having the givenID. * database, associating them with the connection having the givenID.
* *
* @param connection_id The ID of the connection to associate all * @param connection_id The ID of the connection to associate all
* parameters with. * parameters with.
* @param config The GuacamoleConfiguration to read parameters from. * @param config The GuacamoleConfiguration to read parameters from.
@@ -219,7 +219,7 @@ public class ConnectionDirectory implements Directory<String, Connection>{
ConnectionParameterExample parameterExample = new ConnectionParameterExample(); ConnectionParameterExample parameterExample = new ConnectionParameterExample();
parameterExample.createCriteria().andConnection_idEqualTo(connection.getConnection_id()); parameterExample.createCriteria().andConnection_idEqualTo(connection.getConnection_id());
connectionParameterDAO.deleteByExample(parameterExample); connectionParameterDAO.deleteByExample(parameterExample);
// Add connection parameters // Add connection parameters
createConfigurationValues(connection.getConnection_id(), createConfigurationValues(connection.getConnection_id(),
object.getConfiguration()); object.getConfiguration());

View File

@@ -68,9 +68,15 @@ public class MySQLConnection extends AbstractConnection {
*/ */
private List<ConnectionRecord> history = new ArrayList<ConnectionRecord>(); private List<ConnectionRecord> history = new ArrayList<ConnectionRecord>();
/**
* Service for creating and retrieving objects.
*/
@Inject @Inject
private ProviderService providerService; private ProviderService providerService;
/**
* Set of all currently active connections.
*/
@Inject @Inject
private ActiveConnectionSet activeConnectionSet; private ActiveConnectionSet activeConnectionSet;