com.cyclops.dbdigger.sqlcastor
Class DefaultSQLCastor

java.lang.Object
  extended bycom.cyclops.dbdigger.sqlcastor.DefaultSQLCastor
All Implemented Interfaces:
SQLCastor
Direct Known Subclasses:
SQLCastor

public class DefaultSQLCastor
extends Object
implements SQLCastor

Add description HERE!

Since:
2003-6-10 15:28:13
Author:
joel guo

Field Summary
 
Fields inherited from interface com.cyclops.dbdigger.sqlcastor.SQLCastor
ROLE
 
Constructor Summary
DefaultSQLCastor()
           
 
Method Summary
 String cast(SQL sql)
          Override method cast() of super class
protected  String castColumnName(Column column)
          Method castColumnName()
protected  String castCombination(Combination combination)
          Method castCombination()
protected  String castComparison(Comparison comparison)
          Method castComparison()
protected  String castCondition(Condition criterion)
          Cast Condition object to SQL expression
protected  String castDelete(Delete delete)
          Cast delete sql
protected  String castInsert(Insert insert)
          Method castInsert()
protected  String castOrderBys(OrderBy[] orderBys)
          Method castOrderBys()
protected  String castSelect(Select select)
          Method castSelect()
protected  String castTableName(Table table)
          Cast name of the table
protected  String castUpdate(Update aupdate)
          Method castUpdate()
protected  String castValue(Column column, Object value)
          Method castValue()
protected  String castValueExpression(Column column, Object valueObject)
          Method castValueExpression()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSQLCastor

public DefaultSQLCastor()
Method Detail

cast

public String cast(SQL sql)
Override method cast() of super class

Specified by:
cast in interface SQLCastor
Parameters:
sql - SQL object to be cast
Returns:
SQL expression
See Also:
com.cyclops.dbdigger.driver.SQLCastor#cast(com.cyclops.dbdigger.sql.Statement)

castColumnName

protected String castColumnName(Column column)
Method castColumnName()

Parameters:
column - Column object
Returns:
Tablename.Columnname

castCombination

protected String castCombination(Combination combination)
Method castCombination()

Parameters:
combination - Combination object
Returns:
Casting result

castComparison

protected String castComparison(Comparison comparison)
Method castComparison()

Parameters:
comparison - Comparison criterion
Returns:
String expression

castCondition

protected String castCondition(Condition criterion)
Cast Condition object to SQL expression

Parameters:
criterion - Condition object
Returns:
Casting result

castDelete

protected String castDelete(Delete delete)
Cast delete sql

Parameters:
delete - Delete sql object
Returns:
Casting result

castInsert

protected String castInsert(Insert insert)
Method castInsert()

Parameters:
insert - Insert object
Returns:
Casting result

castSelect

protected String castSelect(Select select)
Method castSelect()

Parameters:
select - Select query object
Returns:
Casting result

castTableName

protected String castTableName(Table table)
Cast name of the table

Parameters:
table - Table object
Returns:
Name of the table

castUpdate

protected String castUpdate(Update aupdate)
Method castUpdate()

Parameters:
aupdate - Update query object
Returns:
Casting result

castValue

protected String castValue(Column column,
                           Object value)
Method castValue()

Parameters:
column - Column for this value
value - Value object, could be a Column
Returns:
Casting result

castValueExpression

protected String castValueExpression(Column column,
                                     Object valueObject)
Method castValueExpression()

Parameters:
column - Column for this value
valueObject - Value object, never to a Column
Returns:
Casting result

castOrderBys

protected String castOrderBys(OrderBy[] orderBys)
Method castOrderBys()

Parameters:
orderBys - Array of order by objects
Returns:
Order by sql string


Copyright © 2003 Cyclops Group. All Rights Reserved.