Uses of Class
cst.common.businessLayer.TrialSubjectModel

Packages that use TrialSubjectModel
cst.adminTool.io This code package is responsible for importing subject records into the data repository. 
cst.adminTool.persistenceLayer This package contains classes which are responsible for supporting business operations in the MySQL Production data repository. 
cst.common.businessLayer Describes the major business concepts used in the system. 
cst.common.persistenceLayer Contains classes which handle data persistence tasks to support both logging and administration services. 
cst.loggingTool.persistenceLayer   
cst.test Contains all the automated test suites that are used to test the application. 
 

Uses of TrialSubjectModel in cst.adminTool.io
 

Methods in cst.adminTool.io that return TrialSubjectModel
 TrialSubjectModel TrialSubjectDataSpreadsheetBodyParser.createTrialSubjectModel(java.lang.String currentLine)
           
 

Uses of TrialSubjectModel in cst.adminTool.persistenceLayer
 

Methods in cst.adminTool.persistenceLayer that return TrialSubjectModel
 TrialSubjectModel DemonstrationAdminService.getTrialSubjectModel(User user, java.lang.String identifier)
           
 

Methods in cst.adminTool.persistenceLayer that return types with arguments of type TrialSubjectModel
 java.util.ArrayList<TrialSubjectModel> ProductionAdminQueries.getCoreData(java.sql.Connection connection)
          private void addTrialSubjectModel(Connection connection, TrialSubjectModel trialSubjectModel) throws CSTException { TextFieldModel primaryKeyFieldModel = trialSubjectModel.getPrimaryKeyFieldModel(); ArrayList otherCoreFieldModels = trialSubjectModel.getFilterFieldModels(); int completedActivities = getCompletedActivities(connection, trialSubjectModel); //eg: //REPLACE INTO trial_subject_model //(identifier, completed_activities, location...) VALUES ('CS10456', true, 'Birmingham'); //insert field names StringBuilder query = new StringBuilder(); query.append("REPLACE INTO "); query.append(subjectTableName); query.append(" ("); query.append(primaryKeyFieldModel.getDataStorageName()); query.append(", completed_activities"); for (TextFieldModel coreFieldModel : otherCoreFieldModels) { query.append(", "); query.append(coreFieldModel.getDataStorageName()); } //insert corresponding values query.append(") VALUES("); String trialSubjectIdentifier = primaryKeyFieldModel.getValue(); query.append("'"); query.append(trialSubjectIdentifier); query.append("', "); if (completedActivities == -1) { //this trial subject model doesn't exist in the database trialSubjectModel.computeCompletedActivities(); query.append(trialSubjectModel.getCompletedActivitiesCount()); } else { //this trial subject model does exist in the database //therefore we will ensure the updated record retains the //same counter as before query.append(String.valueOf(completedActivities)); } for (TextFieldModel coreFieldModel : otherCoreFieldModels) { query.append(", "); String fieldValue = coreFieldModel.getValue(); if (fieldValue == null) { query.append("NULL"); } else { query.append("'"); query.append(coreFieldModel.getValue()); query.append("'"); } } query.append(");"); Statement statement = null; try { statement = connection.prepareStatement(query.toString()); statement.executeUpdate(query.toString()); //in this part we decide if we want to also import the //trial activities for the subject model.
 java.util.ArrayList<TrialSubjectModel> ProductionAdminService.getSubjectAttributeData(User adminUser)
           
 java.util.ArrayList<TrialSubjectModel> DemonstrationAdminService.getSubjectAttributeData(User adminUser)
           
 

Method parameters in cst.adminTool.persistenceLayer with type arguments of type TrialSubjectModel
 void ProductionAdminQueryOptimiser.importSubjectModels(java.sql.Connection connection, java.util.ArrayList<TrialSubjectModel> trialSubjectModels)
           
 void ProductionAdminService.importTrialSubjectModels(User adminUser, java.util.ArrayList<TrialSubjectModel> trialSubjectModels)
           
 void DemonstrationAdminService.importTrialSubjectModels(User adminUser, java.util.ArrayList<TrialSubjectModel> trialSubjectModelsToImport)
           
 void ProductionAdminQueries.populateDatabase(java.sql.Connection connection, java.util.ArrayList<TrialSubjectModel> trialSubjectModels)
           
 

Uses of TrialSubjectModel in cst.common.businessLayer
 

Methods in cst.common.businessLayer that return TrialSubjectModel
 TrialSubjectModel TrialSubjectModelFactory.createTrialSubjectModel()
           
 TrialSubjectModel TrialSubjectModelFactory.createTrialSubjectModel(java.lang.String identifier)
           
 TrialSubjectModel TrialSubjectModelFactory.getNullTrialSubjectModel()
           
 TrialSubjectModel CSTServiceAPI.getTrialSubjectModel(User user, java.lang.String trialSubjectIdentifier)
           
 

Methods in cst.common.businessLayer that return types with arguments of type TrialSubjectModel
 java.util.ArrayList<TrialSubjectModel> AdminServiceAPI.getSubjectAttributeData(User adminUser)
          Provides all the subject attribute data that is needed to uniquely identify and filter subjects.
 

Methods in cst.common.businessLayer with parameters of type TrialSubjectModel
 boolean TrialSubjectModelFactory.isNullObject(TrialSubjectModel trialSubjectModel)
           
 

Method parameters in cst.common.businessLayer with type arguments of type TrialSubjectModel
 void AdminServiceAPI.importTrialSubjectModels(User adminUser, java.util.ArrayList<TrialSubjectModel> trialSubjectModels)
          imports a collection of trial subject model records into the data repository.
 

Constructors in cst.common.businessLayer with parameters of type TrialSubjectModel
TrialSubjectModelFactory(TrialSubjectModel templateTrialSubjectModel)
           
 

Uses of TrialSubjectModel in cst.common.persistenceLayer
 

Fields in cst.common.persistenceLayer with type parameters of type TrialSubjectModel
protected  java.util.HashMap<java.lang.String,TrialSubjectModel> DemonstrationDB.trialSubjectModelFromIdentifier
           
 

Methods in cst.common.persistenceLayer that return TrialSubjectModel
 TrialSubjectModel DemonstrationDB.getClonedTrialSubjectModel(java.lang.String subjectIdentifier)
           
 TrialSubjectModel DemonstrationDB.getOriginalTrialSubjectModel(java.lang.String subjectIdentifier)
           
 TrialSubjectModel AbstractProductionService.getTrialSubjectModel(User user, java.lang.String trialSubjectIdentifier)
           
 

Methods in cst.common.persistenceLayer that return types with arguments of type TrialSubjectModel
 java.util.ArrayList<TrialSubjectModel> DemonstrationDB.getClonedTrialSubjectModels()
           
 java.util.HashMap<java.lang.String,TrialSubjectModel> DemonstrationDB.getTrialSubjectModelFromIdentifierMap()
           
 

Methods in cst.common.persistenceLayer with parameters of type TrialSubjectModel
 void DemonstrationDB.addTrialSubjectModel(TrialSubjectModel trialSubjectModel)
          add a trial subject model record.
 void DemonstrationDB.replaceSubjectModel(TrialSubjectModel trialSubjectModel)
           
 

Uses of TrialSubjectModel in cst.loggingTool.persistenceLayer
 

Methods in cst.loggingTool.persistenceLayer that return TrialSubjectModel
 TrialSubjectModel NavigationManager.getCurrentTrialSubjectModel()
           
 TrialSubjectModel ProductionLoggingToolQueries.getTrialSubjectModel(java.sql.Connection connection, java.lang.String trialSubjectIdentifier)
           
 TrialSubjectModel DemonstrationLoggingService.getTrialSubjectModel(User user, java.lang.String identifier)
           
 

Constructors in cst.loggingTool.persistenceLayer with parameters of type TrialSubjectModel
DefaultSubjectInformationReport(TrialSubjectModel trialSubjectModel)
           
 

Uses of TrialSubjectModel in cst.test
 

Fields in cst.test declared as TrialSubjectModel
protected  TrialSubjectModel AbstractCSTTestCase.sampleTrialSubjectModel
           
 

Methods in cst.test that return TrialSubjectModel
 TrialSubjectModel TestDataSet.createTrialSubjectModel(java.lang.String identifier)
           
 

Method parameters in cst.test with type arguments of type TrialSubjectModel
protected  void AbstractCSTTestCase.populateDatabase(java.util.ArrayList<TrialSubjectModel> trialSubjectModels)