public class ProcedureParameter extends Object implements ConfigurationNode, CayenneMapEntry, XMLSerializable, Serializable
Modifier and Type | Field and Description |
---|---|
protected int |
direction |
static int |
IN_OUT_PARAMETER |
static int |
IN_PARAMETER |
protected int |
maxLength |
protected String |
name |
static int |
OUT_PARAMETER |
protected int |
precision |
protected Procedure |
procedure |
protected int |
type |
Constructor and Description |
---|
ProcedureParameter()
Creates unnamed ProcedureParameter.
|
ProcedureParameter(String name) |
ProcedureParameter(String name,
int type,
int direction) |
Modifier and Type | Method and Description |
---|---|
<T> T |
acceptVisitor(ConfigurationNodeVisitor<T> visitor) |
void |
encodeAsXML(XMLEncoder encoder)
Prints itself as XML to the provided PrintWriter.
|
int |
getDirection()
Returns the direction of this parameter.
|
int |
getMaxLength() |
String |
getName()
Returns the name property of this object.
|
Object |
getParent()
Returns the parent map.
|
int |
getPrecision() |
Procedure |
getProcedure()
Returns the procedure that holds this parameter.
|
int |
getType() |
boolean |
isInParameter() |
boolean |
isOutParam() |
void |
setDirection(int direction)
Sets the direction of this parameter.
|
void |
setMaxLength(int i) |
void |
setName(String name) |
void |
setParent(Object parent)
Stores the parent map.
|
void |
setPrecision(int i) |
void |
setProcedure(Procedure procedure)
Sets the procedure that holds this parameter.
|
void |
setType(int i) |
public static final int IN_OUT_PARAMETER
public static final int IN_PARAMETER
public static final int OUT_PARAMETER
protected String name
protected Procedure procedure
protected int direction
protected int maxLength
protected int precision
protected int type
public ProcedureParameter()
public ProcedureParameter(String name)
public ProcedureParameter(String name, int type, int direction)
public <T> T acceptVisitor(ConfigurationNodeVisitor<T> visitor)
acceptVisitor
in interface ConfigurationNode
public String getName()
CayenneMapEntry
getName
in interface CayenneMapEntry
public void setName(String name)
public Object getParent()
CayenneMapEntry
getParent
in interface CayenneMapEntry
public void setParent(Object parent)
CayenneMapEntry
setParent
in interface CayenneMapEntry
public void encodeAsXML(XMLEncoder encoder)
encodeAsXML
in interface XMLSerializable
public int getDirection()
public int getMaxLength()
public int getPrecision()
public int getType()
public boolean isInParameter()
true
if this is IN or INOUT parameter.public boolean isOutParam()
true
if this is OUT or INOUT parameter.public void setDirection(int direction)
public void setMaxLength(int i)
public void setPrecision(int i)
public void setType(int i)
public Procedure getProcedure()
public void setProcedure(Procedure procedure)
Copyright © 2001–2019 Apache Cayenne. All rights reserved.