|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.engine.TWGDbColumn
com.tivoli.twg.engine.TWGDbDoubleColumn
TWGDbDoubleColumn is a container class that encapsulates a database table column where the column type is double.
Field Summary | |
---|---|
static double |
NULL
Value substituted into query results to indicate the database value was null. |
Constructor Summary | |
---|---|
TWGDbDoubleColumn(java.lang.String realName,
java.lang.String tokenName)
Create a column TWGDbDoubleColumn that holds JDBC DOUBLE type data (java double) |
|
TWGDbDoubleColumn(TWGDbDoubleColumn copyCol)
Create a TWGDbDoubleColumn by copying another one |
Method Summary | |
---|---|
protected TWGDbColumn |
createFilterColumn(java.util.Locale loc,
TWGDatabaseTable table)
Create a filter version of this column (display name is translated). |
protected java.io.Serializable |
getDistinctValues(java.util.Locale loc,
TWGDatabaseTable table)
Get column distinct values (database engine use) |
double[] |
getValues()
Gets the array of distinct values for this column. |
protected void |
insertDistinctValue(java.lang.Object value)
This method is protected as an implementation side effect. |
protected void |
replaceDistinctValues(DoubleValueSet newValues)
This method is protected as an implementation side effect. |
protected void |
replaceDistinctValues(java.sql.ResultSet rs)
This method is protected as an implementation side effect. |
void |
setDefaultValue(double defaultValue)
Set a default value for this column. |
void |
setDefaultValue(java.lang.Double defaultValue)
Set a default value for this column. |
void |
setDistinctValues(DoubleValueSet values)
Set the distinct values for this column to a constant set. |
protected void |
setDistinctValues(java.lang.Object vals)
Set column distinct values (console use) |
void |
setInitialDistinctValues(TWGDouble dv)
Set the initial distinct values for this column. |
void |
setInitialDistinctValues(TWGDoubleArray dv)
Set the initial distinct values for this column. |
java.lang.String |
toString()
Convert column to String for debug |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final double NULL
Constructor Detail |
public TWGDbDoubleColumn(java.lang.String realName, java.lang.String tokenName)
realName
- -- the actual column name for the tabletokenName
- -- a nickname used to refer to the column for allpublic TWGDbDoubleColumn(TWGDbDoubleColumn copyCol)
copyCol
- -- the column to be copiedMethod Detail |
protected TWGDbColumn createFilterColumn(java.util.Locale loc, TWGDatabaseTable table)
createFilterColumn
in class TWGDbColumn
loc
- - the locale to use for translationstable
- - the TWGDatabaseTable that this column belongs to
protected java.io.Serializable getDistinctValues(java.util.Locale loc, TWGDatabaseTable table)
getDistinctValues
in class TWGDbColumn
protected void setDistinctValues(java.lang.Object vals)
setDistinctValues
in class TWGDbColumn
protected void replaceDistinctValues(java.sql.ResultSet rs) throws TWGDbException
Replace the saved list of distinct values with a new set from a database query.
replaceDistinctValues
in class TWGDbColumn
rs
- - The query ResultSet.
TWGDbException
protected void replaceDistinctValues(DoubleValueSet newValues)
Replace the saved list of distinct values with a new set from a database query.
newValues
- - The DoubleValueSet containing the new valuesDoubleValueSet
protected void insertDistinctValue(java.lang.Object value) throws TWGDbException
Insert a distinct value into the list of distinct values.
insertDistinctValue
in class TWGDbColumn
value
- - The value to be inserted.
TWGDbException
public double[] getValues()
public void setDefaultValue(double defaultValue)
defaultValue
- -- the valuepublic void setDefaultValue(java.lang.Double defaultValue)
defaultValue
- -- the valuepublic void setDistinctValues(DoubleValueSet values)
This method should be called only in the create method of a TWGDatabaseTable subclass when defining the table
values
- - The DoubleValueSet containing the constant distinct valuesDoubleValueSet
public void setInitialDistinctValues(TWGDouble dv)
dv
- - TWGDouble datavaluepublic void setInitialDistinctValues(TWGDoubleArray dv)
dv
- - TWGDoubleArray datavaluepublic java.lang.String toString()
toString
in class TWGDbColumn
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |