paging.java
来自「IBM RSA下的JSF开发示例」· Java 代码 · 共 989 行 · 第 1/2 页
JAVA
989 行
protected HtmlOutputText getText29() {
if (text29 == null) {
text29 = (HtmlOutputText) findComponentInRoot("text29");
}
return text29;
}
protected UIColumn getColumn15() {
if (column15 == null) {
column15 = (UIColumn) findComponentInRoot("column15");
}
return column15;
}
protected HtmlOutputText getText31() {
if (text31 == null) {
text31 = (HtmlOutputText) findComponentInRoot("text31");
}
return text31;
}
protected HtmlDataTable getTable4() {
if (table4 == null) {
table4 = (HtmlDataTable) findComponentInRoot("table4");
}
return table4;
}
protected HtmlOutputText getText33() {
if (text33 == null) {
text33 = (HtmlOutputText) findComponentInRoot("text33");
}
return text33;
}
protected UIColumn getColumn17() {
if (column17 == null) {
column17 = (UIColumn) findComponentInRoot("column17");
}
return column17;
}
protected HtmlOutputText getText35() {
if (text35 == null) {
text35 = (HtmlOutputText) findComponentInRoot("text35");
}
return text35;
}
protected UIColumn getColumn18() {
if (column18 == null) {
column18 = (UIColumn) findComponentInRoot("column18");
}
return column18;
}
protected HtmlOutputText getText37() {
if (text37 == null) {
text37 = (HtmlOutputText) findComponentInRoot("text37");
}
return text37;
}
protected UIColumn getColumn19() {
if (column19 == null) {
column19 = (UIColumn) findComponentInRoot("column19");
}
return column19;
}
protected HtmlOutputText getText39() {
if (text39 == null) {
text39 = (HtmlOutputText) findComponentInRoot("text39");
}
return text39;
}
protected UIColumn getColumn20() {
if (column20 == null) {
column20 = (UIColumn) findComponentInRoot("column20");
}
return column20;
}
protected HtmlOutputText getText41() {
if (text41 == null) {
text41 = (HtmlOutputText) findComponentInRoot("text41");
}
return text41;
}
protected ConnectionWrapper getSDOConnectionWrapper() {
if (SDOConnectionWrapper == null) {
try {
Connection con = ConnectionManager
.createJDBCConnection(SDOConnection_name);
SDOConnectionWrapper = ConnectionWrapperFactory.soleInstance
.createConnectionWrapper(con);
} catch (Throwable e) {
logException(e);
}
}
return SDOConnectionWrapper;
}
/**
* @action id=delux
*/
public String doDeluxUpdateAction() {
try {
getDeluxMediator().applyChanges(getRootDataObject(getDelux()));
} catch (Throwable e) {
logException(e);
} finally {
try {
if (SDOConnectionWrapper != null) {
SDOConnectionWrapper.getConnection().close();
SDOConnectionWrapper = null;
}
} catch (Throwable e1) {
logException(e1);
}
if (deluxMediator != null) {
deluxMediator.setConnectionWrapper(null);
}
}
return "";
}
/**
* @paramBean id=delux
*/
public DataObject getDeluxParameters() {
if (deluxParameters == null) {
try {
deluxParameters = getDeluxMediator().getParameterDataObject();
} catch (MediatorException e) {
logException(e);
}
}
return deluxParameters;
}
protected JDBCMediator getDeluxMediator() {
if (deluxMediator == null) {
try {
deluxMediator = JDBCMediatorFactory.soleInstance
.createMediator(
getResourceInputStream(delux_metadataFileName),
getSDOConnectionWrapper());
initSchema(getRealPath(delux_metadataFileName), deluxMediator
.getSchema());
} catch (Throwable e) {
logException(e);
}
} else {
deluxMediator.setConnectionWrapper(getSDOConnectionWrapper());
}
return deluxMediator;
}
/**
* @action id=delux
*/
public String doDeluxFetchAction() {
try {
resolveParams(getDeluxParameters(), deluxArgNames, deluxArgValues,
"delux_params_cache");
DataObject graph = getDeluxMediator()
.getGraph(getDeluxParameters());
delux = graph.getList(0);
} catch (Throwable e) {
logException(e);
} finally {
try {
if (SDOConnectionWrapper != null) {
SDOConnectionWrapper.getConnection().close();
SDOConnectionWrapper = null;
}
} catch (Throwable e1) {
logException(e1);
}
if (deluxMediator != null) {
deluxMediator.setConnectionWrapper(null);
}
}
return "";
}
/**
* @mediatorFactory com.ibm.etools.sdo.rdb.datahandlers.RelationalDataFactory
* @mediatorProperties metadataFileName=/WEB-INF/wdo/delux.xml
* @methodEntry id=delux/paramBean=delux/action=delux
* @action FILL
*/
public List getDelux() {
if (delux == null) {
doDeluxFetchAction();
}
return delux;
}
/**
* @action id=gotoPager
*/
public String doGotoPagerUpdateAction() {
try {
getGotoPagerMediator().applyChanges(
getRootDataObject(getGotoPager()));
} catch (Throwable e) {
logException(e);
} finally {
try {
if (SDOConnectionWrapper != null) {
SDOConnectionWrapper.getConnection().close();
SDOConnectionWrapper = null;
}
} catch (Throwable e1) {
logException(e1);
}
if (gotoPagerMediator != null) {
gotoPagerMediator.setConnectionWrapper(null);
}
}
return "";
}
/**
* @paramBean id=gotoPager
*/
public DataObject getGotoPagerParameters() {
if (gotoPagerParameters == null) {
try {
gotoPagerParameters = getGotoPagerMediator()
.getParameterDataObject();
} catch (MediatorException e) {
logException(e);
}
}
return gotoPagerParameters;
}
protected JDBCMediator getGotoPagerMediator() {
if (gotoPagerMediator == null) {
try {
gotoPagerMediator = JDBCMediatorFactory.soleInstance
.createMediator(
getResourceInputStream(gotoPager_metadataFileName),
getSDOConnectionWrapper());
initSchema(getRealPath(gotoPager_metadataFileName),
gotoPagerMediator.getSchema());
} catch (Throwable e) {
logException(e);
}
} else {
gotoPagerMediator.setConnectionWrapper(getSDOConnectionWrapper());
}
return gotoPagerMediator;
}
/**
* @action id=gotoPager
*/
public String doGotoPagerFetchAction() {
try {
resolveParams(getGotoPagerParameters(), gotoPagerArgNames,
gotoPagerArgValues, "gotoPager_params_cache");
DataObject graph = getGotoPagerMediator().getGraph(
getGotoPagerParameters());
gotoPager = graph.getList(0);
} catch (Throwable e) {
logException(e);
} finally {
try {
if (SDOConnectionWrapper != null) {
SDOConnectionWrapper.getConnection().close();
SDOConnectionWrapper = null;
}
} catch (Throwable e1) {
logException(e1);
}
if (gotoPagerMediator != null) {
gotoPagerMediator.setConnectionWrapper(null);
}
}
return "";
}
/**
* @mediatorFactory com.ibm.etools.sdo.rdb.datahandlers.RelationalDataFactory
* @mediatorProperties metadataFileName=/WEB-INF/wdo/gotoPager.xml
* @methodEntry id=gotoPager/paramBean=gotoPager/action=gotoPager
* @action FILL
*/
public List getGotoPager() {
if (gotoPager == null) {
doGotoPagerFetchAction();
}
return gotoPager;
}
/**
* @action id=simple
*/
public String doSimpleUpdateAction() {
try {
getSimpleMediator().applyChanges(getRootDataObject(getSimple()));
} catch (Throwable e) {
logException(e);
} finally {
try {
if (SDOConnectionWrapper != null) {
SDOConnectionWrapper.getConnection().close();
SDOConnectionWrapper = null;
}
} catch (Throwable e1) {
logException(e1);
}
if (simpleMediator != null) {
simpleMediator.setConnectionWrapper(null);
}
}
return "";
}
/**
* @paramBean id=simple
*/
public DataObject getSimpleParameters() {
if (simpleParameters == null) {
try {
simpleParameters = getSimpleMediator().getParameterDataObject();
} catch (MediatorException e) {
logException(e);
}
}
return simpleParameters;
}
protected JDBCMediator getSimpleMediator() {
if (simpleMediator == null) {
try {
simpleMediator = JDBCMediatorFactory.soleInstance
.createMediator(
getResourceInputStream(simple_metadataFileName),
getSDOConnectionWrapper());
initSchema(getRealPath(simple_metadataFileName), simpleMediator
.getSchema());
} catch (Throwable e) {
logException(e);
}
} else {
simpleMediator.setConnectionWrapper(getSDOConnectionWrapper());
}
return simpleMediator;
}
/**
* @action id=simple
*/
public String doSimpleFetchAction() {
try {
resolveParams(getSimpleParameters(), simpleArgNames,
simpleArgValues, "simple_params_cache");
DataObject graph = getSimpleMediator().getGraph(
getSimpleParameters());
simple = graph.getList(0);
} catch (Throwable e) {
logException(e);
} finally {
try {
if (SDOConnectionWrapper != null) {
SDOConnectionWrapper.getConnection().close();
SDOConnectionWrapper = null;
}
} catch (Throwable e1) {
logException(e1);
}
if (simpleMediator != null) {
simpleMediator.setConnectionWrapper(null);
}
}
return "";
}
/**
* @mediatorFactory com.ibm.etools.sdo.rdb.datahandlers.RelationalDataFactory
* @mediatorProperties metadataFileName=/WEB-INF/wdo/simple.xml
* @methodEntry id=simple/paramBean=simple/action=simple
* @action FILL
*/
public List getSimple() {
if (simple == null) {
doSimpleFetchAction();
}
return simple;
}
/**
* @action id=web
*/
public String doWebUpdateAction() {
try {
getWebMediator().applyChanges(getRootDataObject(getWeb()));
} catch (Throwable e) {
logException(e);
} finally {
try {
if (SDOConnectionWrapper != null) {
SDOConnectionWrapper.getConnection().close();
SDOConnectionWrapper = null;
}
} catch (Throwable e1) {
logException(e1);
}
if (webMediator != null) {
webMediator.setConnectionWrapper(null);
}
}
return "";
}
/**
* @paramBean id=web
*/
public DataObject getWebParameters() {
if (webParameters == null) {
try {
webParameters = getWebMediator().getParameterDataObject();
} catch (MediatorException e) {
logException(e);
}
}
return webParameters;
}
protected JDBCMediator getWebMediator() {
if (webMediator == null) {
try {
webMediator = JDBCMediatorFactory.soleInstance.createMediator(
getResourceInputStream(web_metadataFileName),
getSDOConnectionWrapper());
initSchema(getRealPath(web_metadataFileName), webMediator
.getSchema());
} catch (Throwable e) {
logException(e);
}
} else {
webMediator.setConnectionWrapper(getSDOConnectionWrapper());
}
return webMediator;
}
/**
* @action id=web
*/
public String doWebFetchAction() {
try {
resolveParams(getWebParameters(), webArgNames, webArgValues,
"web_params_cache");
DataObject graph = getWebMediator().getGraph(getWebParameters());
web = graph.getList(0);
} catch (Throwable e) {
logException(e);
} finally {
try {
if (SDOConnectionWrapper != null) {
SDOConnectionWrapper.getConnection().close();
SDOConnectionWrapper = null;
}
} catch (Throwable e1) {
logException(e1);
}
if (webMediator != null) {
webMediator.setConnectionWrapper(null);
}
}
return "";
}
/**
* @mediatorFactory com.ibm.etools.sdo.rdb.datahandlers.RelationalDataFactory
* @mediatorProperties metadataFileName=/WEB-INF/wdo/web.xml
* @methodEntry id=web/paramBean=web/action=web
* @action FILL
*/
public List getWeb() {
if (web == null) {
doWebFetchAction();
}
return web;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?