cst.common.persistenceLayer
Class ProductionServiceDatabaseQueries

java.lang.Object
  extended by cst.common.persistenceLayer.ProductionServiceDatabaseQueries
Direct Known Subclasses:
ProductionAdminQueries, ProductionLoggingToolQueries

public class ProductionServiceDatabaseQueries
extends java.lang.Object

handles SQL queries which are common to production versions of both LoggingServiceAPI and AdminServiceAPI services.


 Copyright 2010 Medical Research Council Unit for Lifelong Health and Ageing
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
      http://www.apache.org/licenses/LICENSE-2.0
 Unless required by applicable law or agreed to in writing, software 
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.  
 

Version:
1.0
Author:
Kevin Garwood (kgarwood@users.sourceforge.net)

Field Summary
protected  java.lang.String activityChangesTableName
           
protected  java.lang.String databaseName
           
protected  Log log
           
protected  SessionProperties sessionProperties
           
protected  java.text.SimpleDateFormat sqlDateFormat
           
protected  java.lang.String subjectTableName
           
protected  TrialSubjectModelFactory trialSubjectModelFactory
           
protected  java.lang.String userTableName
           
 
Constructor Summary
ProductionServiceDatabaseQueries(SessionProperties sessionProperties)
           
 
Method Summary
protected  void checkActivityStepExists(java.lang.String activityName, java.lang.String activityStepName)
           
protected  void checkTrialActivityDataStorageNameExists(java.lang.String activityName)
           
protected  void validateCoreFieldDataStorageName(java.lang.String coreFieldName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sessionProperties

protected SessionProperties sessionProperties

log

protected Log log

trialSubjectModelFactory

protected TrialSubjectModelFactory trialSubjectModelFactory

databaseName

protected java.lang.String databaseName

userTableName

protected java.lang.String userTableName

subjectTableName

protected java.lang.String subjectTableName

activityChangesTableName

protected java.lang.String activityChangesTableName

sqlDateFormat

protected java.text.SimpleDateFormat sqlDateFormat
Constructor Detail

ProductionServiceDatabaseQueries

public ProductionServiceDatabaseQueries(SessionProperties sessionProperties)
Method Detail

validateCoreFieldDataStorageName

protected void validateCoreFieldDataStorageName(java.lang.String coreFieldName)
                                         throws CSTException
Throws:
CSTException

checkTrialActivityDataStorageNameExists

protected void checkTrialActivityDataStorageNameExists(java.lang.String activityName)
                                                throws CSTException
Throws:
CSTException

checkActivityStepExists

protected void checkActivityStepExists(java.lang.String activityName,
                                       java.lang.String activityStepName)
                                throws CSTException
Throws:
CSTException