|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.map.ProcedureParameter
public class ProcedureParameter
A descriptor for the Procedure parameter.
Field Summary | |
---|---|
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 Summary | |
---|---|
ProcedureParameter()
Creates unnamed ProcedureParameter. |
|
ProcedureParameter(String name)
|
|
ProcedureParameter(String name,
int type,
int direction)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public ProcedureParameter()
public ProcedureParameter(String name)
public ProcedureParameter(String name, int type, int direction)
Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |