📄 rowactionselect.java
字号:
/**
*
*/
package pagecode.rowActions;
import pagecode.PageCodeBase;
import javax.faces.component.html.HtmlForm;
import javax.faces.component.html.HtmlDataTable;
import javax.faces.component.UIColumn;
import javax.faces.component.html.HtmlOutputText;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import com.ibm.samples.rowActionSelect.RowSelectBean;
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;
import com.ibm.faces.component.html.HtmlCommandExButton;
import com.ibm.faces.component.html.HtmlInputRowSelect;
import javax.faces.component.html.HtmlInputText;
import javax.faces.component.html.HtmlMessages;
import javax.faces.component.html.HtmlSelectOneMenu;
/**
* @author nan
*
*/
public class RowActionSelect extends PageCodeBase {
protected HtmlForm form1;
protected HtmlDataTable table4;
protected UIColumn column22;
protected HtmlOutputText text39;
protected HtmlOutputText text41;
protected HtmlOutputText text43;
protected HtmlDataTable table1;
protected UIColumn column9;
protected HtmlOutputText text1;
protected HtmlOutputText text3;
protected HtmlOutputText text5;
protected HtmlOutputText text7;
protected HtmlOutputText text9;
protected HtmlOutputText text11;
protected HtmlDataTable table2;
protected UIColumn column15;
protected HtmlOutputText text17;
protected HtmlOutputText text19;
protected HtmlOutputText text21;
protected HtmlOutputText text23;
protected HtmlOutputText text25;
protected HtmlDataTable table3;
protected UIColumn column21;
protected HtmlOutputText text27;
protected HtmlOutputText text29;
protected HtmlOutputText text31;
protected HtmlOutputText text33;
protected HtmlOutputText text35;
protected UIColumn column23;
protected HtmlOutputText text40;
protected UIColumn column24;
protected HtmlOutputText text42;
protected UIColumn column25;
protected HtmlOutputText text44;
protected UIColumn column1;
protected HtmlOutputText text2;
protected UIColumn column2;
protected HtmlOutputText text4;
protected UIColumn column3;
protected HtmlOutputText text6;
protected UIColumn column4;
protected HtmlOutputText text8;
protected UIColumn column5;
protected HtmlOutputText text10;
protected UIColumn column6;
protected HtmlOutputText text12;
protected UIColumn column10;
protected HtmlOutputText text18;
protected UIColumn column11;
protected HtmlOutputText text20;
protected UIColumn column12;
protected HtmlOutputText text22;
protected UIColumn column13;
protected HtmlOutputText text24;
protected UIColumn column14;
protected HtmlOutputText text26;
protected UIColumn column16;
protected HtmlOutputText text28;
protected UIColumn column17;
protected HtmlOutputText text30;
protected UIColumn column18;
protected HtmlOutputText text32;
protected UIColumn column19;
protected HtmlOutputText text34;
protected UIColumn column20;
protected HtmlOutputText text36;
private static final String SDOConnection_name = "JSFandSDO_Con";
private ConnectionWrapper SDOConnectionWrapper;
protected DataObject customersParameters;
protected JDBCMediator customersMediator;
private static final String customers_metadataFileName = "/WEB-INF/wdo/customers.xml";
private static final int customersTargetPageSize = -1;
protected List customers;
protected DataObject ordersParameters;
protected JDBCMediator ordersMediator;
private static final String orders_metadataFileName = "/WEB-INF/wdo/orders.xml";
protected static final String[] ordersArgNames = {};
protected static final String[] ordersArgValues = {};
private static final int ordersTargetPageSize = -1;
protected List orders;
protected DataObject selectRecordsParameters;
protected JDBCMediator selectRecordsMediator;
private static final String selectRecords_metadataFileName = "/WEB-INF/wdo/selectRecords.xml";
protected static final String[] selectRecordsArgNames = {};
protected static final String[] selectRecordsArgValues = {};
private static final int selectRecordsTargetPageSize = -1;
protected List selectRecords;
protected RowSelectBean selectedRow;
protected static final String[] customersArgNames = {};
protected static final String[] customersArgValues = {};
protected HtmlCommandExButton buttonDelete3;
protected HtmlInputRowSelect rowSelect3;
protected HtmlCommandExButton buttonDelete4;
protected HtmlCommandExButton buttonUpdate4;
protected DataObject addCustomer_3Parameters;
protected JDBCMediator addCustomer_3Mediator;
private static final String addCustomer_3_metadataFileName = "/WEB-INF/wdo/addCustomer_3.xml";
protected static final String[] addCustomer_3ArgNames = {};
protected static final String[] addCustomer_3ArgValues = {};
protected DataObject addCustomer_3;
protected HtmlInputText textId1;
protected HtmlInputText textName1;
protected HtmlInputText textAddress1;
protected HtmlInputText textCity1;
protected HtmlInputText textState1;
protected HtmlMessages messages1;
protected HtmlCommandExButton buttonDoAddCustomer_3UpdateAction1;
protected DataObject addInventory_2Parameters;
protected JDBCMediator addInventory_2Mediator;
private static final String addInventory_2_metadataFileName = "/WEB-INF/wdo/addInventory_2.xml";
protected static final String[] addInventory_2ArgNames = {};
protected static final String[] addInventory_2ArgValues = {};
protected DataObject addInventory_2;
protected HtmlInputText textId2;
protected HtmlInputText textCategory1;
protected HtmlInputText textTitle1;
protected HtmlInputText textPrice1;
protected HtmlInputText textQuantity1;
protected HtmlMessages messages2;
protected HtmlCommandExButton buttonDoAddInventory_2UpdateAction1;
protected HtmlInputRowSelect rowSelect2;
protected DataObject addOrder_4Parameters;
protected JDBCMediator addOrder_4Mediator;
private static final String addOrder_4_metadataFileName = "/WEB-INF/wdo/addOrder_4.xml";
protected static final String[] addOrder_4ArgNames = {};
protected static final String[] addOrder_4ArgValues = {};
protected DataObject addOrder_4;
protected HtmlInputText textId3;
protected HtmlInputText textCustomerid1;
protected HtmlInputText textProductid1;
protected HtmlInputText textDateplaced1;
protected HtmlMessages messages3;
protected HtmlCommandExButton buttonDoAddOrder_4UpdateAction1;
protected HtmlCommandExButton buttonDelete1;
protected HtmlInputText textDescription1;
protected HtmlSelectOneMenu menuStatus1;
protected HtmlForm getForm1() {
if (form1 == null) {
form1 = (HtmlForm) findComponentInRoot("form1");
}
return form1;
}
protected HtmlDataTable getTable4() {
if (table4 == null) {
table4 = (HtmlDataTable) findComponentInRoot("table4");
}
return table4;
}
protected UIColumn getColumn22() {
if (column22 == null) {
column22 = (UIColumn) findComponentInRoot("column22");
}
return column22;
}
protected HtmlOutputText getText39() {
if (text39 == null) {
text39 = (HtmlOutputText) findComponentInRoot("text39");
}
return text39;
}
protected HtmlOutputText getText41() {
if (text41 == null) {
text41 = (HtmlOutputText) findComponentInRoot("text41");
}
return text41;
}
protected HtmlOutputText getText43() {
if (text43 == null) {
text43 = (HtmlOutputText) findComponentInRoot("text43");
}
return text43;
}
protected HtmlDataTable getTable1() {
if (table1 == null) {
table1 = (HtmlDataTable) findComponentInRoot("table1");
}
return table1;
}
protected UIColumn getColumn9() {
if (column9 == null) {
column9 = (UIColumn) findComponentInRoot("column9");
}
return column9;
}
protected HtmlOutputText getText1() {
if (text1 == null) {
text1 = (HtmlOutputText) findComponentInRoot("text1");
}
return text1;
}
protected HtmlOutputText getText3() {
if (text3 == null) {
text3 = (HtmlOutputText) findComponentInRoot("text3");
}
return text3;
}
protected HtmlOutputText getText5() {
if (text5 == null) {
text5 = (HtmlOutputText) findComponentInRoot("text5");
}
return text5;
}
protected HtmlOutputText getText7() {
if (text7 == null) {
text7 = (HtmlOutputText) findComponentInRoot("text7");
}
return text7;
}
protected HtmlOutputText getText9() {
if (text9 == null) {
text9 = (HtmlOutputText) findComponentInRoot("text9");
}
return text9;
}
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 UIColumn getColumn15() {
if (column15 == null) {
column15 = (UIColumn) findComponentInRoot("column15");
}
return column15;
}
protected HtmlOutputText getText17() {
if (text17 == null) {
text17 = (HtmlOutputText) findComponentInRoot("text17");
}
return text17;
}
protected HtmlOutputText getText19() {
if (text19 == null) {
text19 = (HtmlOutputText) findComponentInRoot("text19");
}
return text19;
}
protected HtmlOutputText getText21() {
if (text21 == null) {
text21 = (HtmlOutputText) findComponentInRoot("text21");
}
return text21;
}
protected HtmlOutputText getText23() {
if (text23 == null) {
text23 = (HtmlOutputText) findComponentInRoot("text23");
}
return text23;
}
protected HtmlOutputText getText25() {
if (text25 == null) {
text25 = (HtmlOutputText) findComponentInRoot("text25");
}
return text25;
}
protected HtmlDataTable getTable3() {
if (table3 == null) {
table3 = (HtmlDataTable) findComponentInRoot("table3");
}
return table3;
}
protected UIColumn getColumn21() {
if (column21 == null) {
column21 = (UIColumn) findComponentInRoot("column21");
}
return column21;
}
protected HtmlOutputText getText27() {
if (text27 == null) {
text27 = (HtmlOutputText) findComponentInRoot("text27");
}
return text27;
}
protected HtmlOutputText getText29() {
if (text29 == null) {
text29 = (HtmlOutputText) findComponentInRoot("text29");
}
return text29;
}
protected HtmlOutputText getText31() {
if (text31 == null) {
text31 = (HtmlOutputText) findComponentInRoot("text31");
}
return text31;
}
protected HtmlOutputText getText33() {
if (text33 == null) {
text33 = (HtmlOutputText) findComponentInRoot("text33");
}
return text33;
}
protected HtmlOutputText getText35() {
if (text35 == null) {
text35 = (HtmlOutputText) findComponentInRoot("text35");
}
return text35;
}
protected UIColumn getColumn23() {
if (column23 == null) {
column23 = (UIColumn) findComponentInRoot("column23");
}
return column23;
}
protected HtmlOutputText getText40() {
if (text40 == null) {
text40 = (HtmlOutputText) findComponentInRoot("text40");
}
return text40;
}
protected UIColumn getColumn24() {
if (column24 == null) {
column24 = (UIColumn) findComponentInRoot("column24");
}
return column24;
}
protected HtmlOutputText getText42() {
if (text42 == null) {
text42 = (HtmlOutputText) findComponentInRoot("text42");
}
return text42;
}
protected UIColumn getColumn25() {
if (column25 == null) {
column25 = (UIColumn) findComponentInRoot("column25");
}
return column25;
}
protected HtmlOutputText getText44() {
if (text44 == null) {
text44 = (HtmlOutputText) findComponentInRoot("text44");
}
return text44;
}
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 UIColumn getColumn2() {
if (column2 == null) {
column2 = (UIColumn) findComponentInRoot("column2");
}
return column2;
}
protected HtmlOutputText getText4() {
if (text4 == null) {
text4 = (HtmlOutputText) findComponentInRoot("text4");
}
return text4;
}
protected UIColumn getColumn3() {
if (column3 == null) {
column3 = (UIColumn) findComponentInRoot("column3");
}
return column3;
}
protected HtmlOutputText getText6() {
if (text6 == null) {
text6 = (HtmlOutputText) findComponentInRoot("text6");
}
return text6;
}
protected UIColumn getColumn4() {
if (column4 == null) {
column4 = (UIColumn) findComponentInRoot("column4");
}
return column4;
}
protected HtmlOutputText getText8() {
if (text8 == null) {
text8 = (HtmlOutputText) findComponentInRoot("text8");
}
return text8;
}
protected UIColumn getColumn5() {
if (column5 == null) {
column5 = (UIColumn) findComponentInRoot("column5");
}
return column5;
}
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 UIColumn getColumn10() {
if (column10 == null) {
column10 = (UIColumn) findComponentInRoot("column10");
}
return column10;
}
protected HtmlOutputText getText18() {
if (text18 == null) {
text18 = (HtmlOutputText) findComponentInRoot("text18");
}
return text18;
}
protected UIColumn getColumn11() {
if (column11 == null) {
column11 = (UIColumn) findComponentInRoot("column11");
}
return column11;
}
protected HtmlOutputText getText20() {
if (text20 == null) {
text20 = (HtmlOutputText) findComponentInRoot("text20");
}
return text20;
}
protected UIColumn getColumn12() {
if (column12 == null) {
column12 = (UIColumn) findComponentInRoot("column12");
}
return column12;
}
protected HtmlOutputText getText22() {
if (text22 == null) {
text22 = (HtmlOutputText) findComponentInRoot("text22");
}
return text22;
}
protected UIColumn getColumn13() {
if (column13 == null) {
column13 = (UIColumn) findComponentInRoot("column13");
}
return column13;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -