mirror of https://github.com/apache/openjpa.git
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:
parent
ffd2a7bfed
commit
14d8109f95
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue