Compoze Software, Inc.

com.compoze.exchange.webdav.sql
Class CastFunction


java.lang.Object

  |

  +--com.compoze.exchange.webdav.sql.AbstractSqlFragment

        |

        +--com.compoze.exchange.webdav.sql.AbstractFunction

              |

              +--com.compoze.exchange.webdav.sql.CastFunction

All Implemented Interfaces:
IFunction, ISqlFragment, java.io.Serializable

public final class CastFunction
extends AbstractFunction
implements java.io.Serializable

This class creates a function clause based on the SQL function CAST. CAST function assigns a data type to a property.

See Also:
Serialized Form

Fields inherited from class com.compoze.exchange.webdav.sql.AbstractFunction
m_sPropName, m_values
 
Constructor Summary
CastFunction(boolean bValue)
          Constructor.
CastFunction(double dValue)
          Constructor.
CastFunction(float fValue)
          Constructor.
CastFunction(int iValue)
          Constructor.
CastFunction(java.lang.Object value, java.lang.String sAs)
          Constructor.
 
Method Summary
 java.lang.String getName()
          Gets the name of the property.
 java.lang.Object[] getValues()
          Gets an array of values of the property.
static void main(java.lang.String[] args)
           
 java.lang.String toSQL()
          Returns a string representation of the clause.
 
Methods inherited from class com.compoze.exchange.webdav.sql.AbstractFunction
getValue
 
Methods inherited from class com.compoze.exchange.webdav.sql.AbstractSqlFragment
escape, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CastFunction


public CastFunction(java.lang.Object value,
                    java.lang.String sAs)
Constructor.
Parameters:
value - the value to cast
sAs - the type to cast to

CastFunction


public CastFunction(int iValue)
Constructor.
Parameters:
iValue - the value to cast

CastFunction


public CastFunction(double dValue)
Constructor.
Parameters:
dValue - the value to cast

CastFunction


public CastFunction(float fValue)
Constructor.
Parameters:
fValue - the value to cast

CastFunction


public CastFunction(boolean bValue)
Constructor.
Parameters:
bValue - the value to cast
Method Detail

getName


public java.lang.String getName()
Description copied from class: AbstractFunction
Gets the name of the property.
Overrides:
getName in class AbstractFunction
Throws:
UnsupportedOperationException - if the getName operation is not supported by this distribution list.

getValues


public java.lang.Object[] getValues()
Description copied from class: AbstractFunction
Gets an array of values of the property.
Overrides:
getValues in class AbstractFunction
Throws:
UnsupportedOperationException - if the getValues operation is not supported by this distribution list.

toSQL


public java.lang.String toSQL()
Returns a string representation of the clause.
Overrides:
toSQL in class AbstractFunction
Returns:
the string representation of the clause.

main


public static void main(java.lang.String[] args)

Compoze Software, Inc.

Copyright ©1999-2003 Compoze Software, Inc. All rights reserved.