Polishing
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
* Copyright 2002-2018 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.
|
||||
@@ -36,18 +36,18 @@ import org.springframework.util.Assert;
|
||||
*/
|
||||
public class SqlParameter {
|
||||
|
||||
/** The name of the parameter, if any */
|
||||
// The name of the parameter, if any
|
||||
@Nullable
|
||||
private String name;
|
||||
|
||||
/** SQL type constant from {@code java.sql.Types} */
|
||||
// SQL type constant from {@code java.sql.Types}
|
||||
private final int sqlType;
|
||||
|
||||
/** Used for types that are user-named like: STRUCT, DISTINCT, JAVA_OBJECT, named array types */
|
||||
// Used for types that are user-named like: STRUCT, DISTINCT, JAVA_OBJECT, named array types
|
||||
@Nullable
|
||||
private String typeName;
|
||||
|
||||
/** The scale to apply in case of a NUMERIC or DECIMAL type, if any */
|
||||
// The scale to apply in case of a NUMERIC or DECIMAL type, if any
|
||||
@Nullable
|
||||
private Integer scale;
|
||||
|
||||
|
||||
@@ -53,47 +53,47 @@ import org.springframework.util.StringUtils;
|
||||
*/
|
||||
public class CallMetaDataContext {
|
||||
|
||||
/** Logger available to subclasses */
|
||||
// Logger available to subclasses
|
||||
protected final Log logger = LogFactory.getLog(getClass());
|
||||
|
||||
/** Name of procedure to call **/
|
||||
// Name of procedure to call
|
||||
@Nullable
|
||||
private String procedureName;
|
||||
|
||||
/** Name of catalog for call **/
|
||||
// Name of catalog for call
|
||||
@Nullable
|
||||
private String catalogName;
|
||||
|
||||
/** Name of schema for call **/
|
||||
// Name of schema for call
|
||||
@Nullable
|
||||
private String schemaName;
|
||||
|
||||
/** List of SqlParameter objects to be used in call execution */
|
||||
// List of SqlParameter objects to be used in call execution
|
||||
private List<SqlParameter> callParameters = new ArrayList<>();
|
||||
|
||||
/** Actual name to use for the return value in the output map */
|
||||
// Actual name to use for the return value in the output map
|
||||
@Nullable
|
||||
private String actualFunctionReturnName;
|
||||
|
||||
/** Set of in parameter names to exclude use for any not listed */
|
||||
// Set of in parameter names to exclude use for any not listed
|
||||
private Set<String> limitedInParameterNames = new HashSet<>();
|
||||
|
||||
/** List of SqlParameter names for out parameters */
|
||||
// List of SqlParameter names for out parameters
|
||||
private List<String> outParameterNames = new ArrayList<>();
|
||||
|
||||
/** Indicates whether this is a procedure or a function **/
|
||||
// Indicates whether this is a procedure or a function
|
||||
private boolean function = false;
|
||||
|
||||
/** Indicates whether this procedure's return value should be included **/
|
||||
// Indicates whether this procedure's return value should be included
|
||||
private boolean returnValueRequired = false;
|
||||
|
||||
/** Should we access call parameter meta data info or not */
|
||||
// Should we access call parameter meta data info or not
|
||||
private boolean accessCallParameterMetaData = true;
|
||||
|
||||
/** Should we bind parameter by name **/
|
||||
// Should we bind parameter by name
|
||||
private boolean namedBinding;
|
||||
|
||||
/** The provider of call meta data */
|
||||
// The provider of call meta data
|
||||
@Nullable
|
||||
private CallMetaDataProvider metaDataProvider;
|
||||
|
||||
|
||||
@@ -45,35 +45,35 @@ import org.springframework.util.Assert;
|
||||
*/
|
||||
public class TableMetaDataContext {
|
||||
|
||||
/** Logger available to subclasses */
|
||||
// Logger available to subclasses
|
||||
protected final Log logger = LogFactory.getLog(getClass());
|
||||
|
||||
/** Name of table for this context */
|
||||
// Name of table for this context
|
||||
@Nullable
|
||||
private String tableName;
|
||||
|
||||
/** Name of catalog for this context */
|
||||
// Name of catalog for this context
|
||||
@Nullable
|
||||
private String catalogName;
|
||||
|
||||
/** Name of schema for this context */
|
||||
// Name of schema for this context
|
||||
@Nullable
|
||||
private String schemaName;
|
||||
|
||||
/** List of columns objects to be used in this context */
|
||||
// List of columns objects to be used in this context
|
||||
private List<String> tableColumns = new ArrayList<>();
|
||||
|
||||
/** should we access insert parameter meta data info or not */
|
||||
// Should we access insert parameter meta data info or not
|
||||
private boolean accessTableColumnMetaData = true;
|
||||
|
||||
/** should we override default for including synonyms for meta data lookups */
|
||||
// Should we override default for including synonyms for meta data lookups
|
||||
private boolean overrideIncludeSynonymsDefault = false;
|
||||
|
||||
/** the provider of table meta data */
|
||||
// The provider of table meta data
|
||||
@Nullable
|
||||
private TableMetaDataProvider metaDataProvider;
|
||||
|
||||
/** are we using generated key columns */
|
||||
// Are we using generated key columns
|
||||
private boolean generatedKeyColumnsUsed = false;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user