org.dhmp.util.xml
Class SQLSchema
java.lang.Object
org.dhmp.util.xml.Schema
org.dhmp.util.xml.SQLSchema
- public class SQLSchema
- extends Schema
This is similar to Schema, however it accepts some extension over
xml schema to allow definition of output parameters.
Fields inherited from class org.dhmp.util.xml.Schema |
addErrorMessage, constraints, defaultmessages, DO_NOT_REPLACE_VALUE, fixedConstraints, FORMAT_VALUE, locale, messages, REPLACE_VALUE, REPLACEUSINGFORMAT_VALUE, resourceLocation, schemaLocation, TRANSFORM_VALUE |
Methods inherited from class org.dhmp.util.xml.Schema |
addErrorMessage, getConstraint, getConstraints, getDefaultMessage, getLocale, getMessage, getMessageLocale, getResourceLocation, getSchemaLocation, handleElement, hasFixedConstraints, hasMessage, init, init, isUseDefaultMessage, replace, replace, replace, replace, setAddErrorMessage, setFixedConstraints, setUseDefaultMessage, transform, transform, transform, transform, transform, validate, validate, validate, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SQLSchema
public SQLSchema(Schema schema)
getNewValue
protected java.lang.Object getNewValue(Validator val,
java.lang.String name,
java.lang.Object value,
HierarchicalMap constraints,
Schema schema,
HierarchicalMap messages,
int replace)
- Overrides:
getNewValue
in class Schema
getStatement
public java.lang.String getStatement()
- Return the statement defined in xml schema document.
The statement should be defined as follows:
<xs:annotation>
<xs:appinfo>
<ext:sql statement="{ call insert_user(?, ?, ?) }"/>
</xs:appinfo>
</xs:annotation>
- Returns:
- statement defined in xsd.