/**
* INTERNAL:
* Build a runtime record type from the meta-data.
*/
public PLSQLrecord process() {
PLSQLrecord record = new PLSQLrecord();
super.process(record);
for (PLSQLParameterMetadata field : this.fields) {
PLSQLargument argument = new PLSQLargument();
argument.name = field.getName();
argument.databaseType = getDatabaseTypeEnum(field.getDatabaseType());
if (field.getLength() != null) {
argument.length = field.getLength();
}
if (field.getPrecision() != null) {
argument.precision = field.getPrecision();
}
if (field.getScale() != null) {
argument.scale = field.getScale();
}
record.addField(argument);
}
return record;
}