====== XDataSet5 JAVA API Reference ====== ===== XDataSet Class 개요 ===== ==== Constructor ==== |< 100% 200px - >| ^ 이름 ^ 설명 ^ | XDataSet5\\ (HttpRequest, HttpResponse) | * 하나의 Page에서 Request/Response를 처리하는 경우 사용한다. * HttpRequest 및 HttpResponse 오브젝트를 파라미터로 전달받아서 데이터 파싱 작업을 자동으로 수행한다. * 출력 데이터를 설정하기 위해서는 데이터 셋 이름 및 데이터 셋의 칼럼 이름이 자동으로 관리되므로 별도로 설정을 할 필요가 없다. | | XDataSet5\\ (String) | * Request만을 처리하는 경우에 사용한다. * 입력 데이터에 대한 데이터 파싱 작업을 파라미터로 넘겨오는 데이터를 이용해서 자동으로 수행한다. * 파라미터는 “XDATASET5”키에 대한 값이다. * 출력 데이터를 전송하기 위해서는 SetHttpResponse 함수를 사용해서 HttpResponse 오브젝트를 xDataSet 오브젝트에 설정해야 한다. * 출력 데이터를 설정하기 위해서는 데이터 셋 이름 및 데이터 셋의 칼럼 이름이 자동으로 관리되므로 별도로 설정을 할 필요가 없다. | | XDataSet5\\ (HttpResponse) | * Response만을 처리하는 경우에 사용한다. * 출력 데이터를 설정하기 위해서는 데이터 셋 이름 및 데이터 셋의 칼럼 이름을 설정해야 한다. | | XDataSet5 () | * Response만을 처리하는 경우에 사용한다. * 출력 데이터를 전송하기 위해서는 SetHttpResponse 함수를 사용해서 HttpResponse 오브젝트를 설정해야 한다. * 출력 데이터를 설정하기 위해서는 데이터 셋 이름 및 데이터 셋의 칼럼 이름을 설정해야 한다. | ==== Methods ==== |< 100% 200px - >| ^ 이름 ^ 설명 ^ | getColumnCount | Request에 대한 데이터 셋의 칼럼 수를 리턴한다. | | getColumnNames | Request에 대한 데이터 셋의 칼럼 이름들을 Vector로 리턴한다. | | getColumnNamesArray | Request에 대한 데이터 셋의 칼럼 이름들을 문자열 Array로 리턴한다. | | getData | Request에 대한 데이터셋의 데이터를 얻어온다. | | getDataSetNames | Reqeust에 대한 데이터 셋들의 이름을 Vector로 리턴한다. | | getDataSetNamesArray | Reqeust에 대한 데이터 셋들의 이름을 문자열 Array로 리턴한다. | | getDataSetType | 데이터셋의 입출력 구분 정보를 반환한다. | | getDoubleData | Request에 대한 데이터의 데이터를 double 형으로 얻어온다. | | getFloatData | Request에 대한 데이터의 데이터를 float 형으로 얻어온다. | | getFullVersion | XDataSet 라이브러리의 Full Version 정보를 얻어온다. | | getIntData | Request에 대한 데이터의 데이터를 int 형으로 얻어온다. | | getLongData | Request에 대한 데이터의 데이터를 long 형으로 얻어온다. | | getOutputColumnNames | 출력용 데이터 셋의 칼럼 이름들을 Vector로 리턴한다. | | getOutputColumnNamesArray | 출력용 데이터셋 이름 배열을 리턴한다. | | getOutputColumnCount | 출력용 데이터셋의 칼럼 수를 리턴한다. | | getOutputData | 출력용 데이터셋에 설정된 데이터를 리턴한다. | | getOutputDataSetNamesArray | Response에 대한 데이터셋들의 이름을 문자열 Array로 리턴한다. | | getOutputRecordCount | 출력용 데이터셋의 레코드 수를 리턴한다. | | getRecordCount | Request에 대한 데이터셋의 레코드 수를 리턴한다. | | getRecordKey | Request에 대한 데이터 셋의 Record의 키를 리턴한다. | | getRecordType | Request에 대한 데이터 셋 레코드의 유형을 리턴한다. | | getReturnByteArrayData | 출력용 리턴 데이터를 바이트 배열 형식으로 리턴한다. | | getReturnStringData | 출력용 리턴 데이터를 문자열 형식으로 리턴한다. | | getScreenNo | Request에 대한 화면 URL를 리턴한다. | | getTerminalIpAddress | Request에 대한 클라이언트의 IP 주소 값을 리턴한다. | | getTransactionCode | Request에 대한 트랜잭션 코드 값을 리턴한다. | | getTransactionHeader | Request에 대한 트랜잭션 헤더 값을 리턴한다. | | getTransactionMapId | Request에 대한 트랜잭션 맵 ID를 리턴한다. | | getUserHeader | Request에 대한 사용자 헤더를 얻어온다. | | getXDataSetOutputString | Response으로 설정된 데이터 셋의 내용을 문자열로 구해온다. | | getVersion | XDataSet 라이브러리의 Version 정보를 얻어온다. | | isDeleteRecord | 입력용 데이터 셋 레코드가 삭제된 레코드 인지 여부를 반환한다. | | isInsertRecord | 입력용 데이터 셋 레코드가 추가된 레코드 인지 여부를 반환한다. | | isUpdateRecord | 입력용 데이터 셋 레코드가 변경된 레코드 인지 여부를 반환한다. | | returnData | 데이터 셋의 내용을 클라이언트로 송신한다. | | returnPartData | 데이터 셋의 현재까지의 데이터를 송신한다 (First-Row 방식) | | setCharacterSet | 출력용 데이터에 대한 Character Set을 지정한다. | | setColumnNames | 출력용 데이터 셋의 칼럼 이름들을 설정한다. | | setData | 출력용 데이터 셋에 문자열 데이터를 설정한다. | | setDataSetName | 출력용 데이터 셋 이름을 설정한다. | | setDataSetNames | 출력용 데이터 셋 이름들을 설정한다. | | setDoubleData | 출력용 데이터 셋에 Double형 데이터를 설정한다. | | setErrorMessage | 출력용 에러 메시지를 설정하는 함수이다. | | setFloatData | 출력용 데이터 셋에 Float형 데이터를 설정한다. | | setIntData | 출력용 데이터 셋에 Int형 데이터를 설정한다. | | setLongData | 출력용 데이터셋에 Long형 데이터를 설정한다. | | setMessage | 출력용 안내 메시지를 설정하는 함수이다. | | setHttpResponse | Response에 대한 출력 데이터를 송신시 사용할 HttpResponse 오브젝트를 설정 | | setRecordKey | 출력용 데이터 셋의 Record의 키를 설정한다. | | setUserHeader | 출력용 사용자 헤더 문자열을 설정한다. | | eplaceHTMLTagFilter | 크로스 사이트 스트립팅 처리로 인해 치환된 문자열을 재치환 하여 반환한다. | ===== XDataSet API 설명 ===== ==== getColumnCount ==== === Prototype === int getColumnCount(String sXDataSetName); === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sXDataSetName | 칼럼 개수를 구할 데이터 셋 이름 | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | Int | nColumnCount | 데이터 셋의 칼럼 수 | === Description === Request 용 데이터 셋의 칼럼 수를 구하는 함수이다. === Sample === int nColumnCount = xDataSet.getColumnCount(“INPUT_DATASET”); === See Also === getRecordCount, getColumnNames, getColumnNamesArray ==== getColumnNames ==== === Prototype === Vector getColumnNames (String sXDataSetName); === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sXDataSetName | 칼럼 이름을 구할 데이터 셋 이름 | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | Vector | columnNamesVector | 데이터 셋의 칼럼 이름 정보를 포함하고 있는 Vector 오브젝트 | === Description === Request 에 대한 데이터 셋의 칼럼 이름들이 표함된 Vector 형 오브젝트를 리턴한다. === Sample === Vector columnNamesVector = null; columnNamesVector = xDataSet.getColumnNames("INPUT_DATASET"); for(int i = 0; i < columnNamesVector.size(); i++) { System.out.println((String)columnNamesVector.get(i)); } === See Also === getColumnNamesArray ==== getColumnNamesArray ==== === Prototype === String[] getColumnNamesArray (String sXDataSetName); === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sXDataSetName | 칼럼 이름을 구할 데이터 셋 이름 | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String[] | columnNamesArray | 데이터 셋의 칼럼 이름 배열 | === Description === Request 에 대한 데이터 셋의 칼럼 이름을 문자열 배열로 리턴한다. === Sample === String[] columnNamesArray = null; columnNamesArray = xDataSet.getColumnNamesArray("INPUT_DATASET"); for(int i = 0; i < columnNamesArray.length; i++) { System.out.println((String)columnNamesArray[i]); } === See Also === getColumnNames ==== getData ==== === Prototype === String getData(String sDataSetName, String sColumnName, int nRecordIndex); String getData(String sDataSetName, int nColumnIndex, int nRecordIndex); === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sXDataSetName | 칼럼 이름을 구할 데이터 셋 이름 | | String | sColumnName | 데이터를 구할 데이터 셋의 칼럼 이름 | | int | nRecordIndex | 데이터를 구할 레코드 인덱스 | | int | nColumnIndex | 데이터를 구할 칼럼 인덱스 | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sDataValue | 데이터 셋의 문자열형 데이터 | === Description === Request 용 데이터 셋의 문자열형 데이터를 얻는 함수이다. 그외의 데이터 형에 대해서는 아래의 함수를 각각의 데이터 유형에 맞추어 호출한다. * double 형 데이터 : getDoubleData(String sDataSetName, String sColumnName, int nRecordIndex); * float형 데이터 : getFloatData(String sDataSetName, String sColumnName, int nRecordIndex); * int 형 데이터 : getIntData(String sDataSetName, String sColumnName, int nRecordIndex); * long형 데이터 : getLongData(String sDataSetName, String sColumnName, int nRecordIndex); === Sample === String[] columnNamesArray = null; int columnCount = 0; int recordCount = 0; int recordIndex = 0; int columnIndex = 0; // Get Record, Column Count recordCount = xDataSet.getRecordCount("INPUT_DATASET"); columnCount = xDataSet.getColumnCount("INPUT_DATASET"); // Get Column Names Array columnNamesArray = xDataSet.getColumnNamesArray("INPUT_DATASET"); // Get Data By Column Name for(recordIndex = 0; recordIndex < recordCount; recordIndex++) { for(columnIndex = 0; columnIndex < columnCount; columnIndex++) { System.out.println(xDataSet.getData("INPUT_DATASET", columnNamesArray[columnIndex], recordIndex)); } } // Get Data By Column Index for(recordIndex = 0; recordIndex < recordCount; recordIndex++) { for(columnIndex = 0; columnIndex < columnCount; columnIndex++) { System.out.println(xDataSet.getData("INPUT_DATASET", columnIndex, recordIndex)); } } === See Also === getDoubleData, getFloatData, getIntData, getLongData ==== getDataSetNames ==== === Prototype === Vector getDataSetNmes() === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | | | | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | Vector | dataSetNamesVector | 데이터 셋의 이름 정보가 들어있는 Vector 오브젝트 | === Description === Request 및 Response 용 데이터셋들의 이름을 Vector 형으로 리턴한다. === Sample === Vector dataSetNamesVector = null; dataSetNamesVector = xDataSet.getDataSetNames(); for(int i = 0; i < dataSetNamesVector.size(); i++) { System.out.println((String)dataSetNamesVector.get(i)); } === See Also === getDataSetNamesArray ==== getDataSetNamesArray ==== === Prototype === String[] getDataSetNamesArray() === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | | | | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String[] | dataSetNamesArray | 데이터 셋의 이름 정보가 들어있는 문자열 배열 오브젝트 | === Description === Request 용 데이터셋들의 이름을 문자형 배열로 리턴한다. === Sample === String[] dataSetNamesArray = null; dataSetNamesArray = xDataSet.getDataSetNamesArray(); for(int i = 0; i < dataSetNamesArray.length; i++) { System.out.println((String)dataSetNamesArray[i]); } === See Also === getDataSetNames ==== getDataSetType ==== === Prototype === String getDataSetType(String sDataSetName); === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sDataSetName | 데이터를 구할 데이터 셋 이름 | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | Sting | sDataSetType | * 데이터 셋 타입 * XDataSet.XDATA_INOUT : Request/Response용 데이터 셋 * XDataSet.XDATA_INPUT : Request용 데이터 셋 * XDataSet.XDATA_OUTPUT : Response용 데이터 셋 | === Description === 데이터 셋의 타입을 구하는 함수이다. 데이터 셋의 타입은 Transaction IO Map 에서 입력/출력 부분에 설정된 값에 의해서 결정된다. === Sample === String[] dataSetNamesArray = null; System.out.println(XDataSet.XDATA_OUTPUT); System.out.println(XDataSet.XDATA_INPUT); System.out.println(XDataSet.XDATA_INOUT); dataSetNamesArray = xDataSet.getDataSetNamesArray(); for(int i = 0; i < dataSetNamesArray.length; i++) { System.out.println(xDataSet.getDataSetType(dataSetNamesArray[i])); } === See Also === ==== getDoubleData ==== === Prototype === double getDoubleData(String sDataSetName, String sColumnName, int nRecordIndex); double getDoubleData(String sDataSetName, int nColumnIndex, int nRecordIndex); === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sDataSetName | 데이터를 구할 데이터 셋 이름 | | String | sColumnName | 데이터를 구할 데이터 셋의 칼럼 이름 | | int | nRecordIndex | 데이터를 구할 레코드 인덱스 | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | double | dDataValue | 데이터 셋의 double형 데이터 | === Description === Request 용 데이터 셋의 Double 형 데이터를 얻는 함수이다. === Sample === String[] columnNamesArray = null; int columnCount = 0; int recordCount = 0; int recordIndex = 0; int columnIndex = 0; // Get Record, Column Count recordCount = xDataSet.getRecordCount("INPUT_DATASET"); columnCount = xDataSet.getColumnCount("INPUT_DATASET"); // Get Column Names Array columnNamesArray = xDataSet.getColumnNamesArray("INPUT_DATASET"); // Get Data By Column Name for(recordIndex = 0; recordIndex < recordCount; recordIndex++) { for(columnIndex = 0; columnIndex < columnCount; columnIndex++) { System.out.println(xDataSet.getDoubleData("INPUT_DATASET", columnNamesArray[columnIndex], recordIndex)); } } === See Also === getData, getFloatData, getIntData, getLongData ==== getFloatData ==== === Prototype === float getFloatData(String sDataSetName, String sColumnName, int nRecordIndex); float getFloatData(String sDataSetName, int nColumnIndex, int nRecordIndex); === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sDataSetName | 데이터를 구할 데이터 셋 이름 | | String | sColumnName | 데이터를 구할 데이터 셋의 칼럼 이름 | | int | nRecordIndex | 데이터를 구할 레코드 인덱스 | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | float | fDataValue | 데이터 셋의 float형 데이터 | === Description === Request 용 데이터 셋의 Double 형 데이터를 얻는 함수이다. === Sample === String[] columnNamesArray = null; int columnCount = 0; int recordCount = 0; int recordIndex = 0; int columnIndex = 0; // Get Record, Column Count recordCount = xDataSet.getRecordCount("INPUT_DATASET"); columnCount = xDataSet.getColumnCount("INPUT_DATASET"); // Get Column Names Array columnNamesArray = xDataSet.getColumnNamesArray("INPUT_DATASET"); // Get Data By Column Name for(recordIndex = 0; recordIndex < recordCount; recordIndex++) { for(columnIndex = 0; columnIndex < columnCount; columnIndex++) { System.out.println(xDataSet.getFloatData("INPUT_DATASET", columnNamesArray[columnIndex], recordIndex)); } } === See Also === getData, getDoubleData, getIntData, getLongData ==== getFullVersion ==== === Prototype === String getFullVersion() === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | | | | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sFullVersion | XDataSet 라이브러리의 Full 버전 정보 | === Description === XDataSet 의 전체 버전 정보를 리턴하는 XDataSet 클래스의 static 함수이다. === Sample === System.out.println("FULL VER = " + XDataSet.getFullVersion()); === See Also === getVersion ==== getIntData ==== === Prototype === int getIntData(String sDataSetName, String sColumnName, int nRecordIndex); int getIntData(String sDataSetName, int nColumnIndex, int nRecordIndex) === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sDataSetName | 데이터를 구할 데이터 셋 이름 | | String | sColumnName | 데이터를 구할 데이터 셋의 칼럼 이름 | | int | nRecordIndex | 데이터를 구할 레코드 인덱스 | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | int | nDataValue | 데이터 셋의 int형 데이터 | === Description === Request 용 데이터 셋의 Double 형 데이터를 얻는 함수이다. === Sample === String[] columnNamesArray = null; int columnCount = 0; int recordCount = 0; int recordIndex = 0; int columnIndex = 0; // Get Record, Column Count recordCount = xDataSet.getRecordCount("INPUT_DATASET"); columnCount = xDataSet.getColumnCount("INPUT_DATASET"); // Get Column Names Array columnNamesArray = xDataSet.getColumnNamesArray("INPUT_DATASET"); // Get Data By Column Name for(recordIndex = 0; recordIndex < recordCount; recordIndex++) { for(columnIndex = 0; columnIndex < columnCount; columnIndex++) { System.out.println(xDataSet.getIntData("INPUT_DATASET", columnNamesArray[columnIndex], recordIndex)); } } === See Also === getData, getDoubleData, getFloatData, getLongData ==== getLongData ==== === Prototype === ong getLongData(String sDataSetName, String sColumnName, int nRecordIndex); long getLongData(String sDataSetName, int nColumnIndex, int nRecordIndex) === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sDataSetName | 데이터를 구할 데이터 셋 이름 | | String | sColumnName | 데이터를 구할 데이터 셋의 칼럼 이름 | | int | nRecordIndex | 데이터를 구할 레코드 인덱스 | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | long | lDataValuer | 데이터 셋의 long형 데이터 | === Description === Request 용 데이터 셋의 Double 형 데이터를 얻는 함수이다. === Sample === String[] columnNamesArray = null; int columnCount = 0; int recordCount = 0; int recordIndex = 0; int columnIndex = 0; // Get Record, Column Count recordCount = xDataSet.getRecordCount("INPUT_DATASET"); columnCount = xDataSet.getColumnCount("INPUT_DATASET"); // Get Column Names Array columnNamesArray = xDataSet.getColumnNamesArray("INPUT_DATASET"); // Get Data By Column Name for(recordIndex = 0; recordIndex < recordCount; recordIndex++) { for(columnIndex = 0; columnIndex < columnCount; columnIndex++) { System.out.println(xDataSet.getIntData("INPUT_DATASET", columnNamesArray[columnIndex], recordIndex)); } } === See Also === getData, getDoubleData, getFloatData, getIntData ==== getOutputColumnNames ==== === Prototype === Vector getOutputColumnNames (String sXDataSetName); === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sXDataSetName | 칼럼 이름을 구할 데이터 셋 이름 | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | Vector | columnNamesVector | 데이터 셋의 칼럼 이름 정보를 포함하고 있는 Vector 오브젝트 | === Description === Response 용 데이터 셋의 칼럼 이름들이 포함된 Vector 형 오브젝트를 리턴한다 === Sample === Vector columnNamesVector = null; columnNamesVector = xDataSet.getColumnNames("OUTPUT_DATASET"); for(int i = 0; i < columnNamesVector.size(); i++) { System.out.println((String)columnNamesVector.get(i)); } === See Also === getOutputColumnNamesArray ==== getOutputColumnNamesArray ==== === Prototype === String[] getOtuputColumnNamesArray (String sXDataSetName); === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sXDataSetName | 칼럼 이름을 구할 데이터 셋 이름 | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String[] | columnNamesArray | 데이터 셋의 칼럼 이름 배열 | === Description === Response 용 데이터 셋의 칼럼 이름을 문자열 배열로 리턴한다. === Sample === String[] columnNamesArray = null; columnNamesArray = xDataSet.getOutputColumnNamesArray("INPUT_DATASET"); for(int i = 0; i < columnNamesArray.length; i++) { System.out.println((String)columnNamesArray[i]); } === See Also === getOtuputColumnNames ==== getOutputData ==== === Prototype === String getOutputData(String sDataSetName, String sColumnName, int nRecordIndex); String getOutputData(String sDataSetName, int nColumnIndex, int nRecordIndex) === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sDataSetName | 데이터를 구할 데이터 셋 이름 | | String | sColumnName | 데이터를 구할 데이터 셋의 칼럼 이름 | | int | nRecordIndex | 데이터를 구할 레코드 인덱스 | | int | nColumnIndex | 데이터를 구할 칼럼 인덱스 | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sDataValue | 데이터 셋의 문자열형 데이터 | === Description === Response 용 데이터 셋에 설정된 문자열형 데이터를 얻는 함수이다. === Sample === === See Also === getOutputColumnCount, getOutputRecordCount ==== getOutputDataSetNamesArray ==== === Prototype === String[] getOutputDataSetNamesArray() === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | | | | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String[] | outputdataSetNamesArray | 데이터 셋의 이름 정보가 들어있는 문자열 배열 오브젝트 | === Description === Response 용 데이터셋들의 이름을 문자형 배열로 리턴한다. === Sample === String[] outputDataSetNamesArray = null; outputDataSetNamesArray = xDataSet5.getOutputDataSetNamesArray(); for(int i = 0; i < outputDataSetNamesArray.length; i++) { System.out.println((String)outputDataSetNamesArray[i]); } === See Also === getDataSetNamesArray ==== getOutputRecordCount ==== === Prototype === int getOutputRecordCount(String sDataSetName) === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sDataSetName | 레코드 수를 구할 데이터 셋 이름 | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | int | recordCount | 데이터 셋의 레코드 수 | === Description === Response 용 데이터 셋의 레코드 수를 리턴한다. === Sample === int recordCount = 0; recordCount = xDataSet.getOtuputRecordCount("OUTPUT_DATASET"); System.out.println("Record Count = " + recordCount); === See Also === getOutputData ==== getRecordCount ==== === Prototype === int getRecordCount(String sDataSetName) === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sDataSetName | 레코드 수를 구할 데이터 셋 이름 | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | int | recordCount | 데이터 셋의 레코드 수 | === Description === Request 에 대한 데이터 셋의 레코드 수를 리턴한다. === Sample === int recordCount = 0; recordCount = xDataSet.getRecordCount("INPUT_DATASET"); System.out.println("Record Count = " + recordCount); === See Also === getRecordStatus, getRecordKey ==== getRecordKey ==== === Prototype === String getRecordKey(String sDataSetName, int nRecordIndex) === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sDataSetName | 데이터를 구할 데이터 셋 이름 | | Int | nRecordIndex | 데이터를 구할 레코드 인덱스 | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | Sting | sRecordKey | 레코드의 키 값 | === Description === Request 용 데이터 셋의 레코드 키 값을 얻는 함수이다. 레코드 키 값은 Viewer 에서 내부적으로 관리하는 레코드의 대한 유일한 키값이다. 이 값을 사용하여 Response 데이터 셋의 데이터 설정시 특정 레코드의 값을 업데이트 할 수 있다. === Sample === int recordCount = 0; int recordIndex = 0; recordCount = xDataSet.getRecordCount("INPUT_DATASET"); System.out.println("Record Count = " + recordCount); for(recordIndex = 0; recordIndex < recordCount; recordIndex++) { System.out.println("KEY = " + xDataSet.getRecordKey("INPUT_DATASET", recordIndex)); } === See Also === setRecordKey ==== getRecordType ===- === Prototype === String getRecordType(String sDataSetName, int nRecordIndex) === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sDataSetName | 데이터를 구할 데이터 셋 이름 | | Int | nRecordIndex | 데이터를 구할 레코드 인덱스 | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sRecordType | * 레코드의 상태 값 * XDataSet.XDATA_DELETE : 삭제된 레코드 * XDataSet.XDATA_DELETE : 추가된 레코드 * XDataSet.XDATA_UPDATE : 수정된 레코드 * XDataSet.XDATA_NONE : 변경되지 않은 레코드 | === Description === Request 용 데이터 셋의 레코드의 상태 값을 얻는 함수이다. 레코드 상태값은 Viewer 에서 내부적으로 관리하는 레코드의 대한 상태 정보이다. === Sample === int recordCount = 0; int recordIndex = 0; System.out.println(XDataSet.XDATA_DELETE); System.out.println(XDataSet.XDATA_INSERT); System.out.println(XDataSet.XDATA_UPDATE); System.out.println(XDataSet.XDATA_NONE); recordCount = xDataSet.getRecordCount("INPUT_DATASET"); System.out.println("Record Count = " + recordCount); for(recordIndex = 0; recordIndex < recordCount; recordIndex++) { System.out.println("TYPE = " + xDataSet.getRecordType("INPUT_DATASET", recordIndex)); } === See Also === isDeleteRecord, isInsertRecord, isUpdateRecord ==== getReturnByteArrayData ==== === Prototype === byte[] getReturnByteArrayData (String sCharSet) === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sCharSet | 문자열 셋 | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | Byte[] | baReturnData | Reponse용 바이트 어레이형 데이터 | === Description === Response 용 데이터를 바이트 배열형으로 리턴한다. === Sample === byte[] returnData = xDataSet.getReturnByteArrayData("UTF-8"); === See Also === getReturnStringData ==== getReturnStringData ==== === Prototype === String getReturnStringData () === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | | | | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sReturnData | Reponse용 문자열형 데이터 | === Description === Response 용 데이터를 문자열형으로 리턴한다. === Sample === String returnData = xDataSet.getReturnStringData(); === See Also === getTerminalIpAddress, getTransactionCode, getTransactionHeader, getTransactionMapId ==== getScreenNo ==== === Prototype === String getScreenNo() === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | | | | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sScreenUrl | 화면 URL | === Description === Request 한 Viewer 단의 화면 URL 을 리턴한다. 화면 URL 은 DevStudio 내에서 화면이 저장된 경로를 의미하며, 만약 0010103 화면라는 화면이 PSBTLR 디렉토리 경로로 저장되어 있는 경우, “/PSB/TLR/0010103”가 리턴된다. 이 정보는 Viewer 에서 requestsubmit 함수 호출시 Viewer 내부에서 자동으로 설정되어 서버로 송신된다. === Sample === System.out.println("SCREEN NO = " + xDataSet.getScreenNo()); === See Also === getTerminalIpAddress, getTransactionCode, getTransactionHeader, getTransactionMapId ==== getTerminalIpAddress ==== === Prototype === String getTerminalIpAddress() === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | | | | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sIpAddrl | 사용자 PC의 IP 주소 | === Description === Request 한 사용자 PC 의 IP 주소를 리턴한다. 이 정보는 Viewer 에서 requestsubmit 함수 호출시 Viewer 내부에서 자동으로 설정되어 서버로 송신된다. === Sample === System.out.println("IP ADDRESS = " + xDataSet.getTerminalIpAddress()); === See Also === getScreenNo, getTransactionCode, getTransactionHeader, getTransactionMapId ==== getTransactionCode ==== === Prototype === String getTransactionCode() === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | | | | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sTransactionCode | Request를 요청한 화면의 “trancode” 속성 값 | === Description === Request 를 요청한 화면의 “trancode” 값을 리턴한다. 화면의 “trancode”와 “tranheader” 속성은 프로젝트 프로젝트 진행시 임의로 지정할 수 있는 값이다. Viewer 엔진에서는 이 값을 사용하지 않는다. 이 정보는 Viewer 에서 requestsubmit 함수 호출시 Viewer 내부에서 자동으로 설정되어 서버로 송신된다. === Sample === System.out.println("TR CODE = " + xDataSet.getTransactionCode()); === See Also === getScreenNo, getTerminalIpAddress, getTransactionHeader, getTransactionMapId ==== getTransactionHeader ==== === Prototype === String getTransactionHeader() === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | | | | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sTransactionHeader | Request를 요청한 화면의 “tranheader” 값 | === Description === Request 를 요청한 화면의 “tranheader” 값을 리턴한다. 화면의 “tranheader” 속성은 프로젝트 프로젝트 진행시 임의로 지정할 수 있는 값이다. Viewer 엔진에서는 이 값을 사용하지 않는다. 이 정보는 Viewer 에서 requestsubmit 함수 호출시 Viewer 내부에서 자동으로 설정되어 서버로 송신된다. === Sample === System.out.println("TR HEADER = " + xDataSet.getTransactionHeader()); === See Also === getScreenNo, getTerminalIpAddress, getTransactionCode, getTransactionMapId ==== getTransactionMapId ==== === Prototype === String getTransactionMapId() === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | | | | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sTransactionMapId | Request를 요청한 화면의 Transaction Map ID 값 | === Description === Request 를 요청한 화면의 Transaction Map 의 ID 값을 리턴한다. 화면의 Transaction Map 의 ID 값은 Viewer 의 screen 오브젝트의 requestsubmit() 함수의 첫번째 파라미터로 전달된 값이다. 이 정보는 Viewer 에서 requestsubmit 함수 호출시 Viewer 내부에서 자동으로 설정되어 서버로 송신된다. === Sample === System.out.println("MAP ID = " + xDataSet.getTransactionMapId()); === See Also === getScreenNo, getTerminalIpAddress, getTransactionCode, getTransactionHeader ==== getUserHeader ==== === Prototype === String getUserHeader() === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | | | | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sUserHeader | Request를 요청한 화면의 사용자 헤더 값 | === Description === Request 를 요청한 화면에서 설장한 사용자 헤더 정보의 값을 리턴한다. 사용자 헤더값은 requestsubmit( ) 함수 호출 이전에 screen.setuserheader( ) 함수를 통해서 설정된 값이다. 사용자 헤더는 데이터 셋 이외에 부가적인 정보를 서버로 송신하는 용도로 사용된다. === Sample === System.out.println("USER HEADER = " + xDataSet.getUserHeader()); === See Also === setUserHeader ==== getXDataSetOutputDataString ==== === Prototype === String getXDataSetOutputDataString () === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | | | | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sOutputString | Response용 데이터 셋에 들어있는 데이터에 대한 디버깅용 문자열 | === Description === Response 용 데이터 셋에 설정된 데이터에 대한 정보를 문자열로 리턴한다. Response 용 데이터 셋에 설정되어 있는 값을 디버깅 용도로 확인하기 위해서 사용된다. === Sample === System.out.println("OUTPUT = " + xDataSet.getXDataSetOutputDataString()); === See Also === ==== getVersion ==== === Prototype === String getVersion() === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | | | | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sVersion | XDataSet 라이브러리의 버전 | === Description === XDataSet 의 전체 버전 정보를 리턴하는 XDataSet 클래스의 static 함수이다. === Sample === System.out.println("VER = " + XDataSet.getVersion()); === See Also === getFullVersion ==== isDeleteRecord ==== === Prototype === bool isDeleteRecord(String sDataSetName, int nRecordIndex) === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sDataSetName | 데이터를 구할 데이터 셋 이름 | | int | nRecordIndex | 데이터를 구할 레코드 인덱스 | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | boolean | true/false | 삭제된 레코드 여부 | === Description === Request 용 데이터 셋의 레코드가 삭제된 레코드인지를 판단한다. === Sample === int recordCount = 0; int recordIndex = 0; recordCount = xDataSet.getRecordCount("INPUT_DATASET"); System.out.println("Record Count = " + recordCount); for(recordIndex = 0; recordIndex < recordCount; recordIndex++) { if(xDataSet.isDeleteRecord("INPUT_DATASET", recordIndex)) { System.out.println("DELETE RECORD"); } } === See Also === isInsertRecord, isUpdateRecord ==== isInsertRecord ==== === Prototype === bool isInsertRecord(String sDataSetName, int nRecordIndex) === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sDataSetName | 데이터를 구할 데이터 셋 이름 | | int | nRecordIndex | 데이터를 구할 레코드 인덱스 | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | boolean | true/false | 추가된 레코드 여부 | === Description === Request 용 데이터 셋의 레코드가 추가된 레코드인지를 판단한다. === Sample === int recordCount = 0; int recordIndex = 0; recordCount = xDataSet.getRecordCount("INPUT_DATASET"); System.out.println("Record Count = " + recordCount); for(recordIndex = 0; recordIndex < recordCount; recordIndex++) { if(xDataSet.isInsertRecord("INPUT_DATASET", recordIndex)) { System.out.println("INSERT RECORD"); } } === See Also === isDeleteRecord, IsUpdateRecord ==== isUpdateRecord ==== === Prototype === boolean isUpdateRecord(String sDataSetName, int nRecordIndex) === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sDataSetName | 데이터를 구할 데이터 셋 이름 | | int | nRecordIndex | 데이터를 구할 레코드 인덱스 | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | boolean | true/false | 변경된 레코드 여부 | === Description === Request 용 데이터 셋의 레코드가 변경된 레코드인지를 판단한다. === Sample === int recordCount = 0; int recordIndex = 0; recordCount = xDataSet.getRecordCount("INPUT_DATASET"); System.out.println("Record Count = " + recordCount); for(recordIndex = 0; recordIndex < recordCount; recordIndex++) { if(xDataSet.isInsertRecord("INPUT_DATASET", recordIndex)) { System.out.println("UPDATE RECORD"); } } === See Also === isDeleteRecord, issInsertRecord ==== returnData ==== === Prototype === void returnData() === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | | | | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | | | | === Description === Response 용 데이터 셋의 데이터를 Viewer 단으로 전송한다. 이 함수가 호출된 이후에 추가적인 데이터를 Viewer 쪽으로 전송할 수 없다. === Sample === int recordIndex = 0; int columnIndex = 0; int recordCount = 10; int columnCount = 5; for(recordIndex = 0; recordIndex < recordCount; recordIndex++) { for(columnIndex = 0; columnIndex < columnCount; columnIndex++) { xDataSet.setData(“OUTPUT_DATASET”, “COL_” + columnIndex, recordIndex, “DATA_” + recordIndex + “_” + columnIndex); } } xDataSet.returnData(); === See Also === returnPartData ==== returnPartData ==== === Prototype === String getTransactionMapId() === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | | | | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | | | | === Description === 함수 호출 시점까지의 Response 용 데이터 셋의 데이터를 Viewer 쪽으로 전송한다. 이 함수를 데이터셋의 레코드 단위로 데이터가 채워진 시점에 호출할 수 있다. returnData 함수를 호출하기 전에 여러 번 호출하여도 무관한다. returnData 함수가 호출된 이후에는 returnPartData 함수를 호출할 수 없다. === Sample === int recordIndex = 0; int columnIndex = 0; int recordCount = 10; int columnCount = 5; for(recordIndex = 0; recordIndex < recordCount; recordIndex++) { for(columnIndex = 0; columnIndex < columnCount; columnIndex++) { xDataSet.setData(“OUTPUT_DATASET”, “COL_” + columnIndex, recordIndex, “DATA_” + recordIndex + “_” + columnIndex); } // Return Part Data Per 10 Records if((recordIndex % 10) == 0) { xDataSet.returnPartData(); Thread.sleep(2000); // For Test, Sleep For 2 Seconds } } xDataSet.returnData(); === See Also === returnData ==== setCharacterSet ==== === Prototype === void setCharacterSet(String sCharacterSet) === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sCharacterSet | 출력 데이터로 사용할 Character Set 문자열 | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | | | | === Description === Response 용 데이터 셋의 데이터를 Viewer 단으로 전송하기 위해 사용하는 Character Set 을 지정한다. 서버 비즈니스 플랫폼의 기본 Character Set 이 “EUC-KR”이 아닌 경우에, 해당 Character Set 을 지정한다. === Sample === int recordIndex = 0; int columnIndex = 0; int recordCount = 10; int columnCount = 5; for(recordIndex = 0; recordIndex < recordCount; recordIndex++) { for(columnIndex = 0; columnIndex < columnCount; columnIndex++) { xDataSet.setData(“OUTPUT_DATASET”, “COL_” + columnIndex, recordIndex, “HANGUL_DATA_” + recordIndex + “_” + columnIndex); } } xDataSet.setCharacterSet("UTF-8"); xDataSet.returnData(); === See Also === returnData, returnPartData ==== setColumnNames ==== === Prototype === void setColumnNames(string sDataSetName, String[] saColumnNames) void setColumnNames(string sDataSetName, Vector vColumnNames) === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sDataSetName | 데이터를 구할 데이터 셋 이름 | | String[] 또는 Vector | saColumnNames 또는 vColumnNames | Resposne용 데이터 셋의 칼럼 이름 배열 또는 Vector | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | | | | === Description === XDataSet 오브젝트를 Response 전용으로 생성한 경우에, Response 데이터를 설정하기 전에 Response 용 데이터 셋의 칼럼 이름을 설정하는 함수이다. XDataSet 오브젝트를 Response 전용으로 생성한 경우에, setColumnNames( ) 함수를 호출하기 전에, 반드시 해당 칼럼 정보를 지정할 데이터 셋의 이름이, setDataSetName( ) 또는 setDataSetNames( ) 함수를 통해서 설정이 되어 있어야 한다. HttpRequest, HttpResponse 오브젝트를 파라미터로 받아서 생성한 경우에는 호출하면 안된다. === Sample === int recordIndex = 0; int columnIndex = 0; int recordCount = 20; int columnCount = 0; // Create New XDataSet Object For Output XDataSet xDataSet = new XDataSet(); // Set HTTP Response Object xDataSet.setHttpResponse(httpRsp); String[] saColumnNames = new String[2]; saColumnNames[0] = "OUTPUT_COLUMN_1"; saColumnNames[1] = "OUTPUT_COLUMN_2"; columnCount = saColumnNames.length; xDataSet.setDataSetName("OUTPUT_DATASET"); xDataSet.setColumnNames("OUTPUT_DATASET", saColumnNames); for(recordIndex = 0; recordIndex < recordCount; recordIndex++) { for(columnIndex = 0; columnIndex < columnCount; columnIndex++) { xDataSet.setData("OUTPUT_DATASET", saColumnNames[columnIndex], recordIndex, "DATA_" + recordIndex + "_" + columnIndex); } } xDataSet.returnData(); === See Also === SetDataSetName, SetDataSetNames ==== setData ==== === Prototype === void setData(string sDataSetName, String sColumnName, int nRecordIndex, String sValue); void setData(string sDataSetName, int nColumnIndex, int nRecordIndex, String sValue) === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sDataSetName | Resposne용 데이터 셋 이름 | | String | sColumnName | Resposne용 데이터 셋의 칼럼 이름 | | int | nRecordIndex | 데이터 셋 레코드 인덱스 | | String | sValue | 설정할 데이터 | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | | | | === Description === Response 용 데이터를 설정하는 함수이다. 설정된 데이터는 ReturnPartData 또는 ReturnData 함수 호출시 Viewer 에게 전송된다. xDataSet 오브젝트가 Response 전용으로 생성된 경우에는 SetData 함수를 호출하기 전에 SetDataSetName, SetColumnNames 함수를 호출하여 Response 용 데이터 셋의 구조를 설정해야 한다. === Sample === String valueString = 3; xDataSet.setData("OUTPUT_DATASET", "COLUMN_STRING", recordIndex, valueString); xDataSet.returnData(); === See Also === setDoubleData, setIntData, setFloatData, setLongData ==== setDataSetName ==== === Prototype === void setDataSetName(string sDataSetName) === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sDataSetName | Resposne용 데이터 셋 이름 | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | | | | === Description === Response 용 데이터 셋의 이름을 추가하는 함수이다. XDataSet 오브젝트를 Response 전용으로 생성한 경우에 Response 데이터를 설정하기 전에 반드시 호출돼야 한다. HttpRequest, HttpResponse 오브젝트를 파라미터로 받아서 생성한 경우에는 호출하면 안된다. === Sample === xDataSet.SetDataSetName(“OUTPUT_DATASET”); === See Also === SetDataSetNames, SetColumnNames ==== setDataSetNames ==== === Prototype === void setDataSetNames(String[] saDataSetNames) void setDataSetNames(Vector vDataSetNames) === Parameter === |< 100% 200px 20% >| ^ Type ^ Name ^ 설명 ^ | String[] 또는 Vector | saDataSetNames\\ vDataSetNames | Resposne용 데이터 셋 이름 배열 또는 Vector | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | | | | === Description === Response 용 데이터 셋의 이름을 추가하는 함수이다. XDataSet 오브젝트를 Response 전용으로 생성한 경우에 Response 데이터를 설정하기 전에 반드시 호출돼야 한다. HttpRequest, HttpResponse 오브젝트를 파라미터로 받아서 생성한 경우에는 호출하면 안된다. === Sample === String[] saDataSetNames = new String[2]; saDataSetNames[0] = “OUTPUT_DATASET_1”; saDataSetNames[1] = “OUTPUT_DATASET_2”; xDataSet.SetDataSetNames(saDataSetNames); === See Also === SetDataSetName, SetColumnNames ==== setDoubleData ==== === Prototype === void setDoubleData(string sDataSetName, String sColumnName, int nRecordIndex, double dValue); void setDoubleData(string sDataSetName, int nColumnIndex, int nRecordIndex, double dValue) === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sDataSetName | Resposne용 데이터 셋 이름 | | String | sColumnName | Resposne용 데이터 셋의 칼럼 이름 | | int | nRecordIndex | 데이터 셋 레코드 인덱스 | | String | sValue | 설정할 데이터 | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | | | | === Description === Response 용 데이터를 설정하는 함수이다. 설정된 데이터는 ReturnPartData 또는 ReturnData 함수 호출시 Viewer 에게 전송된다. xDataSet 오브젝트가 Response 전용으로 생성된 경우에는 SetData 함수를 호출하기 전에 SetDataSetName, SetColumnNames 함수를 호출하여 Response 용 데이터 셋의 구조를 설정해야 한다. === Sample === double valueDouble = 3; xDataSet.setFloatData("OUTPUT_DATASET", "COLUMN_DOUBLE", recordIndex, valueDouble); xDataSet.returnData(); === See Also === setData, setIntData, setFloatData, setLongData ==== setErrorMessage ==== === Prototype === void setErrorMessage(String sErrCode, String sMessage); === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sErrCode | 에러 메시지 코드 | | String | sMessage | 에러 메시지 | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | | | | === Description === Request 처리중 오류가 발생한 경우에, Viewer 쪽으로 전송할 에러 메시지 코드와 에러 메시지를 설정하는 함수이다. 이 함수가 호출된 이후에 ReturnData 함수를 호출한 경우에, 화면의 on_submit_complete 콜백함수의 recv_code 와 recv_msg 파리미터에 설정되고, result 항목에는 “0”으로 설정된다. sErrCode 와 sMessage 파라미터는 개발자가 자유롭게 설정이 가능하다. === Sample === string sErrCode = “ER0001”; string sMessage = “Invalid Data Format”; xDataSet.SetErrorMessage(sErrCode, sMessage); xDataSet.ReturnData(); === See Also === setMessage, returnData ==== setFloatData ==== === Prototype === void setFloatData(String sDataSetName, String sColumnName, int nRecordIndex, float fValue); void setFloatData(String sDataSetName, int nColumnIndex, int nRecordIndex, float fValue) === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sDataSetName | Resposne용 데이터 셋 이름 | | String | sColumnName | Resposne용 데이터 셋의 칼럼 이름 | | int | nRecordIndex | 데이터 셋 레코드 인덱스 | | String | sValue | 설정할 데이터 | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | | | | === Description === Response 용 데이터를 설정하는 함수이다. 설정된 데이터는 ReturnPartData 또는 ReturnData 함수 호출시 Viewer 에게 전송된다. xDataSet 오브젝트가 Response 전용으로 생성된 경우에는 SetData 함수를 호출하기 전에 SetDataSetName, SetColumnNames 함수를 호출하여 Response 용 데이터 셋의 구조를 설정해야 한다. === Sample === float valueFloat = 3; xDataSet.setFloatData("OUTPUT_DATASET", "COLUMN_FLOAT", recordIndex, valueFloat); xDataSet.returnData(); === See Also === setData, setDoubleData, setIntData, setLongData ==== setIntData ==== === Prototype === void setIntData(String sDataSetName, String sColumnName, int nRecordIndex, int nValue); void setIntData(String sDataSetName, int nColumnIndex, int nRecordIndex, int nValue) === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sDataSetName | Resposne용 데이터 셋 이름 | | String | sColumnName | Resposne용 데이터 셋의 칼럼 이름 | | int | nRecordIndex | 데이터 셋 레코드 인덱스 | | String | sValue | 설정할 데이터 | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | | | | === Description === Response 용 데이터를 설정하는 함수이다. 설정된 데이터는 ReturnPartData 또는 ReturnData 함수 호출시Viewer 에게 전송된다. xDataSet 오브젝트가 Response 전용으로 생성된 경우에는 SetData 함수를 호출하기 전에 SetDataSetName, SetColumnNames 함수를 호출하여 Response 용 데이터 셋의 구조를 설정해야 한다. === Sample === int valueInt = 3; xDataSet.setFloatData("OUTPUT_DATASET", "COLUMN_DOUBLE", recordIndex, valueInt); xDataSet.returnData(); === See Also === setData, setDoubleData, setFloatData, setLongData ==== setLongData ==== === Prototype === void setLongData(String sDataSetName, String columnName, int nRecordIndex, long lValue); void setLongData(String sDataSetName, int nColumnIndex, int nRecordIndex, long lValue) === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sDataSetName| Resposne용 데이터 셋 이름 | | String | sColumnName | Resposne용 데이터 셋의 칼럼 이름 | | int | nRecordIndex | 데이터 셋 레코드 인덱스 | | String | sValue | 설정할 데이터 | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | | | | === Description === Response 용 데이터를 설정하는 함수이다. 설정된 데이터는 ReturnPartData 또는 ReturnData 함수 호출시Viewer 에게 전송된다. xDataSet 오브젝트가 Response 전용으로 생성된 경우에는 SetData 함수를 호출하기 전에 SetDataSetName, SetColumnNames 함수를 호출하여 Response 용 데이터 셋의 구조를 설정해야 한다. === Sample === long valueLong = 3; xDataSet.setFloatData("OUTPUT_DATASET", "COLUMN_LONG", recordIndex, valueLong); xDataSet.returnData(); === See Also === setData, setDoubleData, setIntData, setFloatData ==== setMessage ==== === Prototype === void setMessage(string sMsgCode, string sMessage); === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | sMsgCode | 에러 메시지 코드 | | String | sMessage | 에러 메시지 | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | | | | === Description === Request 가 정상적으로 처리되었으나, Viewer 에게 추가적인 메시지를 전달하기 위해서 사용하는 함수이다. 이 함수가 호출된 이후에 ReturnData 함수를 호출한 경우에, 화면의 on_submit_complete 콜백함수의 recv_code 와 recv_msg 파리미터에 설정된다. === Sample === String sMsgCode = “INFO_0001”; String sMessage = “Success”; xDataSet.SetErrorMessage(sMsgCode, sMessage); xDataSet.ReturnData(); === See Also === setMessage, setUserHeader, returnData ==== setHttpResponse ==== === Prototype === void setHttpResponse(HttpResponse oHttpRsp) === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | HttpResponse | oHttpRsp | HttpResponse 오브젝트 | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | | | | === Description === Response 용 데이터 셋의 데이터를 Viewer 에게 전송하기 위해서 사용할 HttpResponse 오브젝트를 설정하는 함수이다. XDataSet 오브젝트를 Response 전용으로 생성한 경우에 Response 데이터를 설정하기 전에 반드시 호출돼야 한다. HttpRequest, HttpResponse 오브젝트를 파라미터로 받아서 생성한 경우에는 호출할 필요가없다. === Sample === xDataSet.setHttpResponse(httpResponse); === See Also === returnData, returnPartData ==== setRecordKey ==== === Prototype === void setRecordKey(string sDataSetName, int nRecordIndex, String sRecordKey) === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String |sDataSetName |Resposne용 데이터 셋 이름 | | Int |nRecordIndex |데이터 셋의 레코드 인텍스 | | String |sRecordKey |설정할 데이터 셋의 레코드 키 값 | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | | | | === Description === Response 용 데이터 셋의 특정 레코드의 레코드 키 값을 설정하는 함수이다. 트랜잭션 I/O 정의시 출력 부분의 유형을 “UPDATE”로 지정한 경우, 해당 키 값을 이용해서 Viewer 가 기존에 가지고 있는 데이터를 갱신한다. 설정할 레코드 키 값은 GetRecordKey 함수를 이용해서 사용한다. 트랜잭션 I/O 정의시 출력 부분이 “CLEAR”방식인 경우에는 아무런 의미가 없다. Viewer 단에서 RecordKey 값을 설정된 데이터를 수신한 경우에, 기존데이터에서 해당 레코드 키에 매칭되는 레코드가 없을 경우에는, 기존 데이터에 추가된다. === Sample === int nRecordIndex = 0; String sRecordKey: sRecordKey = xDataSet.getRecordKey(“INPUT_DATASET”, nRecordIndex); xDataSet.setData(“OUTPUT_DATASET”, “COLUMN_UPDATE”, nRecordIndex, “UPDATE_DATA”); xDataSet.setRecordKey(“OUTPUT_DATASET”, nRecordIndex, sRecordKey); === See Also === getRecordKey ==== setUserHeader ==== === Prototype === void setUserHeader(String sUserHeader); === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ |String | sUserHeader |설정할 데이터 셋의 레코드 키 값 | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | | | | === Description === Response 용 데이터 셋과 함께, Viewer 쪽으로 송신될 사용자 헤더를 설정하는 함수이다. 화면의 on_submit_complete 콜백함수의 recv_userheader 파리미터에 설정된다. === Sample === String sUserHeader = “USER_HEADER_DATA”; xDataSet.setUserHeader(xUserHeader); xDataSet.returnData(); === See Also === returnData, getUserHeader ==== replaceHTMLTagFilter ==== === Prototype === static String replaceHTMLTagFilter(String strData); === Parameter === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ |String | strData |크로스 사이트 스트립팅 처리로 인해 치환된 XDataSet데이터 | === Return Value === |< 100% 100px 200px - >| ^ Type ^ Name ^ 설명 ^ | String | strData | 재치환된 XDataSet데이터 | === Description === Request 용 데이터 셋 문자열이 크로스 사이트 스트립팅 처리로 인해 치환되어 있는 경우, 재치환 하는 함수이다. 재치환 하는 문자는 다음의 5 가지이다. *< : < *> : > *& : & *' : ' *" : “ === Sample === String input = "<script>alert('XSS');</script>"; String output = XDataSet5.replaceHTMLTagFilter(input); System.out.println(output); // === See Also === getData