net.sourceforge.backpedal.impl.core
Class ParsedStatementImpl

java.lang.Object
  |
  +--net.sourceforge.backpedal.impl.core.ParsedStatementImpl
All Implemented Interfaces:
ParsedStatement

public class ParsedStatementImpl
extends Object
implements ParsedStatement


Method Summary
 String[] getChangedColumnNames()
          Return the names of the columns affected by the SQL statement this represents.
 String getSqlKeyword()
          Return one of INSERT, UPDATE or DELETE, depending on what type of SQL statement this represents.
 String getTableName()
          Return the name of the table being affected by the SQL statement this represents.
 String[] getWhereColumnNames()
          Return the names of the columns involved in the where clause of the SQL statement this represents.
 String toString()
           
 String unparsedSql()
          Return the original, unparsed SQL that this represents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getSqlKeyword

public String getSqlKeyword()
Description copied from interface: ParsedStatement
Return one of INSERT, UPDATE or DELETE, depending on what type of SQL statement this represents.

Specified by:
getSqlKeyword in interface ParsedStatement

getWhereColumnNames

public String[] getWhereColumnNames()
Description copied from interface: ParsedStatement
Return the names of the columns involved in the where clause of the SQL statement this represents. In the case of UPDATE TABLE SET A=B, C=D WHERE E=F and G=H, the result would be E and G.

Specified by:
getWhereColumnNames in interface ParsedStatement

getTableName

public String getTableName()
Description copied from interface: ParsedStatement
Return the name of the table being affected by the SQL statement this represents.

Specified by:
getTableName in interface ParsedStatement

getChangedColumnNames

public String[] getChangedColumnNames()
Description copied from interface: ParsedStatement
Return the names of the columns affected by the SQL statement this represents. In the case of UPDATE TABLE SET A=B, C=D WHERE E=F and G=H, the result would be A and C.

Specified by:
getChangedColumnNames in interface ParsedStatement

unparsedSql

public String unparsedSql()
Description copied from interface: ParsedStatement
Return the original, unparsed SQL that this represents.

Specified by:
unparsedSql in interface ParsedStatement

toString

public String toString()
Overrides:
toString in class Object


Copyright © Sourceforge. All Rights Reserved.