paging.java
来自「IBM RSA下的JSF开发示例」· Java 代码 · 共 989 行 · 第 1/2 页
JAVA
989 行
/**
*
*/
package pagecode.paging;
import pagecode.PageCodeBase;
import com.ibm.faces.component.html.HtmlScriptCollector;
import javax.faces.component.html.HtmlForm;
import javax.faces.component.UIColumn;
import javax.faces.component.html.HtmlOutputText;
import javax.faces.component.html.HtmlDataTable;
import java.util.List;
import com.ibm.websphere.sdo.access.connections.ConnectionManager;
import com.ibm.websphere.sdo.mediator.jdbc.ConnectionWrapperFactory;
import com.ibm.websphere.sdo.mediator.jdbc.ConnectionWrapper;
import com.ibm.websphere.sdo.mediator.JDBCMediator;
import com.ibm.websphere.sdo.mediator.exception.MediatorException;
import com.ibm.websphere.sdo.mediator.jdbc.JDBCMediatorFactory;
import commonj.sdo.DataObject;
import java.sql.Connection;
/**
* @author nan
*
*/
public class Paging extends PageCodeBase {
protected HtmlScriptCollector scriptCollector1;
protected HtmlForm form1;
protected UIColumn column1;
protected HtmlOutputText text2;
protected HtmlOutputText text4;
protected HtmlOutputText text6;
protected HtmlOutputText text8;
protected HtmlOutputText text10;
protected UIColumn column6;
protected HtmlOutputText text12;
protected HtmlOutputText text14;
protected HtmlOutputText text16;
protected HtmlOutputText text18;
protected HtmlOutputText text20;
protected UIColumn column11;
protected HtmlOutputText text22;
protected HtmlOutputText text24;
protected HtmlOutputText text26;
protected HtmlOutputText text28;
protected HtmlOutputText text30;
protected UIColumn column16;
protected HtmlOutputText text32;
protected HtmlOutputText text34;
protected HtmlOutputText text36;
protected HtmlOutputText text38;
protected HtmlOutputText text40;
protected HtmlDataTable table1;
protected HtmlOutputText text3;
protected UIColumn column2;
protected HtmlOutputText text5;
protected UIColumn column3;
protected HtmlOutputText text7;
protected UIColumn column4;
protected HtmlOutputText text9;
protected UIColumn column5;
protected HtmlOutputText text11;
protected HtmlDataTable table2;
protected HtmlOutputText text13;
protected UIColumn column7;
protected HtmlOutputText text15;
protected UIColumn column8;
protected HtmlOutputText text17;
protected UIColumn column9;
protected HtmlOutputText text19;
protected UIColumn column10;
protected HtmlOutputText text21;
protected HtmlDataTable table3;
protected HtmlOutputText text23;
protected UIColumn column12;
protected HtmlOutputText text25;
protected UIColumn column13;
protected HtmlOutputText text27;
protected UIColumn column14;
protected HtmlOutputText text29;
protected UIColumn column15;
protected HtmlOutputText text31;
protected HtmlDataTable table4;
protected HtmlOutputText text33;
protected UIColumn column17;
protected HtmlOutputText text35;
protected UIColumn column18;
protected HtmlOutputText text37;
protected UIColumn column19;
protected HtmlOutputText text39;
protected UIColumn column20;
protected HtmlOutputText text41;
private static final String SDOConnection_name = "JSFandSDO_Con";
private ConnectionWrapper SDOConnectionWrapper;
protected DataObject deluxParameters;
protected JDBCMediator deluxMediator;
private static final String delux_metadataFileName = "/WEB-INF/wdo/delux.xml";
protected static final String[] deluxArgNames = {};
protected static final String[] deluxArgValues = {};
private static final int deluxTargetPageSize = -1;
protected List delux;
protected DataObject gotoPagerParameters;
protected JDBCMediator gotoPagerMediator;
private static final String gotoPager_metadataFileName = "/WEB-INF/wdo/gotoPager.xml";
protected static final String[] gotoPagerArgNames = {};
protected static final String[] gotoPagerArgValues = {};
private static final int gotoPagerTargetPageSize = -1;
protected List gotoPager;
protected DataObject simpleParameters;
protected JDBCMediator simpleMediator;
private static final String simple_metadataFileName = "/WEB-INF/wdo/simple.xml";
protected static final String[] simpleArgNames = {};
protected static final String[] simpleArgValues = {};
private static final int simpleTargetPageSize = -1;
protected List simple;
protected DataObject webParameters;
protected JDBCMediator webMediator;
private static final String web_metadataFileName = "/WEB-INF/wdo/web.xml";
protected static final String[] webArgNames = {};
protected static final String[] webArgValues = {};
private static final int webTargetPageSize = -1;
protected List web;
protected HtmlScriptCollector getScriptCollector1() {
if (scriptCollector1 == null) {
scriptCollector1 = (HtmlScriptCollector) findComponentInRoot("scriptCollector1");
}
return scriptCollector1;
}
protected HtmlForm getForm1() {
if (form1 == null) {
form1 = (HtmlForm) findComponentInRoot("form1");
}
return form1;
}
protected UIColumn getColumn1() {
if (column1 == null) {
column1 = (UIColumn) findComponentInRoot("column1");
}
return column1;
}
protected HtmlOutputText getText2() {
if (text2 == null) {
text2 = (HtmlOutputText) findComponentInRoot("text2");
}
return text2;
}
protected HtmlOutputText getText4() {
if (text4 == null) {
text4 = (HtmlOutputText) findComponentInRoot("text4");
}
return text4;
}
protected HtmlOutputText getText6() {
if (text6 == null) {
text6 = (HtmlOutputText) findComponentInRoot("text6");
}
return text6;
}
protected HtmlOutputText getText8() {
if (text8 == null) {
text8 = (HtmlOutputText) findComponentInRoot("text8");
}
return text8;
}
protected HtmlOutputText getText10() {
if (text10 == null) {
text10 = (HtmlOutputText) findComponentInRoot("text10");
}
return text10;
}
protected UIColumn getColumn6() {
if (column6 == null) {
column6 = (UIColumn) findComponentInRoot("column6");
}
return column6;
}
protected HtmlOutputText getText12() {
if (text12 == null) {
text12 = (HtmlOutputText) findComponentInRoot("text12");
}
return text12;
}
protected HtmlOutputText getText14() {
if (text14 == null) {
text14 = (HtmlOutputText) findComponentInRoot("text14");
}
return text14;
}
protected HtmlOutputText getText16() {
if (text16 == null) {
text16 = (HtmlOutputText) findComponentInRoot("text16");
}
return text16;
}
protected HtmlOutputText getText18() {
if (text18 == null) {
text18 = (HtmlOutputText) findComponentInRoot("text18");
}
return text18;
}
protected HtmlOutputText getText20() {
if (text20 == null) {
text20 = (HtmlOutputText) findComponentInRoot("text20");
}
return text20;
}
protected UIColumn getColumn11() {
if (column11 == null) {
column11 = (UIColumn) findComponentInRoot("column11");
}
return column11;
}
protected HtmlOutputText getText22() {
if (text22 == null) {
text22 = (HtmlOutputText) findComponentInRoot("text22");
}
return text22;
}
protected HtmlOutputText getText24() {
if (text24 == null) {
text24 = (HtmlOutputText) findComponentInRoot("text24");
}
return text24;
}
protected HtmlOutputText getText26() {
if (text26 == null) {
text26 = (HtmlOutputText) findComponentInRoot("text26");
}
return text26;
}
protected HtmlOutputText getText28() {
if (text28 == null) {
text28 = (HtmlOutputText) findComponentInRoot("text28");
}
return text28;
}
protected HtmlOutputText getText30() {
if (text30 == null) {
text30 = (HtmlOutputText) findComponentInRoot("text30");
}
return text30;
}
protected UIColumn getColumn16() {
if (column16 == null) {
column16 = (UIColumn) findComponentInRoot("column16");
}
return column16;
}
protected HtmlOutputText getText32() {
if (text32 == null) {
text32 = (HtmlOutputText) findComponentInRoot("text32");
}
return text32;
}
protected HtmlOutputText getText34() {
if (text34 == null) {
text34 = (HtmlOutputText) findComponentInRoot("text34");
}
return text34;
}
protected HtmlOutputText getText36() {
if (text36 == null) {
text36 = (HtmlOutputText) findComponentInRoot("text36");
}
return text36;
}
protected HtmlOutputText getText38() {
if (text38 == null) {
text38 = (HtmlOutputText) findComponentInRoot("text38");
}
return text38;
}
protected HtmlOutputText getText40() {
if (text40 == null) {
text40 = (HtmlOutputText) findComponentInRoot("text40");
}
return text40;
}
protected HtmlDataTable getTable1() {
if (table1 == null) {
table1 = (HtmlDataTable) findComponentInRoot("table1");
}
return table1;
}
protected HtmlOutputText getText3() {
if (text3 == null) {
text3 = (HtmlOutputText) findComponentInRoot("text3");
}
return text3;
}
protected UIColumn getColumn2() {
if (column2 == null) {
column2 = (UIColumn) findComponentInRoot("column2");
}
return column2;
}
protected HtmlOutputText getText5() {
if (text5 == null) {
text5 = (HtmlOutputText) findComponentInRoot("text5");
}
return text5;
}
protected UIColumn getColumn3() {
if (column3 == null) {
column3 = (UIColumn) findComponentInRoot("column3");
}
return column3;
}
protected HtmlOutputText getText7() {
if (text7 == null) {
text7 = (HtmlOutputText) findComponentInRoot("text7");
}
return text7;
}
protected UIColumn getColumn4() {
if (column4 == null) {
column4 = (UIColumn) findComponentInRoot("column4");
}
return column4;
}
protected HtmlOutputText getText9() {
if (text9 == null) {
text9 = (HtmlOutputText) findComponentInRoot("text9");
}
return text9;
}
protected UIColumn getColumn5() {
if (column5 == null) {
column5 = (UIColumn) findComponentInRoot("column5");
}
return column5;
}
protected HtmlOutputText getText11() {
if (text11 == null) {
text11 = (HtmlOutputText) findComponentInRoot("text11");
}
return text11;
}
protected HtmlDataTable getTable2() {
if (table2 == null) {
table2 = (HtmlDataTable) findComponentInRoot("table2");
}
return table2;
}
protected HtmlOutputText getText13() {
if (text13 == null) {
text13 = (HtmlOutputText) findComponentInRoot("text13");
}
return text13;
}
protected UIColumn getColumn7() {
if (column7 == null) {
column7 = (UIColumn) findComponentInRoot("column7");
}
return column7;
}
protected HtmlOutputText getText15() {
if (text15 == null) {
text15 = (HtmlOutputText) findComponentInRoot("text15");
}
return text15;
}
protected UIColumn getColumn8() {
if (column8 == null) {
column8 = (UIColumn) findComponentInRoot("column8");
}
return column8;
}
protected HtmlOutputText getText17() {
if (text17 == null) {
text17 = (HtmlOutputText) findComponentInRoot("text17");
}
return text17;
}
protected UIColumn getColumn9() {
if (column9 == null) {
column9 = (UIColumn) findComponentInRoot("column9");
}
return column9;
}
protected HtmlOutputText getText19() {
if (text19 == null) {
text19 = (HtmlOutputText) findComponentInRoot("text19");
}
return text19;
}
protected UIColumn getColumn10() {
if (column10 == null) {
column10 = (UIColumn) findComponentInRoot("column10");
}
return column10;
}
protected HtmlOutputText getText21() {
if (text21 == null) {
text21 = (HtmlOutputText) findComponentInRoot("text21");
}
return text21;
}
protected HtmlDataTable getTable3() {
if (table3 == null) {
table3 = (HtmlDataTable) findComponentInRoot("table3");
}
return table3;
}
protected HtmlOutputText getText23() {
if (text23 == null) {
text23 = (HtmlOutputText) findComponentInRoot("text23");
}
return text23;
}
protected UIColumn getColumn12() {
if (column12 == null) {
column12 = (UIColumn) findComponentInRoot("column12");
}
return column12;
}
protected HtmlOutputText getText25() {
if (text25 == null) {
text25 = (HtmlOutputText) findComponentInRoot("text25");
}
return text25;
}
protected UIColumn getColumn13() {
if (column13 == null) {
column13 = (UIColumn) findComponentInRoot("column13");
}
return column13;
}
protected HtmlOutputText getText27() {
if (text27 == null) {
text27 = (HtmlOutputText) findComponentInRoot("text27");
}
return text27;
}
protected UIColumn getColumn14() {
if (column14 == null) {
column14 = (UIColumn) findComponentInRoot("column14");
}
return column14;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?