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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CastFunction
public CastFunction(java.lang.Object value,
java.lang.String sAs)
- Constructor.
- Parameters:
value
- the value to castsAs
- 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
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)
Copyright ©1999-2003 Compoze Software, Inc. All rights reserved.