|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.openeai.OpenEaiObject
|
+--org.openeai.layouts.EnterpriseLayoutManagerImpl
|
+--org.openeai.implementations.layouts.SpCallsLayout
This is the SpCalls Layout manager that Enterprise Messaging Objects use to build themselves from and serialize themselves to database stored procedure calls. It uses information found in the EnterpriseObjects.xml document to determine the layout corresponding to a particular object. See EntepriseObjects.xml for more information.
This layout manager will return a list of stored procedure calls that will process a certain action for a certain object as an entire transaction. This may mean multiple stored procedure calls. For example, in order to Create a BasicPerson, the underlying database structure may require that different procedures be called to create BasicPerson "bio/demo" information in addition to BasicPerson "Address" information. These would be returned as separate stored procedure calls. Additionally, it will sort these stored procedure calls according to how they need to be executed. For example, the BasicPerson "bio/demo" stored procedures may need to be called prior to the BasicPerson "Address" stored procedures.
| Field Summary |
| Fields inherited from class org.openeai.OpenEaiObject |
logger |
| Constructor Summary | |
SpCallsLayout()
Constructor |
|
| Method Summary | |
void |
buildObjectFromInput(java.lang.Object input,
XmlEnterpriseObject xeo)
This is the buildObjectFromInput method that all Layout Managers must implement. |
java.lang.Object |
buildOutputFromObject(XmlEnterpriseObject xeo)
This is the buildOutputFromObject method that all Layout Managers must implement. |
java.lang.Object |
buildOutputFromObject(XmlEnterpriseObject anXmlEnterpriseObject,
java.lang.String appName)
This is the buildOutputFromObject method that all Layout Managers must implement. |
XmlEnterpriseObject |
getBaselineObject()
|
java.sql.Connection |
getConnection()
|
java.lang.String |
getCurrentAction()
|
java.lang.String |
getOriginalAction()
|
void |
init(java.lang.String layoutManagerName,
org.jdom.Document layoutDoc)
Method used to initialize the LayoutMangager implementation with information found in the EnterpriseObjects document associated to the object being initialized. |
void |
setBaselineObject(XmlEnterpriseObject xeo)
|
void |
setConnection(java.sql.Connection conn)
|
void |
setCurrentAction(java.lang.String action)
|
void |
setOriginalAction(java.lang.String action)
|
| Methods inherited from class org.openeai.layouts.EnterpriseLayoutManagerImpl |
getEnterpriseObjectsUri, getFieldLayout, getLayout, getLayout, getLayoutManagerName, getLayoutRoot, getLength, getTargetAppName, getValueFromObject, getValueFromObject, getValueFromObject, getValueFromObject, instantiate, isDate, isRepeating, isRequired, setEnterpriseObjectsUri, setLayout, setLayoutManagerName, setLayoutRoot, setTargetAppName, setVariableValue, setVariableValue |
| Methods inherited from class org.openeai.OpenEaiObject |
addLog4jProperty, getAppName, getDebug, getFromAddr, getLog4jProperties, getMailHost, getMailService, getProperties, getToAddr, initializeLog4j, initializeLog4j, initializeLog4j, setAppName, setDebug, setFromAddr, setMailHost, setMailService, setProperties, setToAddr |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.openeai.layouts.EnterpriseLayoutManager |
getEnterpriseObjectsUri, getLayoutManagerName, getLayoutRoot, setEnterpriseObjectsUri, setLayoutManagerName |
| Constructor Detail |
public SpCallsLayout()
| Method Detail |
public void init(java.lang.String layoutManagerName,
org.jdom.Document layoutDoc)
throws EnterpriseLayoutException
EnterpriseLayoutManager
init in interface EnterpriseLayoutManagerinit in class EnterpriseLayoutManagerImplEnterpriseLayoutException - if any errors occur initializing the layout manager implementation.public void setBaselineObject(XmlEnterpriseObject xeo)
public XmlEnterpriseObject getBaselineObject()
public java.lang.String getCurrentAction()
public void setCurrentAction(java.lang.String action)
public java.lang.String getOriginalAction()
public void setOriginalAction(java.lang.String action)
public java.sql.Connection getConnection()
public void setConnection(java.sql.Connection conn)
public java.lang.Object buildOutputFromObject(XmlEnterpriseObject xeo)
throws EnterpriseLayoutException
It is up to the caller of this method to cast the object to a Vector. The fields that data is retrieved from to build the element are defined in EnterpriseObjects.xml.
All XmlEnterpriseObjects have a method that determines the layout manager being used and then calls this method on the currently used layout manager (this class for example). The method in XmlEnterpriseObject is also called buildOutputFromObject.
buildOutputFromObject in interface EnterpriseLayoutManagerEnterpriseLayoutException - if any errors occur getting the field values from the object.
public java.lang.Object buildOutputFromObject(XmlEnterpriseObject anXmlEnterpriseObject,
java.lang.String appName)
throws EnterpriseLayoutException
It is up to the caller of this method to cast the object to a Vector. The fields that data is retrieved from to build the element are defined in EnterpriseObjects.xml.
All XmlEnterpriseObjects have a method that determines the layout manager being used and then calls this method on the currently used layout manager (this class for example). The method in XmlEnterpriseObject is also called buildOutputFromObject.
buildOutputFromObject in interface EnterpriseLayoutManagerEnterpriseLayoutException - if any errors occur getting the field values from the object.
public void buildObjectFromInput(java.lang.Object input,
XmlEnterpriseObject xeo)
throws EnterpriseLayoutException
buildObjectFromInput in interface EnterpriseLayoutManagerEnterpriseLayoutException - if an errors occur setting the Object fields with data
contained in the XML element.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||