1 package com.randomnoun.common.jexl.sql;
2
3 /* (c) 2013 randomnoun. All Rights Reserved. This work is licensed under a
4 * BSD Simplified License. (http://www.randomnoun.com/bsd-simplified.html)
5 */
6
7
8 /**
9 * An object representing a variable that can be passed in as a positional parameter.
10 *
11 * <p>See SqlGenerator for a description of how this class is intended to be used.
12 *
13 *
14 * @author knoxg
15 */
16 public class PositionalParameter
17 {
18 /** The name of this positional parameter. */
19 private String name;
20
21 /** Create a new Positional Parameter
22 *
23 * @param name A name for this positional parameter, which is returned
24 * in the VAR_PARAMETERS list when the parameter is referenced in generated SQL.
25 */
26 public PositionalParameter(String name)
27 {
28 this.name = name;
29 }
30
31 /** Retrieves the name of this positional parameter */
32 public String getName()
33 {
34 return name;
35 }
36 }