SQLTuple version: 1.2.0.0

hep.aida.ref.sql
Class SQLTupleColumn

java.lang.Object
  extended by hep.aida.ref.sql.SQLTupleColumn
All Implemented Interfaces:
IBaseTupleColumn, FTupleColumn

public class SQLTupleColumn
extends Object
implements IBaseTupleColumn, FTupleColumn

SQLTupleColumn extends FTupleColumn with SQL backend.

 $Log: SQLTupleColumn.java,v $
 Revision 1.8  2007/05/23 16:38:44  hrivnac
 logical connections for Plotter; better UML

 Revision 1.7  2005/09/02 14:10:31  hrivnac
 moved to JAS3 0.8.2

 Revision 1.6  2004/10/13 12:25:39  hrivnac
 defaults work fine

 Revision 1.5  2004/10/13 09:21:21  hrivnac
 defaults used

 Revision 1.4  2004/10/12 19:26:59  hrivnac
 MySQL Connector 3.0.14

 Revision 1.3  2004/05/22 15:12:59  hrivnac
 class id reformated

 Revision 1.2  2004/05/04 08:50:33  hrivnac
 can run with JAS3

 Revision 1.1  2004/05/03 19:22:30  hrivnac
 basic support for JAS3

 

Version:
$Id: SQLTupleColumn.java,v 1.8 2007/05/23 16:38:44 hrivnac Exp $
Author:
J.Hrivnac

Field Summary
private  int _column
           
private  SQLTuple _tuple
           
private static Logger log
          Logging .
 
Constructor Summary
SQLTupleColumn(SQLTuple tuple, int column)
          Create with reference to SQLTuple.
 
Method Summary
 void defaultValue(Value value)
          Give the default value stored in the column.
 boolean hasDefaultValue()
          Check if the columns have default values.
 double maximum()
          Give the maximum value stored in the column.
 void maxValue(Value value)
          Give the maximum value stored in the column.
 double mean()
          Give the mean value stored in the column.
 void meanValue(Value value)
          Give the mean value stored in the column.
 double minimum()
          Give the minimum value stored in the column.
 void minValue(Value value)
          Give the minimum value stored in the column.
 String name()
          Give the name of che column.
 double rms()
          Give the rms value stored in the column.
 void rmsValue(Value value)
          Give the rms value stored in the column.
 Class type()
          Give the type of the column.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_tuple

private SQLTuple _tuple

_column

private int _column

log

private static Logger log
Logging .

Constructor Detail

SQLTupleColumn

public SQLTupleColumn(SQLTuple tuple,
                      int column)
Create with reference to SQLTuple.

Parameters:
tuple - The SQLTuple containing requested column.
column - The requested column number.
Method Detail

name

public String name()
Give the name of che column.

Specified by:
name in interface IBaseTupleColumn
Specified by:
name in interface FTupleColumn
Returns:
The column's name.

type

public Class type()
Give the type of the column.

Specified by:
type in interface IBaseTupleColumn
Specified by:
type in interface FTupleColumn
Returns:
The column's type.

mean

public double mean()
Give the mean value stored in the column.

Specified by:
mean in interface IBaseTupleColumn
Returns:
The mean value.

rms

public double rms()
Give the rms value stored in the column.

Specified by:
rms in interface IBaseTupleColumn
Returns:
The rms value.

minimum

public double minimum()
Give the minimum value stored in the column.

Specified by:
minimum in interface IBaseTupleColumn
Returns:
The minimum value.

maximum

public double maximum()
Give the maximum value stored in the column.

Specified by:
maximum in interface IBaseTupleColumn
Returns:
The maximum value.

minValue

public void minValue(Value value)
Give the minimum value stored in the column.

Specified by:
minValue in interface FTupleColumn
Parameters:
value - The Value object in which the minimum value is passed.

maxValue

public void maxValue(Value value)
Give the maximum value stored in the column.

Specified by:
maxValue in interface FTupleColumn
Parameters:
value - The Value object in which the maximum value is passed.

meanValue

public void meanValue(Value value)
Give the mean value stored in the column.

Specified by:
meanValue in interface FTupleColumn
Parameters:
value - The Value object in which the mean value is passed.

rmsValue

public void rmsValue(Value value)
Give the rms value stored in the column.

Specified by:
rmsValue in interface FTupleColumn
Parameters:
value - The Value object in which the rms value is passed.

defaultValue

public void defaultValue(Value value)
Give the default value stored in the column.

Specified by:
defaultValue in interface FTupleColumn
Parameters:
value - The Value object in which the default value is passed.

hasDefaultValue

public boolean hasDefaultValue()
Check if the columns have default values.

Specified by:
hasDefaultValue in interface FTupleColumn
Returns:
true.

Written by: J.Hrivnac

Documentation built November 9 2010 on Linux by hrivnac