@Test public void testParameterImpl() { ParameterImpl.Builder builder = new ParameterImpl.Builder(); builder.setName("someParameter") .setType("someType") .setNullable(false) .setUnicode(false) .setPrecision(202L) .setMaxLength(203L) .setScale(204L) .setSRID(205L); Parameter parameter = builder.build(); assertThat(parameter.getName(), is("someParameter")); assertThat(parameter.getType(), is("someType")); assertThat(parameter.getPrecision(), is(202L)); assertThat(parameter.getMaxLength(), is(203L)); assertThat(parameter.getScale(), is(204L)); assertThat(parameter.getSRID(), is(205L)); assertFalse(parameter.isNullable()); assertFalse(parameter.isUnicode()); }
private ParameterImpl(Builder builder) { this.name = builder.name; this.type = builder.type; this.nullable = builder.nullable; this.maxLength = builder.maxLength; this.precision = builder.precision; this.scale = builder.scale; this.srid = builder.srid; this.unicode = builder.unicode; this.javaField = builder.javaField; }
ParameterImpl implements Parameter { private ParameterImpl(Builder builder) { this.name = builder.name; this.type = builder.type; this.nullable = builder.nullable; this.maxLength = builder.maxLength; this.precision = builder.precision; this.scale = builder.scale; this.srid = builder.srid; this.unicode = builder.unicode; this.javaField = builder.javaField; } }
ParameterImpl implements Parameter { private ParameterImpl(Builder builder) { this.name = builder.name; this.type = builder.type; this.nullable = builder.nullable; this.maxLength = builder.maxLength; this.precision = builder.precision; this.scale = builder.scale; this.srid = builder.srid; this.unicode = builder.unicode; this.javaField = builder.javaField; } private  ParameterImpl(Builder builder); }
ParameterImpl implements Parameter { private ParameterImpl(Builder builder) { this.name = builder.name; this.type = builder.type; this.nullable = builder.nullable; this.maxLength = builder.maxLength; this.precision = builder.precision; this.scale = builder.scale; this.srid = builder.srid; this.unicode = builder.unicode; this.javaField = builder.javaField; } private  ParameterImpl(Builder builder); @Override String getName(); @Override String getType(); @Override boolean isNullable(); @Override long getMaxLength(); @Override long getPrecision(); @Override long getScale(); @Override long getSRID(); @Override boolean isUnicode(); @Override Field getJavaField(); }
ParameterImpl implements Parameter { private ParameterImpl(Builder builder) { this.name = builder.name; this.type = builder.type; this.nullable = builder.nullable; this.maxLength = builder.maxLength; this.precision = builder.precision; this.scale = builder.scale; this.srid = builder.srid; this.unicode = builder.unicode; this.javaField = builder.javaField; } private  ParameterImpl(Builder builder); @Override String getName(); @Override String getType(); @Override boolean isNullable(); @Override long getMaxLength(); @Override long getPrecision(); @Override long getScale(); @Override long getSRID(); @Override boolean isUnicode(); @Override Field getJavaField();  }