2014-12-31 Created By BaoXinjian


提供了应用程式上下文信息和客户端请求信息,当服务端接受到一个客户端请求后,OAF就实例化一个OAPageContext对象

方法一:关于请求参数

getParameterNames

getParameter

getParameterValues

putParameter

removeParameter

getHttpAgent

方法二:关于Form

isFormSubmission

getFormName

方法三:关于重定向

getCurrentUrl

getForwardURL

setForwardURL

方法四:关于中间层

getRootApplicationModule

getApplicationModule

方法五:关于数据对象

getNamedDataObject

方法六:关于ERP

getEmployeeId

getLoginId

getOrgId

getUserId

方法七: 其他

findChildIndex

getLovCriteriaItem

PutDialogMessage

putTransactionValue

getTransactionValue


在处理Get请求时,OAF会便利页面上的所有webbean,调用每个webbeans的processRequest

在处理Post请求时,分为两步

Step1. Process Form Data

根据关联的VO设置相应的Attribute,并执行属相校验

调用VO的setAttribue方法初始化,并自动执行相关EO中的Set方法

调用VO的validAttribue方法校验,并自动执行相关EO中的Valid方法

任何校验的异常都会被捕获,并保存到页面的cache中,随页面显示,异常捕获后,OA不在往下执行processFormRequest

Step2. Process Form Request

ProcessFormData中没有产生异常的,OAF就会继续执行CO中的processFormRequest

方法一、增加子元素
addIndexedChild

方法二、找取子元素

findChildRecursive

方法三、控制可视化

setRendered

isRendered

方法四、设置HTML事件

setOnClick

setOnDoubleClick

SetOnKeyPress


用法语访问SQL执行后的结果集

VO可以基于EO,可以基于手写的SQL

一个EO可以定义多个VO,可以由多个EO定义一个VO

数据缓存在EO中,相同事务的VO共享相同的缓存,一个VO的改变,其他VO也会马上得到信息,如果VO不是基于EO,底层数据库事务提交时,VO的数据也不会被更新

方法一

setMaxFetchSize

executeQuery

isExecuted

CreateRow

getCurrentRow

getFetchedRowCount

方法二

getFilteredRows

getFirstFilteredRow

first

last

next

previous

方法三

isPassivationEnabled

isPreparedForExecution

setPassivationEabled

setPreparedForExecution


方法一

void afterCommit

void afterRollback

clearCache

createRowSet

getRowCount

getFetchedRowCount

fetchSize

getAllRowsInRange

方法二

putTransientValue

putValue

getTransientValue

getValue

removeTransientValue

removeValue

方法三

isLoggingEnabled

remove

setWhereClause

setWhereClauseParam

isDirty

invokeMethod

writerDiagnostics


是OAViewRow的实现类,用于访问VO的Row,Row代表从数据库中取出的一天记录

getAttribute

void validate


真正的数据库持久对象,每个EO对象对于数据库表中的一条记录

void create

void
validadateEntity

void doDML

getOADBTransaction

getEntityState

getPostState


方法一、常用操作

getSequenceValue

getCurrentD

commit

rollback

方法二、与putValue相关,与OAViewObjectImpl的同名一样的功能

putTransientValue

putValue

getTransientValue

getValue

方法三、与ERP相关

getApplicationName

getApplicationShortName

getResponsibleId,ResonsiblityName等等

getLoginId,UserId,UserName等等

方法四、获取JDBC对象

createCallableStatement

createPreparedStatement

createStatement

方法五、其他

checkCookie

clearWorkflowInfo

Thanks and Regards

最新文章

  1. Linux ubuntu安装
  2. HTML中head里的内容经浏览器解析后全到body里了
  3. margin padding
  4. jQuery的目标
  5. python中的函数以及递归
  6. Book of Evil
  7. 解决svn: Cannot negotiate authentication mechanism错误问题
  8. 月亮之眼_KEY
  9. phpcms网站搬家 至 服务器 完整并且详细过程
  10. 【HTML初识】
  11. FTP配置之 chroot_list 用户切换文件夹
  12. redis 持久化之 RDB
  13. 3-Fiddler修改请求或响应内容
  14. gulp 技巧
  15. MySQL:数据查询
  16. mui---获取上一级窗口
  17. Linux服务-openssh
  18. android studio更新gradle失败的解决办法-转
  19. 转 安装php时报gd相关的错误(gd_ctx.c)
  20. Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of

热门文章

  1. T-SQL with as 的用法(转) SQL 下的递归查询 SQL2005(CTE) ,SQL2000(Function 递归)
  2. Linux下面kettle的部署
  3. 高人对libsvm的经典总结(全面至极)
  4. WdColor 枚举 (Word)
  5. XXX全球 IP 地址库
  6. nGrinder3.4 性能测试框架安装
  7. 开放Fedora10自带的MySQL5.0.67的对外数据库服务
  8. INSTALL_FAILED_MISSING_SHARED_LIBRARY
  9. 使用fiddler来抓包
  10. 深入理解 Linux 内存管理