FourMS
Class UpdateOpticalComponentList.SQLAccessClass

java.lang.Object
  extended by FourMS.UpdateOpticalComponentList.SQLAccessClass
Enclosing class:
UpdateOpticalComponentList

 class UpdateOpticalComponentList.SQLAccessClass
extends java.lang.Object

Inner class which is used to store the details of how we will use SQL to access the data asssociated with the optical components in the selectable mechanisms

Version:
$Id: UpdateOpticalComponentList.java,v 1.10 2009/08/07 09:29:39 cb Exp $
Author:
Craige Bevil

Field Summary
 OpticalComponentType ElementType
           
 java.lang.String FieldName
           
 java.lang.String OrderByAttribute
           
 java.lang.String PositionField
          This is the name of the field in the database query response which corresponds to the attribute which is holding the position field
 
Constructor Summary
UpdateOpticalComponentList.SQLAccessClass(java.lang.String OrderByAttribute, java.lang.String FieldName, OpticalComponentType ElementType)
          Constructor
 
Method Summary
 java.lang.String generateSQLString(java.lang.String InstrumentName, java.lang.String MechanismName)
          This method will be used to create the SQL which will be used to extract the data from the database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OrderByAttribute

public java.lang.String OrderByAttribute

FieldName

public java.lang.String FieldName

ElementType

public OpticalComponentType ElementType

PositionField

public java.lang.String PositionField
This is the name of the field in the database query response which corresponds to the attribute which is holding the position field

Constructor Detail

UpdateOpticalComponentList.SQLAccessClass

UpdateOpticalComponentList.SQLAccessClass(java.lang.String OrderByAttribute,
                                          java.lang.String FieldName,
                                          OpticalComponentType ElementType)
Constructor

Method Detail

generateSQLString

public java.lang.String generateSQLString(java.lang.String InstrumentName,
                                          java.lang.String MechanismName)
This method will be used to create the SQL which will be used to extract the data from the database.

Parameters:
InstrumentName - This is the name of the instrument which is to be included into the SQL statement.
MechanismName - This is the name of the mechanism which we are to look up.
Returns:
String This is a SQL string which will be used to index the positional information in the database for the