From c004bbdf4f0e824e5ccbaef8f98ca4a3d44d3b49 Mon Sep 17 00:00:00 2001
From: wei <>
Date: Fri, 14 Jul 2006 06:46:31 +0000
Subject: Changed SQLMap manual into a prado app.
---
.../protected/pages/Manual/ResultMaps.page | 67 ++++++++++++++++++++++
1 file changed, 67 insertions(+)
create mode 100644 demos/sqlmap-docs/protected/pages/Manual/ResultMaps.page
(limited to 'demos/sqlmap-docs/protected/pages/Manual/ResultMaps.page')
diff --git a/demos/sqlmap-docs/protected/pages/Manual/ResultMaps.page b/demos/sqlmap-docs/protected/pages/Manual/ResultMaps.page
new file mode 100644
index 00000000..97165ffb
--- /dev/null
+++ b/demos/sqlmap-docs/protected/pages/Manual/ResultMaps.page
@@ -0,0 +1,67 @@
+Result Maps
+Parameter Maps and
+Inline parameters
+ map object properties to parameters in a database query. Result Maps
+finish the job by mapping the result of a database query (a set of columns) to
+object properties. Next to Mapped Statements, the Result Map is probably one
+of the most commonly used and most important features to understand.
A Result Map lets you control how data is extracted from the result of a +query, and how the columns are mapped to object properties. A Result Map can +describe the column type, a null value replacement, and complex property +mappings including Collections. The following example shows the structure +of a <resultMap> element.
+ +In the above example, the [brackets] indicate optional attributes. +The id attribute is required and provides a name for the statement to +reference. The class attribute is also required, and specifies the full +name of a PHP class. This is the class that will be instantiated and populated +based on the result mappings it contains.
+ +The resultMap can contain any number of property mappings that map object +properties to the columns of a result element. The property mappings are +applied, and the columns are read, in the order that they are defined. +Maintaining the element order ensures consistent results between different +drivers and providers.
+ +The optional extends attribute can be set to the name of another +resultMap upon which to base this resultMap. All properties of the +"parent" resultMap will be included as part of this resultMap, and +values from the "parent" resultMap are set before any values specified +by this resultMap. The effect is similar to extending a class.
+ +