ChangeRequest request = new ChangeRequest(this, "Record buffer sizes") {
protected void _execute() throws KernelException {
Iterator relations = container.relationList().iterator();
while (relations.hasNext()) {
Relation relation = (Relation) relations.next();
Object bufferSizeObject = minimumBufferSizes.get(relation);
if (bufferSizeObject instanceof Integer) {
int bufferSize = ((Integer) bufferSizeObject)
.intValue();
DFUtilities.setOrCreate(relation, "bufferSize",
bufferSize);
if (_debugging) {
_debug("Adding bufferSize parameter to "
+ relation.getName() + " with value "
+ bufferSize);
}
} else if (bufferSizeObject instanceof String) {
String bufferSizeExpression = (String) bufferSizeObject;
DFUtilities.setOrCreate(relation, "bufferSize", "\""
+ bufferSizeExpression + "\"");
if (_debugging) {
_debug("Adding bufferSize parameter to "
+ relation.getName() + " with expression "
+ bufferSizeExpression);
}
} else if (bufferSizeObject == null) {
} else {
throw new InternalErrorException(