net.sourceforge.backpedal.api.core
Interface ParsedStatement

All Known Implementing Classes:
ParsedStatementImpl

public interface 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 unparsedSql()
          Return the original, unparsed SQL that this represents.
 

Method Detail

getSqlKeyword

public String getSqlKeyword()
Return one of INSERT, UPDATE or DELETE, depending on what type of SQL statement this represents.


getTableName

public String getTableName()
Return the name of the table being affected by the SQL statement this represents.


getWhereColumnNames

public String[] getWhereColumnNames()
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.


getChangedColumnNames

public String[] getChangedColumnNames()
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.


unparsedSql

public String unparsedSql()
Return the original, unparsed SQL that this represents.



Copyright © Sourceforge. All Rights Reserved.