Long findLocId(Location loc) throws SQLException, TypeMismatchException
{
- Column[] columns = { CfbSchema.LOCATIONS.getColumn(CfbSchema.LOCID) };
+ Column[] columns = { CfbSchema.LOCID };
Table[] tables = { CfbSchema.LOCATIONS };
Condition[] conditions = {
- new Condition( CfbSchema.LOCATIONS.getColumn(CfbSchema.CLASSNAME),
- loc.getClassName(),
- Operation.EQUAL
- ),
- new Condition( CfbSchema.LOCATIONS.getColumn(CfbSchema.METHODNAME),
- loc.getMethodName(),
- Operation.EQUAL
- ),
- new Condition( CfbSchema.LOCATIONS.getColumn(CfbSchema.STARTLINE),
- loc.getStart(),
- Operation.EQUAL
- ),
- new Condition( CfbSchema.LOCATIONS.getColumn(CfbSchema.ENDLINE),
- loc.getEnd(),
- Operation.EQUAL
- )
+ new Condition( CfbSchema.CLASSNAME, loc.getClassName(), Operation.EQUAL ),
+ new Condition( CfbSchema.METHODNAME, loc.getMethodName(), Operation.EQUAL ),
+ new Condition( CfbSchema.STARTLINE, loc.getStart(), Operation.EQUAL ),
+ new Condition( CfbSchema.ENDLINE, loc.getEnd(), Operation.EQUAL )
};
List<Row> rows = m_driver.select(m_con, columns, tables, conditions);
if (rows.size() > 0) {