|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.ojb.broker.metadata.ProcedureDescriptor org.apache.ojb.broker.metadata.DeleteProcedureDescriptor
public class DeleteProcedureDescriptor
An DeleteProcedureDescriptor contains information that is related to the
procedure/function that is used to handle the deleting of existing records.
Note: Be careful when use DeleteProcedureDescriptor variables or caching
DeleteProcedureDescriptor instances, because instances could become invalid
during runtime (see MetadataManager
).
Field Summary |
---|
Constructor Summary | |
---|---|
DeleteProcedureDescriptor(ClassDescriptor classDescriptor,
String name,
boolean includePkFieldsOnly)
Constructor declaration |
Method Summary | |
---|---|
void |
addArgument(ArgumentDescriptor argument)
Add an argument |
void |
addAttribute(String attributeName,
String attributeValue)
Store the specified attribute and it's value. |
String |
getAttribute(String attributeName)
Get the value of an attribute |
String |
getAttribute(String attributeName,
String defaultValue)
Get the value of an attribute |
String[] |
getAttributeNames()
Returns an array of the names of all atributes of this descriptor. |
Map |
getAttributes()
Returns the attribute map (name, value) of this descriptor. |
boolean |
getIncludePkFieldsOnly()
Retrieve the value that indicates if the argument list for this procedure includes only the field-descriptors from the related class-descriptor that are identified as being part of the primary key. |
String |
toString()
Provide a string representation of this object |
String |
toXML()
returns the XML marshalled version of this instance. |
Methods inherited from class org.apache.ojb.broker.metadata.ProcedureDescriptor |
---|
addArguments, getArgumentCount, getArguments, getClassDescriptor, getName, getReturnValueFieldRef, getReturnValueFieldRefName, hasReturnValue, hasReturnValues, setReturnValueFieldRef, setReturnValueFieldRef |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DeleteProcedureDescriptor(ClassDescriptor classDescriptor, String name, boolean includePkFieldsOnly)
Method Detail |
---|
public boolean getIncludePkFieldsOnly()
public final void addArgument(ArgumentDescriptor argument)
The argument will be added only if this procedure is not configured
to include just the
primary key fields
.
addArgument
in class ProcedureDescriptor
public String toXML()
XmlCapable
toXML
in interface XmlCapable
toXML
in class ProcedureDescriptor
public String toString()
public void addAttribute(String attributeName, String attributeValue)
AttributeContainer
addAttribute
in interface AttributeContainer
attributeName
- the name of the attribute to retrieveattributeValue
- the attribute's valueAttributeContainer.addAttribute(String, String)
public String getAttribute(String attributeName, String defaultValue)
AttributeContainer
getAttribute
in interface AttributeContainer
attributeName
- the attribute to retrievedefaultValue
- the value to return if the attribute is not present
AttributeContainer.getAttribute(String, String)
public String getAttribute(String attributeName)
AttributeContainer
getAttribute
in interface AttributeContainer
attributeName
- the attribute to retrieve
AttributeContainer.getAttribute(String)
public Map getAttributes()
public String[] getAttributeNames()
null
)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |