OPENJPA-2099: Restore getColumns() method

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1224782 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Pinaki Poddar 2011-12-26 18:08:35 +00:00
parent ffd2a7bfed
commit 14d8109f95
1 changed files with 15 additions and 0 deletions

View File

@ -280,6 +280,21 @@ public final class SQLBuffer
}
return userParam;
}
/**
* Gets the columns associated with the binding parameters.
* All binding parameter may not have an associated column.
*/
public List<Column> getColumns() {
if (_params == null)
return Collections.emptyList();
List<Column> columns = new ArrayList<Column>();
for (BindParameter param : _params) {
columns.add(param.getColumn());
}
return columns;
}
/**
* Return the SQL for this buffer.