Polishing

This commit is contained in:
Juergen Hoeller
2017-03-21 17:44:47 +01:00
parent 85f64706a8
commit e892e02f41
19 changed files with 162 additions and 137 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2007 the original author or authors.
* Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -21,16 +21,23 @@ package org.springframework.jdbc.core.metadata;
*
* @author Thomas Risberg
* @since 2.5
* @see GenericCallMetaDataProvider
*/
public class CallParameterMetaData {
private String parameterName;
private int parameterType;
private int sqlType;
private String typeName;
private boolean nullable;
/**
* Constructor taking all the properties
* Constructor taking all the properties.
*/
public CallParameterMetaData(String columnName, int columnType, int sqlType, String typeName, boolean nullable) {
this.parameterName = columnName;
@@ -45,34 +52,35 @@ public class CallParameterMetaData {
* Get the parameter name.
*/
public String getParameterName() {
return parameterName;
return this.parameterName;
}
/**
* Get the parameter type.
*/
public int getParameterType() {
return parameterType;
return this.parameterType;
}
/**
* Get the parameter SQL type.
*/
public int getSqlType() {
return sqlType;
return this.sqlType;
}
/**
* Get the parameter type name.
*/
public String getTypeName() {
return typeName;
return this.typeName;
}
/**
* Get whether the parameter is nullable.
*/
public boolean isNullable() {
return nullable;
return this.nullable;
}
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2007 the original author or authors.
* Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -21,6 +21,7 @@ package org.springframework.jdbc.core.metadata;
*
* @author Thomas Risberg
* @since 2.5
* @see GenericTableMetaDataProvider
*/
public class TableParameterMetaData {