public void setParent(Object parent) { if (parent != null && !(parent instanceof Procedure)) { throw new IllegalArgumentException("Expected null or Procedure, got: " + parent); } setProcedure((Procedure) parent); }
public void setParent(Object parent) { if (parent != null && !(parent instanceof Procedure)) { throw new IllegalArgumentException("Expected null or Procedure, got: " + parent); } setProcedure((Procedure) parent); }
/** * Adds new call parameter to the stored procedure. Also sets <code>param</code>'s * parent to be this procedure. */ public void addCallParameter(ProcedureParameter param) { if (param.getName() == null) { throw new IllegalArgumentException("Attempt to add unnamed parameter."); } if (callParameters.contains(param)) { throw new IllegalArgumentException( "Attempt to add the same parameter more than once:" + param); } param.setProcedure(this); callParameters.add(param); }
/** * Adds new call parameter to the stored procedure. Also sets <code>param</code>'s * parent to be this procedure. */ public void addCallParameter(ProcedureParameter param) { if (param.getName() == null) { throw new IllegalArgumentException("Attempt to add unnamed parameter."); } if (callParameters.contains(param)) { throw new IllegalArgumentException( "Attempt to add the same parameter more than once:" + param); } param.setProcedure(this); callParameters.add(param); }
column.setMaxLength(rs.getInt("LENGTH")); column.setPrecision(decimalDigits); column.setProcedure(procedure);
column.setProcedure(procedure); column.setType(columnType); procedure.addCallParameter(column);