Method | Description |
public void <init>(
com.pavelvlasov.sql.SQLProcessor processor
)
| Constructor |
public int deleteHistory(
)
throws java.sql.SQLException | Executes update and returns number of affected rows. Deletes all records from HISTORY |
public int deleteHistory(
int Id
)
throws java.sql.SQLException | Executes update and returns number of affected rows. Deletes by primary key from HISTORY |
public java.util.Collection getHistory(
)
| Executes query, returns database backed collection with elements of type org.hammurapi.inspectors.history.History. Selects all rows from HISTORY |
public java.util.Collection getHistory(
com.pavelvlasov.convert.Converter converter
)
| Executes query, returns database backed collection with elements of type org.hammurapi.inspectors.history.History. If converter is not null then elements will be results of conversion.Selects all rows from HISTORY |
public java.util.Collection getHistory(
Class targetClass
)
| Executes query, returns database backed collection with elements of type org.hammurapi.inspectors.history.History. If targetClass is not null then elements will be of targetClass typeSelects all rows from HISTORY |
public java.util.Collection getHistory(
java.util.Collection receiver
)
throws java.sql.SQLException | Executes query, populates collection with elements of type org.hammurapi.inspectors.history.History and returns populated collection. Selects all rows from HISTORY |
public java.util.Collection getHistory(
java.util.Collection receiver, com.pavelvlasov.convert.Converter converter
)
throws java.sql.SQLException | Executes query, populates collection with elements of type org.hammurapi.inspectors.history.History and returns populated collection. If converter is not null then elements will be results of conversion. Selects all rows from HISTORY |
public java.util.Collection getHistory(
java.util.Collection receiver, Class targetClass
)
throws java.sql.SQLException | Executes query, populates collection with elements of type org.hammurapi.inspectors.history.History and returns populated collection. If targetClass is not null then elements will be of targetClass type. Selects all rows from HISTORY |
public History getHistory(
int Id
)
throws java.sql.SQLException | Executes query and returns single object. Selects by primary key from HISTORY |
public History getHistory(
int Id, Class targetClass
)
throws java.sql.SQLException | Executes query and returns single object of target class type. Target class must be return type compatible. Selects by primary key from HISTORY |
public java.util.Collection getJoinedHistory(
String p1
)
| Executes query, returns database backed collection with elements of type org.hammurapi.inspectors.history.JoinedHistory. Selects report history data joined with result and report for additional information. Ordered by date. Parameters: report name |
public java.util.Collection getJoinedHistory(
String p1, com.pavelvlasov.convert.Converter converter
)
| Executes query, returns database backed collection with elements of type org.hammurapi.inspectors.history.JoinedHistory. If converter is not null then elements will be results of conversion.Selects report history data joined with result and report for additional information. Ordered by date. Parameters: report name |
public java.util.Collection getJoinedHistory(
String p1, Class targetClass
)
| Executes query, returns database backed collection with elements of type org.hammurapi.inspectors.history.JoinedHistory. If targetClass is not null then elements will be of targetClass typeSelects report history data joined with result and report for additional information. Ordered by date. Parameters: report name |
public java.util.Collection getJoinedHistory(
String p1, java.util.Collection receiver
)
throws java.sql.SQLException | Executes query, populates collection with elements of type org.hammurapi.inspectors.history.JoinedHistory and returns populated collection. Selects report history data joined with result and report for additional information. Ordered by date. Parameters: report name |
public java.util.Collection getJoinedHistory(
String p1, java.util.Collection receiver, com.pavelvlasov.convert.Converter converter
)
throws java.sql.SQLException | Executes query, populates collection with elements of type org.hammurapi.inspectors.history.JoinedHistory and returns populated collection. If converter is not null then elements will be results of conversion. Selects report history data joined with result and report for additional information. Ordered by date. Parameters: report name |
public java.util.Collection getJoinedHistory(
String p1, java.util.Collection receiver, Class targetClass
)
throws java.sql.SQLException | Executes query, populates collection with elements of type org.hammurapi.inspectors.history.JoinedHistory and returns populated collection. If targetClass is not null then elements will be of targetClass type. Selects report history data joined with result and report for additional information. Ordered by date. Parameters: report name |
public String getLastDescription(
java.sql.Timestamp p1
)
throws java.sql.SQLException | Executes query and returns value of the first (the only) column in the first row. Parameters: REPORT_DATE |
public java.util.Collection getReportWithoutHistory(
String p1, int p2
)
| Executes query, returns database backed collection with elements of type org.hammurapi.inspectors.history.ReportWithoutHistory. Selects reports, which do not have history entry. Parameters: report name, current report Id |
public java.util.Collection getReportWithoutHistory(
String p1, int p2, com.pavelvlasov.convert.Converter converter
)
| Executes query, returns database backed collection with elements of type org.hammurapi.inspectors.history.ReportWithoutHistory. If converter is not null then elements will be results of conversion.Selects reports, which do not have history entry. Parameters: report name, current report Id |
public java.util.Collection getReportWithoutHistory(
String p1, int p2, Class targetClass
)
| Executes query, returns database backed collection with elements of type org.hammurapi.inspectors.history.ReportWithoutHistory. If targetClass is not null then elements will be of targetClass typeSelects reports, which do not have history entry. Parameters: report name, current report Id |
public java.util.Collection getReportWithoutHistory(
String p1, int p2, java.util.Collection receiver
)
throws java.sql.SQLException | Executes query, populates collection with elements of type org.hammurapi.inspectors.history.ReportWithoutHistory and returns populated collection. Selects reports, which do not have history entry. Parameters: report name, current report Id |
public java.util.Collection getReportWithoutHistory(
String p1, int p2, java.util.Collection receiver, com.pavelvlasov.convert.Converter converter
)
throws java.sql.SQLException | Executes query, populates collection with elements of type org.hammurapi.inspectors.history.ReportWithoutHistory and returns populated collection. If converter is not null then elements will be results of conversion. Selects reports, which do not have history entry. Parameters: report name, current report Id |
public java.util.Collection getReportWithoutHistory(
String p1, int p2, java.util.Collection receiver, Class targetClass
)
throws java.sql.SQLException | Executes query, populates collection with elements of type org.hammurapi.inspectors.history.ReportWithoutHistory and returns populated collection. If targetClass is not null then elements will be of targetClass type. Selects reports, which do not have history entry. Parameters: report name, current report Id |
public int insertHistory(
int Id, long Codebase, Integer MaxSeverity, long Reviews, double ViolationLevel, long Violations, long WaivedViolations, int HasWarnings, double ChangeRatio, int CompilationUnits, java.sql.Timestamp ReportDate, String Name, String Description, Long ExecutionTime
)
throws java.sql.SQLException | Executes update and returns number of affected rows. Inserts new record into HISTORY |
public int insertHistory(
History rowInterface
)
throws java.sql.SQLException | Executes update and returns number of affected rows. Inserts new record into HISTORY |
public void processHistory(
com.pavelvlasov.sql.RowProcessor processor
)
throws java.sql.SQLException | Executes query, iterates over rows and invokes methods of RowProcessor for each row. Selects all rows from HISTORY |
public void processJoinedHistory(
String p1, com.pavelvlasov.sql.RowProcessor processor
)
throws java.sql.SQLException | Executes query, iterates over rows and invokes methods of RowProcessor for each row. Selects report history data joined with result and report for additional information. Ordered by date. Parameters: report name |
public void processReportWithoutHistory(
String p1, int p2, com.pavelvlasov.sql.RowProcessor processor
)
throws java.sql.SQLException | Executes query, iterates over rows and invokes methods of RowProcessor for each row. Selects reports, which do not have history entry. Parameters: report name, current report Id |
public int updateHistory(
History rowInterface
)
throws java.sql.SQLException | Executes update and returns number of affected rows. Updates record with by primary key in HISTORY |