├── .gitignore ├── README.md ├── build.gradle ├── cascading-aws ├── build.gradle ├── part1 │ └── scripts │ │ └── lingual_hdfs_redshift.sh ├── part2 │ ├── build.gradle │ └── src │ │ ├── main │ │ ├── java │ │ │ └── cascading │ │ │ │ └── aws │ │ │ │ └── SampleFlow.java │ │ └── resources │ │ │ └── cascading │ │ │ └── bind │ │ │ └── provider.properties │ │ └── scripts │ │ └── emrExample.sh ├── part3 │ ├── build.gradle │ └── src │ │ ├── main │ │ ├── java │ │ │ └── cascading │ │ │ │ └── aws │ │ │ │ └── SampleFlow.java │ │ └── resources │ │ │ └── cascading │ │ │ └── bind │ │ │ └── provider.properties │ │ └── scripts │ │ └── emrExample.sh ├── part4 │ ├── AwsCredentials.properties │ ├── build.gradle │ ├── data │ │ └── hashjoin_sample.csv │ ├── settings.gradle │ └── src │ │ └── main │ │ ├── java │ │ └── cascading │ │ │ └── kinesis │ │ │ └── sample │ │ │ └── KinesisLogProcessingApp.java │ │ ├── resources │ │ └── configuration.properties │ │ └── scripts │ │ ├── cascading-kinesis.sh │ │ └── setup-script.sh ├── settings.gradle └── src │ └── asciidoc │ ├── aws.adoc │ ├── images │ ├── part_1.png │ ├── part_2.png │ └── part_3.png │ ├── index.adoc │ ├── part1.adoc │ ├── part2.adoc │ ├── part3.adoc │ └── prerequisites.adoc ├── cascading-copybook ├── LICENSE.txt ├── README.md ├── build.gradle ├── data │ ├── ZOS.FCUSTDAT.RDW.bin │ └── sample.dat └── src │ ├── asciidoc │ ├── images │ │ ├── architecture.png │ │ ├── driven.png │ │ └── record-layout.png │ ├── index.adoc │ └── prerequisites.adoc │ ├── main │ ├── cobol │ │ └── custdat.cpy │ ├── java │ │ └── cascading │ │ │ ├── hadoop │ │ │ └── legstar │ │ │ │ └── cobol │ │ │ │ ├── beans │ │ │ │ └── custdat │ │ │ │ │ ├── CustomerData.java │ │ │ │ │ ├── ObjectFactory.java │ │ │ │ │ ├── PersonalData.java │ │ │ │ │ ├── Transaction.java │ │ │ │ │ ├── TransactionDate.java │ │ │ │ │ ├── Transactions.java │ │ │ │ │ ├── bind │ │ │ │ │ ├── CustomerDataBinding.java │ │ │ │ │ ├── CustomerDataHostToJavaTransformer.java │ │ │ │ │ ├── CustomerDataJavaToHostTransformer.java │ │ │ │ │ ├── CustomerDataTransformers.java │ │ │ │ │ ├── PersonalDataBinding.java │ │ │ │ │ ├── TransactionBinding.java │ │ │ │ │ ├── TransactionDateBinding.java │ │ │ │ │ ├── TransactionWrapperBinding.java │ │ │ │ │ └── TransactionsBinding.java │ │ │ │ │ └── package-info.java │ │ │ │ ├── fields │ │ │ │ └── Custdat.java │ │ │ │ └── hadoop │ │ │ │ ├── app │ │ │ │ └── Main.java │ │ │ │ ├── io │ │ │ │ ├── CustdatInputFormat.java │ │ │ │ ├── CustdatRecordMatcher.java │ │ │ │ └── CustdatRecordReader.java │ │ │ │ ├── scheme │ │ │ │ ├── CustdatScheme.java │ │ │ │ ├── RdwScheme.java │ │ │ │ └── RdwSourceContext.java │ │ │ │ └── transform │ │ │ │ ├── Cob2FieldsNames.java │ │ │ │ ├── RdwUtils.java │ │ │ │ ├── TransformersManager.java │ │ │ │ ├── TupleEntryCobolUnmarshalVisitor.java │ │ │ │ └── TupleEntryTransformersManager.java │ │ │ └── legstar │ │ │ └── cobolcopybook │ │ │ ├── app │ │ │ └── Main.java │ │ │ ├── beans │ │ │ ├── bean1 │ │ │ │ ├── BdfoCommonData.java │ │ │ │ ├── ObjectFactory.java │ │ │ │ ├── bind │ │ │ │ │ ├── BdfoCommonDataBinding.java │ │ │ │ │ ├── BdfoCommonDataHostToJavaTransformer.java │ │ │ │ │ ├── BdfoCommonDataJavaToHostTransformer.java │ │ │ │ │ └── BdfoCommonDataTransformers.java │ │ │ │ └── package-info.java │ │ │ ├── bean10 │ │ │ │ ├── Kcp07V05AccountBalanceData.java │ │ │ │ ├── Kcp07V05BalDetails.java │ │ │ │ ├── Kcp07V05BalTab.java │ │ │ │ ├── ObjectFactory.java │ │ │ │ ├── bind │ │ │ │ │ ├── Kcp07V05AccountBalanceDataBinding.java │ │ │ │ │ ├── Kcp07V05BalDetailsBinding.java │ │ │ │ │ ├── Kcp07V05BalDetailsHostToJavaTransformer.java │ │ │ │ │ ├── Kcp07V05BalDetailsJavaToHostTransformer.java │ │ │ │ │ ├── Kcp07V05BalDetailsTransformers.java │ │ │ │ │ ├── Kcp07V05BalTabBinding.java │ │ │ │ │ └── Kcp07V05BalTabWrapperBinding.java │ │ │ │ └── package-info.java │ │ │ ├── bean11 │ │ │ │ ├── Kcp08V05AuthLimitData.java │ │ │ │ ├── Kcp08V05AuthLimits.java │ │ │ │ ├── Kcp08V05LimitTable.java │ │ │ │ ├── ObjectFactory.java │ │ │ │ ├── bind │ │ │ │ │ ├── Kcp08V05AuthLimitDataBinding.java │ │ │ │ │ ├── Kcp08V05AuthLimitsBinding.java │ │ │ │ │ ├── Kcp08V05AuthLimitsHostToJavaTransformer.java │ │ │ │ │ ├── Kcp08V05AuthLimitsJavaToHostTransformer.java │ │ │ │ │ ├── Kcp08V05AuthLimitsTransformers.java │ │ │ │ │ ├── Kcp08V05LimitTableBinding.java │ │ │ │ │ └── Kcp08V05LimitTableWrapperBinding.java │ │ │ │ └── package-info.java │ │ │ ├── bean12 │ │ │ │ ├── Kcp09V05LimitTable.java │ │ │ │ ├── Kcp09V05OtherLimits.java │ │ │ │ ├── Kcp09V05OtherLimitsData.java │ │ │ │ ├── ObjectFactory.java │ │ │ │ ├── bind │ │ │ │ │ ├── Kcp09V05LimitTableBinding.java │ │ │ │ │ ├── Kcp09V05LimitTableWrapperBinding.java │ │ │ │ │ ├── Kcp09V05OtherLimitsBinding.java │ │ │ │ │ ├── Kcp09V05OtherLimitsDataBinding.java │ │ │ │ │ ├── Kcp09V05OtherLimitsHostToJavaTransformer.java │ │ │ │ │ ├── Kcp09V05OtherLimitsJavaToHostTransformer.java │ │ │ │ │ └── Kcp09V05OtherLimitsTransformers.java │ │ │ │ └── package-info.java │ │ │ ├── bean13 │ │ │ │ ├── Kcp13V05NotifDiaryFormat.java │ │ │ │ ├── Kcp13V05NotificatDiaryData.java │ │ │ │ ├── Kcp13V05NotificatFreqDetail.java │ │ │ │ ├── Kcp13V05NotificationData.java │ │ │ │ ├── Kcp13V05PrenotPrintDates.java │ │ │ │ ├── ObjectFactory.java │ │ │ │ ├── bind │ │ │ │ │ ├── Kcp13V05NotifDiaryFormatBinding.java │ │ │ │ │ ├── Kcp13V05NotifDiaryFormatHostToJavaTransformer.java │ │ │ │ │ ├── Kcp13V05NotifDiaryFormatJavaToHostTransformer.java │ │ │ │ │ ├── Kcp13V05NotifDiaryFormatTransformers.java │ │ │ │ │ ├── Kcp13V05NotificatDiaryDataBinding.java │ │ │ │ │ ├── Kcp13V05NotificatDiaryDataWrapperBinding.java │ │ │ │ │ ├── Kcp13V05NotificatFreqDetailBinding.java │ │ │ │ │ ├── Kcp13V05NotificatFreqDetailWrapperBinding.java │ │ │ │ │ ├── Kcp13V05NotificationDataBinding.java │ │ │ │ │ ├── Kcp13V05PrenotPrintDatesBinding.java │ │ │ │ │ └── Kcp13V05PrenotPrintDatesWrapperBinding.java │ │ │ │ └── package-info.java │ │ │ ├── bean14 │ │ │ │ ├── Kcp16V05CrSuppList.java │ │ │ │ ├── Kcp16V05DrSuppList.java │ │ │ │ ├── Kcp16V05NotificationTable.java │ │ │ │ ├── Kcp16V05ProdAgreeStmtHist.java │ │ │ │ ├── Kcp16V05StatementHistData.java │ │ │ │ ├── ObjectFactory.java │ │ │ │ ├── bind │ │ │ │ │ ├── Kcp16V05CrSuppListBinding.java │ │ │ │ │ ├── Kcp16V05CrSuppListWrapperBinding.java │ │ │ │ │ ├── Kcp16V05DrSuppListBinding.java │ │ │ │ │ ├── Kcp16V05DrSuppListWrapperBinding.java │ │ │ │ │ ├── Kcp16V05NotificationTableBinding.java │ │ │ │ │ ├── Kcp16V05NotificationTableWrapperBinding.java │ │ │ │ │ ├── Kcp16V05ProdAgreeStmtHistBinding.java │ │ │ │ │ ├── Kcp16V05ProdAgreeStmtHistHostToJavaTransformer.java │ │ │ │ │ ├── Kcp16V05ProdAgreeStmtHistJavaToHostTransformer.java │ │ │ │ │ ├── Kcp16V05ProdAgreeStmtHistTransformers.java │ │ │ │ │ └── Kcp16V05StatementHistDataBinding.java │ │ │ │ └── package-info.java │ │ │ ├── bean15 │ │ │ │ ├── Kcp17V05AccAddresses.java │ │ │ │ ├── Kcp17V05AddressData.java │ │ │ │ ├── Kcp17V05AddressDtls.java │ │ │ │ ├── ObjectFactory.java │ │ │ │ ├── bind │ │ │ │ │ ├── Kcp17V05AccAddressesBinding.java │ │ │ │ │ ├── Kcp17V05AccAddressesHostToJavaTransformer.java │ │ │ │ │ ├── Kcp17V05AccAddressesJavaToHostTransformer.java │ │ │ │ │ ├── Kcp17V05AccAddressesTransformers.java │ │ │ │ │ ├── Kcp17V05AddressDataBinding.java │ │ │ │ │ ├── Kcp17V05AddressDtlsBinding.java │ │ │ │ │ └── Kcp17V05AddressDtlsWrapperBinding.java │ │ │ │ └── package-info.java │ │ │ ├── bean16 │ │ │ │ ├── Kcp18V05AccLongName.java │ │ │ │ ├── Kcp18V05LnameData.java │ │ │ │ ├── Kcp18V05LongNameData.java │ │ │ │ ├── ObjectFactory.java │ │ │ │ ├── bind │ │ │ │ │ ├── Kcp18V05AccLongNameBinding.java │ │ │ │ │ ├── Kcp18V05AccLongNameHostToJavaTransformer.java │ │ │ │ │ ├── Kcp18V05AccLongNameJavaToHostTransformer.java │ │ │ │ │ ├── Kcp18V05AccLongNameTransformers.java │ │ │ │ │ ├── Kcp18V05LnameDataBinding.java │ │ │ │ │ ├── Kcp18V05LnameDataWrapperBinding.java │ │ │ │ │ └── Kcp18V05LongNameDataBinding.java │ │ │ │ └── package-info.java │ │ │ ├── bean17 │ │ │ │ ├── Kcp83V05InterestRewardData.java │ │ │ │ ├── Kcp83V05InterestRewardTiers.java │ │ │ │ ├── Kcp83V05RewardTierData.java │ │ │ │ ├── Kcp83V05RewardTiersData.java │ │ │ │ ├── ObjectFactory.java │ │ │ │ ├── bind │ │ │ │ │ ├── Kcp83V05InterestRewardDataBinding.java │ │ │ │ │ ├── Kcp83V05InterestRewardDataHostToJavaTransformer.java │ │ │ │ │ ├── Kcp83V05InterestRewardDataJavaToHostTransformer.java │ │ │ │ │ ├── Kcp83V05InterestRewardDataTransformers.java │ │ │ │ │ ├── Kcp83V05InterestRewardTiersBinding.java │ │ │ │ │ ├── Kcp83V05RewardTierDataBinding.java │ │ │ │ │ ├── Kcp83V05RewardTierDataWrapperBinding.java │ │ │ │ │ └── Kcp83V05RewardTiersDataBinding.java │ │ │ │ └── package-info.java │ │ │ ├── bean18 │ │ │ │ ├── Kcp93V05AccLevelCrint.java │ │ │ │ ├── Kcp93V05AccLevelCrintTiers.java │ │ │ │ ├── Kcp93V05HistoricalTierData.java │ │ │ │ ├── Kcp93V05InterestLimitData.java │ │ │ │ ├── Kcp93V05TierLimitData.java │ │ │ │ ├── ObjectFactory.java │ │ │ │ ├── bind │ │ │ │ │ ├── Kcp93V05AccLevelCrintBinding.java │ │ │ │ │ ├── Kcp93V05AccLevelCrintHostToJavaTransformer.java │ │ │ │ │ ├── Kcp93V05AccLevelCrintJavaToHostTransformer.java │ │ │ │ │ ├── Kcp93V05AccLevelCrintTiersBinding.java │ │ │ │ │ ├── Kcp93V05AccLevelCrintTransformers.java │ │ │ │ │ ├── Kcp93V05HistoricalTierDataBinding.java │ │ │ │ │ ├── Kcp93V05HistoricalTierDataWrapperBinding.java │ │ │ │ │ ├── Kcp93V05InterestLimitDataBinding.java │ │ │ │ │ ├── Kcp93V05TierLimitDataBinding.java │ │ │ │ │ └── Kcp93V05TierLimitDataWrapperBinding.java │ │ │ │ └── package-info.java │ │ │ ├── bean19 │ │ │ │ ├── Kcp94V05AccLevelCrint.java │ │ │ │ ├── Kcp94V05AccLevelCrintData.java │ │ │ │ ├── Kcp94V05HistoricalRateData.java │ │ │ │ ├── Kcp94V05InterestRateData.java │ │ │ │ ├── Kcp94V05TierRateData.java │ │ │ │ ├── ObjectFactory.java │ │ │ │ ├── bind │ │ │ │ │ ├── Kcp94V05AccLevelCrintBinding.java │ │ │ │ │ ├── Kcp94V05AccLevelCrintDataBinding.java │ │ │ │ │ ├── Kcp94V05AccLevelCrintHostToJavaTransformer.java │ │ │ │ │ ├── Kcp94V05AccLevelCrintJavaToHostTransformer.java │ │ │ │ │ ├── Kcp94V05AccLevelCrintTransformers.java │ │ │ │ │ ├── Kcp94V05HistoricalRateDataBinding.java │ │ │ │ │ ├── Kcp94V05HistoricalRateDataWrapperBinding.java │ │ │ │ │ ├── Kcp94V05InterestRateDataBinding.java │ │ │ │ │ ├── Kcp94V05TierRateDataBinding.java │ │ │ │ │ └── Kcp94V05TierRateDataWrapperBinding.java │ │ │ │ └── package-info.java │ │ │ ├── bean2 │ │ │ │ ├── BdfoFileHeader.java │ │ │ │ ├── ObjectFactory.java │ │ │ │ ├── bind │ │ │ │ │ ├── BdfoFileHeaderBinding.java │ │ │ │ │ ├── BdfoFileHeaderHostToJavaTransformer.java │ │ │ │ │ ├── BdfoFileHeaderJavaToHostTransformer.java │ │ │ │ │ └── BdfoFileHeaderTransformers.java │ │ │ │ └── package-info.java │ │ │ ├── bean20 │ │ │ │ ├── Kcp96V05AccLevelDrint.java │ │ │ │ ├── Kcp96V05AccLevelDrintData.java │ │ │ │ ├── Kcp96V05HistoricalTierData.java │ │ │ │ ├── Kcp96V05InterestLimitData.java │ │ │ │ ├── Kcp96V05TierLimitData.java │ │ │ │ ├── ObjectFactory.java │ │ │ │ ├── bind │ │ │ │ │ ├── Kcp96V05AccLevelDrintBinding.java │ │ │ │ │ ├── Kcp96V05AccLevelDrintDataBinding.java │ │ │ │ │ ├── Kcp96V05AccLevelDrintHostToJavaTransformer.java │ │ │ │ │ ├── Kcp96V05AccLevelDrintJavaToHostTransformer.java │ │ │ │ │ ├── Kcp96V05AccLevelDrintTransformers.java │ │ │ │ │ ├── Kcp96V05HistoricalTierDataBinding.java │ │ │ │ │ ├── Kcp96V05HistoricalTierDataWrapperBinding.java │ │ │ │ │ ├── Kcp96V05InterestLimitDataBinding.java │ │ │ │ │ ├── Kcp96V05TierLimitDataBinding.java │ │ │ │ │ └── Kcp96V05TierLimitDataWrapperBinding.java │ │ │ │ └── package-info.java │ │ │ ├── bean21 │ │ │ │ ├── Kcp97V05DrintRateData.java │ │ │ │ ├── Kcp97V05DrintRates.java │ │ │ │ ├── Kcp97V05HistoricalRateData.java │ │ │ │ ├── Kcp97V05InterestRateData.java │ │ │ │ ├── Kcp97V05TierRateData.java │ │ │ │ ├── ObjectFactory.java │ │ │ │ ├── bind │ │ │ │ │ ├── Kcp97V05DrintRateDataBinding.java │ │ │ │ │ ├── Kcp97V05DrintRatesBinding.java │ │ │ │ │ ├── Kcp97V05DrintRatesHostToJavaTransformer.java │ │ │ │ │ ├── Kcp97V05DrintRatesJavaToHostTransformer.java │ │ │ │ │ ├── Kcp97V05DrintRatesTransformers.java │ │ │ │ │ ├── Kcp97V05HistoricalRateDataBinding.java │ │ │ │ │ ├── Kcp97V05HistoricalRateDataWrapperBinding.java │ │ │ │ │ ├── Kcp97V05InterestRateDataBinding.java │ │ │ │ │ ├── Kcp97V05TierRateDataBinding.java │ │ │ │ │ └── Kcp97V05TierRateDataWrapperBinding.java │ │ │ │ └── package-info.java │ │ │ ├── bean3 │ │ │ │ ├── BdfoFileTrailer.java │ │ │ │ ├── ObjectFactory.java │ │ │ │ ├── bind │ │ │ │ │ ├── BdfoFileTrailerBinding.java │ │ │ │ │ ├── BdfoFileTrailerHostToJavaTransformer.java │ │ │ │ │ ├── BdfoFileTrailerJavaToHostTransformer.java │ │ │ │ │ └── BdfoFileTrailerTransformers.java │ │ │ │ └── package-info.java │ │ │ ├── bean4 │ │ │ │ ├── ObjectFactory.java │ │ │ │ ├── Ogp03AccountTaxData.java │ │ │ │ ├── bind │ │ │ │ │ ├── Ogp03AccountTaxDataBinding.java │ │ │ │ │ ├── Ogp03AccountTaxDataHostToJavaTransformer.java │ │ │ │ │ ├── Ogp03AccountTaxDataJavaToHostTransformer.java │ │ │ │ │ └── Ogp03AccountTaxDataTransformers.java │ │ │ │ └── package-info.java │ │ │ ├── bean5 │ │ │ │ ├── ObjectFactory.java │ │ │ │ ├── Ogp04RepaymentData.java │ │ │ │ ├── bind │ │ │ │ │ ├── Ogp04RepaymentDataBinding.java │ │ │ │ │ ├── Ogp04RepaymentDataHostToJavaTransformer.java │ │ │ │ │ ├── Ogp04RepaymentDataJavaToHostTransformer.java │ │ │ │ │ └── Ogp04RepaymentDataTransformers.java │ │ │ │ └── package-info.java │ │ │ ├── bean6 │ │ │ │ ├── ObjectFactory.java │ │ │ │ ├── Ogp06ReferDayOfWeek.java │ │ │ │ ├── Ogp06ReferralData.java │ │ │ │ ├── bind │ │ │ │ │ ├── Ogp06ReferDayOfWeekBinding.java │ │ │ │ │ ├── Ogp06ReferDayOfWeekWrapperBinding.java │ │ │ │ │ ├── Ogp06ReferralDataBinding.java │ │ │ │ │ ├── Ogp06ReferralDataHostToJavaTransformer.java │ │ │ │ │ ├── Ogp06ReferralDataJavaToHostTransformer.java │ │ │ │ │ └── Ogp06ReferralDataTransformers.java │ │ │ │ └── package-info.java │ │ │ ├── bean7 │ │ │ │ ├── Kcp01V05AccountDetails.java │ │ │ │ ├── Kcp01V05BankAccountData.java │ │ │ │ ├── Kcp01V05NationalInsuranNo1.java │ │ │ │ ├── Kcp01V05NationalInsuranNo2.java │ │ │ │ ├── ObjectFactory.java │ │ │ │ ├── bind │ │ │ │ │ ├── Kcp01V05AccountDetailsBinding.java │ │ │ │ │ ├── Kcp01V05AccountDetailsHostToJavaTransformer.java │ │ │ │ │ ├── Kcp01V05AccountDetailsJavaToHostTransformer.java │ │ │ │ │ ├── Kcp01V05AccountDetailsTransformers.java │ │ │ │ │ ├── Kcp01V05BankAccountDataBinding.java │ │ │ │ │ ├── Kcp01V05NationalInsuranNo1Binding.java │ │ │ │ │ └── Kcp01V05NationalInsuranNo2Binding.java │ │ │ │ └── package-info.java │ │ │ ├── bean8 │ │ │ │ ├── Kcp02V05AccountStatus.java │ │ │ │ ├── Kcp02V05AccountStatusData.java │ │ │ │ ├── Kcp02V05Dormancy.java │ │ │ │ ├── ObjectFactory.java │ │ │ │ ├── bind │ │ │ │ │ ├── Kcp02V05AccountStatusBinding.java │ │ │ │ │ ├── Kcp02V05AccountStatusDataBinding.java │ │ │ │ │ ├── Kcp02V05AccountStatusHostToJavaTransformer.java │ │ │ │ │ ├── Kcp02V05AccountStatusJavaToHostTransformer.java │ │ │ │ │ ├── Kcp02V05AccountStatusTransformers.java │ │ │ │ │ └── Kcp02V05DormancyBinding.java │ │ │ │ └── package-info.java │ │ │ └── bean9 │ │ │ │ ├── Kcp05V10Profile1Dgts.java │ │ │ │ ├── Kcp05V10Profile2Nd7Dgts.java │ │ │ │ ├── Kcp05V10Profile3Dgts.java │ │ │ │ ├── Kcp05V10Profile3Rd7Dgts.java │ │ │ │ ├── Kcp05V10Profile5Dgts.java │ │ │ │ ├── Kcp05V10Profile7Dgts.java │ │ │ │ ├── Kcp05V10ProfileMarkers.java │ │ │ │ ├── ObjectFactory.java │ │ │ │ ├── bind │ │ │ │ ├── Kcp05V10Profile1DgtsBinding.java │ │ │ │ ├── Kcp05V10Profile2Nd7DgtsBinding.java │ │ │ │ ├── Kcp05V10Profile3DgtsBinding.java │ │ │ │ ├── Kcp05V10Profile3Rd7DgtsBinding.java │ │ │ │ ├── Kcp05V10Profile5DgtsBinding.java │ │ │ │ ├── Kcp05V10Profile7DgtsBinding.java │ │ │ │ ├── Kcp05V10ProfileMarkersBinding.java │ │ │ │ ├── Kcp05V10ProfileMarkersHostToJavaTransformer.java │ │ │ │ ├── Kcp05V10ProfileMarkersJavaToHostTransformer.java │ │ │ │ └── Kcp05V10ProfileMarkersTransformers.java │ │ │ │ └── package-info.java │ │ │ ├── fields │ │ │ ├── Field1.java │ │ │ ├── Field10.java │ │ │ ├── Field11.java │ │ │ ├── Field12.java │ │ │ ├── Field13.java │ │ │ ├── Field14.java │ │ │ ├── Field15.java │ │ │ ├── Field16.java │ │ │ ├── Field17.java │ │ │ ├── Field18.java │ │ │ ├── Field19.java │ │ │ ├── Field2.java │ │ │ ├── Field20.java │ │ │ ├── Field21.java │ │ │ ├── Field3.java │ │ │ ├── Field4.java │ │ │ ├── Field5.java │ │ │ ├── Field6.java │ │ │ ├── Field7.java │ │ │ ├── Field8.java │ │ │ └── Field9.java │ │ │ ├── scheme │ │ │ ├── CopybookConfig.java │ │ │ ├── CopybookScheme.java │ │ │ └── CopybookSourceContext.java │ │ │ ├── transform │ │ │ ├── LegStarUtils.java │ │ │ ├── TupleEntryCobolTransformer.java │ │ │ └── TupleEntryCobolUnmarshalVisitor.java │ │ │ └── translate │ │ │ ├── Cob2Fields.java │ │ │ ├── Cob2FieldsException.java │ │ │ ├── Cob2FieldsGenerator.java │ │ │ ├── Cob2FieldsMain.java │ │ │ ├── Cob2FieldsNames.java │ │ │ ├── Cob2FieldsProcessor.java │ │ │ └── Cob2FieldsVisitor.java │ └── resources │ │ ├── cascading │ │ └── legstar │ │ │ └── cobolcopybook │ │ │ └── translate │ │ │ └── fields.java.template │ │ ├── cob2trans.properties │ │ └── log4j.properties │ └── templates │ └── document.html.erb ├── cascading-hive ├── build.gradle ├── part1 │ ├── LICENSE.txt │ ├── build.gradle │ └── src │ │ └── main │ │ └── java │ │ └── hivedemo │ │ └── Main.java ├── part2 │ ├── LICENSE.txt │ ├── build.gradle │ └── src │ │ └── main │ │ └── java │ │ └── hivedemo │ │ └── Main.java ├── part3 │ ├── LICENSE.txt │ ├── build.gradle │ └── src │ │ └── main │ │ └── java │ │ └── hivedemo │ │ └── Main.java ├── settings.gradle └── src │ └── asciidoc │ ├── images │ ├── part1.png │ ├── part2.png │ └── part3.png │ ├── index.adoc │ ├── part1.adoc │ ├── part2.adoc │ ├── part3.adoc │ └── prerequisites.adoc ├── cascading-mr ├── build.gradle ├── data │ └── wc.dat └── src │ ├── asciidoc │ └── index.adoc │ └── main │ └── java │ └── mr │ └── WordCount.java ├── cascading-sqoop-example ├── build.gradle ├── part1 │ ├── LICENSE.txt │ ├── build.gradle │ ├── data │ │ └── hello.txt │ └── src │ │ └── main │ │ └── java │ │ └── example │ │ └── sqoop │ │ ├── Main.java │ │ ├── SqoopJobRunner.java │ │ └── SqoopRiffle.java ├── settings.gradle └── src │ └── asciidoc │ ├── images │ ├── 001.png │ ├── 002.png │ ├── 003.png │ ├── 004.png │ ├── 005.png │ ├── 006.png │ ├── 007.png │ ├── 008.png │ └── 009.png │ └── index.adoc ├── cascading-teradata ├── build.gradle ├── data │ └── sampledata.csv └── src │ ├── asciidoc │ └── index.adoc │ └── main │ ├── java │ └── teradata │ │ └── SampleFlow.java │ └── resources │ └── cascading │ └── bind │ └── provider.properties ├── etc ├── properties.gradle ├── s3Upload.gradle └── synchronizer.properties ├── etl-log ├── README.md ├── build.gradle ├── part1 │ ├── build.gradle │ └── src │ │ └── main │ │ └── java │ │ └── etl │ │ └── Main.java ├── part2 │ ├── build.gradle │ └── src │ │ └── main │ │ └── java │ │ └── etl │ │ └── Main.java ├── part3 │ ├── build.gradle │ └── src │ │ └── main │ │ └── java │ │ └── etl │ │ └── Main.java ├── part4 │ ├── build.gradle │ └── src │ │ └── main │ │ └── java │ │ └── etl │ │ └── Main.java ├── part5 │ ├── build.gradle │ └── src │ │ └── main │ │ └── java │ │ └── etl │ │ └── Main.java ├── part6 │ ├── README │ ├── build.gradle │ └── src │ │ └── main │ │ └── java │ │ └── etl │ │ └── Main.java ├── settings.gradle └── src │ └── asciidoc │ ├── etl.adoc │ ├── images │ ├── driven-part2.png │ ├── driven-part4-b.png │ ├── driven1.png │ ├── etl-part-1.png │ ├── etl-part-2.png │ ├── etl-part-3.png │ ├── etl-part-4.png │ ├── etl-part-4b.png │ ├── etl-part-5.png │ └── etl-part-6.png │ ├── index.adoc │ ├── part1.adoc │ ├── part2.adoc │ ├── part3.adoc │ ├── part4.adoc │ ├── part5.adoc │ ├── part6.adoc │ └── prerequisites.adoc ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── lingual-hbase ├── build.gradle └── src │ └── asciidoc │ └── index.adoc ├── lingual-oracle ├── build.gradle └── src │ ├── asciidoc │ └── index.adoc │ └── site │ └── images │ └── HR_Schema.png ├── pattern ├── build.gradle └── src │ └── asciidoc │ ├── images │ ├── enterprise.png │ ├── github.png │ └── r-studio.png │ └── index.adoc ├── scalding-data-processing ├── README.md ├── build.gradle ├── part1 │ ├── build.gradle │ └── src │ │ └── main │ │ └── scala │ │ └── etl │ │ └── Main.scala ├── part2 │ ├── build.gradle │ └── src │ │ └── main │ │ └── scala │ │ └── etl │ │ └── Main.scala ├── part3 │ ├── build.gradle │ └── src │ │ └── main │ │ └── scala │ │ └── etl │ │ └── Main.scala ├── part4 │ ├── build.gradle │ └── src │ │ └── main │ │ └── scala │ │ └── etl │ │ └── Main.scala ├── part5 │ ├── build.gradle │ └── src │ │ └── main │ │ └── scala │ │ └── etl │ │ └── Main.scala ├── settings.gradle └── src │ └── asciidoc │ ├── images │ ├── part1.png │ ├── part2.png │ ├── part3.png │ ├── part4.png │ └── part5.png │ ├── index.adoc │ ├── part1.adoc │ ├── part2.adoc │ ├── part3.adoc │ ├── part4.adoc │ ├── part5.adoc │ └── prerequisites.adoc ├── settings.gradle └── src ├── site └── stylesheets │ └── cascading.css └── templates └── document.html.erb /.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | build 3 | .sw[a-z] 4 | junitvm*.properties 5 | build.properties 6 | gradle.properties 7 | .DS_Store 8 | lib 9 | dist 10 | out 11 | javadoc 12 | *.tmproj 13 | .idea 14 | *.iml 15 | *.iws 16 | *.ipr 17 | .gradle 18 | *.tgz 19 | -------------------------------------------------------------------------------- /cascading-aws/build.gradle: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007-2015 Concurrent, Inc. All Rights Reserved. 3 | * 4 | * Project and contact information: http://www.cascading.org/ 5 | * 6 | * This file is part of the Cascading project. 7 | * 8 | * Licensed under the Apache License, Version 2.0 (the "License"); 9 | * you may not use this file except in compliance with the License. 10 | * You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, software 15 | * distributed under the License is distributed on an "AS IS" BASIS, 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | * See the License for the specific language governing permissions and 18 | * limitations under the License. 19 | */ 20 | 21 | apply plugin: 'java' 22 | apply plugin: 'idea' 23 | apply plugin: 'eclipse' 24 | apply plugin: 'provided-base' 25 | 26 | buildscript { 27 | repositories { 28 | jcenter() 29 | mavenCentral() 30 | maven { url 'http://conjars.org/repo/' } 31 | maven { url 'http://repo.spring.io/plugins-release' } 32 | } 33 | 34 | dependencies { 35 | classpath 'com.netflix.nebula:gradle-extra-configurations-plugin:2.2.1' 36 | } 37 | } 38 | 39 | archivesBaseName = 'cascading-aws-tutorials' 40 | 41 | repositories { 42 | mavenCentral() 43 | maven { url 'http://conjars.org/repo/' } 44 | } 45 | 46 | jar { 47 | description = "Assembles a Hadoop ready jar file" 48 | doFirst { 49 | into( 'lib' ) { 50 | from { configurations.compile.minus( [configurations.provided] ) } 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /cascading-aws/part2/src/scripts/emrExample.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -ex 2 | 3 | REDSHIFT_URL=$1 4 | REDSHIFT_USER=$2 5 | REDSHIFT_PASSWORD=$3 6 | BUCKET=$4 7 | AWS_ACCESS_KEY=$5 8 | AWS_SECRET_KEY=$6 9 | 10 | # application jar name 11 | NAME=cascading-aws-tutorials.jar 12 | 13 | # application jar path 14 | BUILD=part2/build/libs 15 | 16 | # clean and build part 2 application 17 | gradle :part2:clean :part2:jar 18 | 19 | # create the bucket or delete the contents if it exists 20 | aws s3 mb s3://$BUCKET || aws s3 rm s3://$BUCKET --recursive 21 | 22 | # create tmp bucket or delete the contents if it exists 23 | aws s3 mb s3://$BUCKET/tmp || aws s3 rm s3://$BUCKET/tmp --recursive 24 | 25 | # push required data files to S3 26 | aws s3 cp cascading-aws-data/date_dim.dat s3://$BUCKET/ 27 | aws s3 cp cascading-aws-data/store_sales.dat s3://$BUCKET/ 28 | aws s3 cp cascading-aws-data/item.dat s3://$BUCKET/ 29 | 30 | # push built jar file to S3 31 | aws s3 cp $BUILD/$NAME s3://$BUCKET/$NAME 32 | 33 | # EMR instance type and count 34 | INSTANCE_TYPE="m1.xlarge" 35 | INSTANCE_COUNT="3" 36 | 37 | # lingual bootstrap url 38 | INSTALL_SDK_URL="s3://files.cascading.org/sdk/2.6/install-cascading-sdk.sh" 39 | 40 | aws emr create-cluster \ 41 | --ami-version 3.3.1 \ 42 | --instance-type $INSTANCE_TYPE \ 43 | --instance-count $INSTANCE_COUNT \ 44 | --bootstrap-actions Path=$INSTALL_SDK_URL,Name=SDK_LINGUAL_BOOTSTRAP \ 45 | --name "cascading-aws-tutorial-2" \ 46 | --visible-to-all-users \ 47 | --enable-debugging \ 48 | --auto-terminate \ 49 | --no-termination-protected \ 50 | --log-uri s3n://$BUCKET/logs/ \ 51 | --steps Type=CUSTOM_JAR,Name=Part2,ActionOnFailure=TERMINATE_CLUSTER,Jar=s3n://$BUCKET/$NAME,Args=$REDSHIFT_URL,$REDSHIFT_USER,$REDSHIFT_PASSWORD,$AWS_ACCESS_KEY,$AWS_SECRET_KEY,$BUCKET 52 | -------------------------------------------------------------------------------- /cascading-aws/part3/src/scripts/emrExample.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -ex 2 | 3 | REDSHIFT_URL=$1 4 | REDSHIFT_USER=$2 5 | REDSHIFT_PASSWORD=$3 6 | BUCKET=$4 7 | AWS_ACCESS_KEY=$5 8 | AWS_SECRET_KEY=$6 9 | 10 | NAME=cascading-aws-tutorials.jar 11 | BUILD=part3/build/libs 12 | 13 | # Uncomment to use Driven 14 | #DRIVEN_API_KEY=[YOUR DRIVEN API KEY] 15 | #DRIVEN_VERSION="1.2" 16 | #INSTALL_PLUGIN_URL="s3://wip.concurrentinc.com/driven/${DRIVEN_VERSION}/driven-plugin/install-driven-plugin.sh" 17 | #DRIVEN_SERVER_HOSTS="https://trial.driven.io" 18 | 19 | # clean and build part 3 application 20 | gradle :part3:clean :part3:jar 21 | 22 | # create the bucket or delete the contents if it exists 23 | aws s3 mb s3://$BUCKET || aws s3 rm s3://$BUCKET --recursive 24 | 25 | # push required data files to S3 26 | aws s3 cp cascading-aws-data/date_dim.dat s3://$BUCKET/cascading-aws-data/ 27 | aws s3 cp cascading-aws-data/store_sales.dat s3://$BUCKET/cascading-aws-data/ 28 | aws s3 cp cascading-aws-data/item.dat s3://$BUCKET/cascading-aws-data/ 29 | aws s3 cp cascading-aws-data/store.dat s3://$BUCKET/cascading-aws-data/ 30 | aws s3 cp cascading-aws-data/customer_demographics.dat s3://$BUCKET/cascading-aws-data/ 31 | 32 | # push built jar file to S3 33 | aws s3 cp $BUILD/$NAME s3://$BUCKET/$NAME 34 | 35 | # EMR instance type and count 36 | INSTANCE_TYPE="m1.xlarge" 37 | INSTANCE_COUNT="3" 38 | 39 | # uncomment and add the following to elastic-mapreduce call below if using driven 40 | # --bootstrap-actions Path=$INSTALL_PLUGIN_URL,Name=DRIVEN_BOOTSTRAP,Args="--host,${DRIVEN_SERVER_HOSTS}","--api-key,${DRIVEN_API_KEY}" \ 41 | 42 | aws emr create-cluster \ 43 | --ami-version 3.3.1 \ 44 | --instance-type $INSTANCE_TYPE \ 45 | --instance-count $INSTANCE_COUNT \ 46 | --name "cascading-aws-tutorial-3" \ 47 | --visible-to-all-users \ 48 | --enable-debugging \ 49 | --auto-terminate \ 50 | --no-termination-protected \ 51 | --log-uri s3n://$BUCKET/logs/ \ 52 | --steps Type=CUSTOM_JAR,Name=Part3,ActionOnFailure=TERMINATE_CLUSTER,Jar=s3n://$BUCKET/$NAME,Args=$REDSHIFT_URL,$REDSHIFT_USER,$REDSHIFT_PASSWORD,$AWS_ACCESS_KEY,$AWS_SECRET_KEY,$BUCKET 53 | -------------------------------------------------------------------------------- /cascading-aws/part4/AwsCredentials.properties: -------------------------------------------------------------------------------- 1 | # This file required for kinesis-log4j-appender-1.0.0.jar 2 | # in order to push sample data to Kinesis stream 3 | 4 | accessKey= 5 | secretKey= 6 | -------------------------------------------------------------------------------- /cascading-aws/part4/data/hashjoin_sample.csv: -------------------------------------------------------------------------------- 1 | 194.136.230.131 2 | sitec06.crpht.lu 3 | www-relay.pa-x.dec.com 4 | pc101b.epg.phys.tue.nl 5 | pc101b.epg.phys.tue.nl 6 | 194.136.230.131 7 | kepler.mss.co.jp 8 | wwwproxy.ac.il 9 | inselmac1.unibe.ch 10 | chemfcb.leidenuniv.nl 11 | qe1.ymd.ornl.gov 12 | f8igw1.jer.intel.com -------------------------------------------------------------------------------- /cascading-aws/part4/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'CascadingKinesis' 2 | 3 | -------------------------------------------------------------------------------- /cascading-aws/part4/src/main/resources/configuration.properties: -------------------------------------------------------------------------------- 1 | # DISCLAIMER: In the interest of simplicity for this tutorial we will be 2 | # setting our AccessKey and SecretKey values manually. However, it is 3 | # highly recommended that all systems take advantage of the identity 4 | # and access management afforded by AWS IAM. 5 | 6 | USER_AWS_ACCESS_KEY= 7 | USER_AWS_SECRET_KEY= 8 | 9 | # please replace “jdbc:redshift://” with “jdbc:postgresql://" in connection url 10 | REDSHIFT_JDBC_URL= 11 | # if you used setup-script.sh to create Redshift cluster 12 | REDSHIFT_USER_NAME= 13 | # if you used setup-script.sh to create Redshift cluster 14 | REDSHIFT_PASSWORD= -------------------------------------------------------------------------------- /cascading-aws/settings.gradle: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007-2015 Concurrent, Inc. All Rights Reserved. 3 | * 4 | * Project and contact information: http://www.cascading.org/ 5 | * 6 | * This file is part of the Cascading project. 7 | * 8 | * Licensed under the Apache License, Version 2.0 (the "License"); 9 | * you may not use this file except in compliance with the License. 10 | * You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, software 15 | * distributed under the License is distributed on an "AS IS" BASIS, 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | * See the License for the specific language governing permissions and 18 | * limitations under the License. 19 | */ 20 | 21 | //include 'part1' 22 | include 'part2' 23 | include 'part3' 24 | include 'cascading-aws-docs' 25 | 26 | rootProject.name = 'cascading-aws' 27 | -------------------------------------------------------------------------------- /cascading-aws/src/asciidoc/images/part_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/cascading-aws/src/asciidoc/images/part_1.png -------------------------------------------------------------------------------- /cascading-aws/src/asciidoc/images/part_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/cascading-aws/src/asciidoc/images/part_2.png -------------------------------------------------------------------------------- /cascading-aws/src/asciidoc/images/part_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/cascading-aws/src/asciidoc/images/part_3.png -------------------------------------------------------------------------------- /cascading-copybook/LICENSE.txt: -------------------------------------------------------------------------------- 1 | 2 | License: 3 | 4 | Copyright (c) 2007-2015 Concurrent, Inc. All Rights Reserved. 5 | 6 | Project and contact information: http://www.cascading.org/ 7 | 8 | This file is part of the Cascading project. 9 | 10 | Licensed under the Apache License, Version 2.0 (the "License"); 11 | you may not use this file except in compliance with the License. 12 | You may obtain a copy of the License at 13 | 14 | http://www.apache.org/licenses/LICENSE-2.0 15 | 16 | Unless required by applicable law or agreed to in writing, software 17 | distributed under the License is distributed on an "AS IS" BASIS, 18 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | See the License for the specific language governing permissions and 20 | limitations under the License. 21 | 22 | Third-party Licenses: 23 | 24 | All third-party dependencies are listed in the build.gradle files. 25 | -------------------------------------------------------------------------------- /cascading-copybook/data/ZOS.FCUSTDAT.RDW.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/cascading-copybook/data/ZOS.FCUSTDAT.RDW.bin -------------------------------------------------------------------------------- /cascading-copybook/data/sample.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/cascading-copybook/data/sample.dat -------------------------------------------------------------------------------- /cascading-copybook/src/asciidoc/images/architecture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/cascading-copybook/src/asciidoc/images/architecture.png -------------------------------------------------------------------------------- /cascading-copybook/src/asciidoc/images/driven.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/cascading-copybook/src/asciidoc/images/driven.png -------------------------------------------------------------------------------- /cascading-copybook/src/asciidoc/images/record-layout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/cascading-copybook/src/asciidoc/images/record-layout.png -------------------------------------------------------------------------------- /cascading-copybook/src/main/cobol/custdat.cpy: -------------------------------------------------------------------------------- 1 | 01 CUSTOMER-DATA. 2 | 05 CUSTOMER-ID PIC 9(6). 3 | 05 PERSONAL-DATA. 4 | 10 CUSTOMER-NAME PIC X(20). 5 | 10 CUSTOMER-ADDRESS PIC X(20). 6 | 10 CUSTOMER-PHONE PIC X(8). 7 | 05 TRANSACTIONS. 8 | 10 TRANSACTION-NBR PIC 9(9) COMP. 9 | 10 TRANSACTION OCCURS 0 TO 5 10 | DEPENDING ON TRANSACTION-NBR. 11 | 15 TRANSACTION-DATE. 12 | 20 TRANSACTION-DAY PIC X(2). 13 | 20 FILLER PIC X. 14 | 20 TRANSACTION-MONTH PIC X(2). 15 | 20 FILLER PIC X. 16 | 20 TRANSACTION-YEAR PIC X(2). 17 | 15 TRANSACTION-AMOUNT PIC S9(13)V99 COMP-3. 18 | 15 TRANSACTION-COMMENT PIC X(9). -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/hadoop/legstar/cobol/beans/custdat/bind/CustomerDataHostToJavaTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.hadoop.legstar.cobol.beans.custdat.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractHostToJavaTransformer; 7 | 8 | /** 9 | * Transforms mainframe data to a CustomerData data object. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  CustomerDataHostToJavaTransformer transformer = new CustomerDataHostToJavaTransformer();
14 |  *  CustomerData javaValue = (CustomerData) transformer.transform(hostByteArray);
15 |  * 
16 | */ 17 | public class CustomerDataHostToJavaTransformer extends AbstractHostToJavaTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Host to Java transformer using default COBOL parameters. 23 | */ 24 | public CustomerDataHostToJavaTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Host to Java transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public CustomerDataHostToJavaTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Host to Java transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public CustomerDataHostToJavaTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws com.legstar.coxb.CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new CustomerDataBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/hadoop/legstar/cobol/beans/custdat/bind/CustomerDataJavaToHostTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.hadoop.legstar.cobol.beans.custdat.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractJavaToHostTransformer; 7 | 8 | /** 9 | * Transforms a CustomerData data object to mainframe data. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  CustomerDataJavaToHostTransformer transformer = new CustomerDataJavaToHostTransformer();
14 |  *  byte[] hostByteArray = transformer.transform(javaValue);
15 |  * 
16 | */ 17 | public class CustomerDataJavaToHostTransformer extends AbstractJavaToHostTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Java to Host transformer using default COBOL parameters. 23 | */ 24 | public CustomerDataJavaToHostTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Java to Host transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public CustomerDataJavaToHostTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Java to Host transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public CustomerDataJavaToHostTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws com.legstar.coxb.CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new CustomerDataBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/hadoop/legstar/cobol/beans/custdat/package-info.java: -------------------------------------------------------------------------------- 1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://beans.cobol.legstar.cascading/custdat", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package cascading.hadoop.legstar.cobol.beans.custdat; 2 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/hadoop/legstar/cobol/fields/Custdat.java: -------------------------------------------------------------------------------- 1 | package cascading.hadoop.legstar.cobol.fields; 2 | 3 | import java.lang.reflect.Type; 4 | 5 | import cascading.tuple.Fields; 6 | 7 | public class Custdat extends Fields 8 | { 9 | 10 | private static final long serialVersionUID = -1L; 11 | 12 | public Custdat() 13 | { 14 | super( new Comparable[]{"CustomerId", "CustomerName", "CustomerAddress", "CustomerPhone", "TransactionNbr", "TransactionDay_0", "Filler13_0", "TransactionMonth_0", "Filler15_0", "TransactionYear_0", "TransactionAmount_0", "TransactionComment_0", "TransactionDay_1", "Filler13_1", "TransactionMonth_1", "Filler15_1", "TransactionYear_1", "TransactionAmount_1", "TransactionComment_1", "TransactionDay_2", "Filler13_2", "TransactionMonth_2", "Filler15_2", "TransactionYear_2", "TransactionAmount_2", "TransactionComment_2", "TransactionDay_3", "Filler13_3", "TransactionMonth_3", "Filler15_3", "TransactionYear_3", "TransactionAmount_3", "TransactionComment_3", "TransactionDay_4", "Filler13_4", "TransactionMonth_4", "Filler15_4", "TransactionYear_4", "TransactionAmount_4", "TransactionComment_4"}, new Type[]{long.class, String.class, String.class, String.class, long.class, String.class, String.class, String.class, String.class, String.class, java.math.BigDecimal.class, String.class, String.class, String.class, String.class, String.class, String.class, java.math.BigDecimal.class, String.class, String.class, String.class, String.class, String.class, String.class, java.math.BigDecimal.class, String.class, String.class, String.class, String.class, String.class, String.class, java.math.BigDecimal.class, String.class, String.class, String.class, String.class, String.class, String.class, java.math.BigDecimal.class, String.class} ); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/hadoop/legstar/cobol/hadoop/io/CustdatInputFormat.java: -------------------------------------------------------------------------------- 1 | package cascading.hadoop.legstar.cobol.hadoop.io; 2 | 3 | import java.io.IOException; 4 | 5 | import org.apache.hadoop.io.ArrayPrimitiveWritable; 6 | import org.apache.hadoop.mapred.FileInputFormat; 7 | import org.apache.hadoop.mapred.InputSplit; 8 | import org.apache.hadoop.mapred.JobConf; 9 | import org.apache.hadoop.mapred.RecordReader; 10 | import org.apache.hadoop.mapred.Reporter; 11 | 12 | 13 | public class CustdatInputFormat extends FileInputFormat 14 | { 15 | 16 | public RecordReader getRecordReader( InputSplit split, JobConf jobConf, Reporter reporter ) throws IOException 17 | { 18 | CustdatRecordReader reader = new CustdatRecordReader(); 19 | reader.initialize( split, jobConf ); 20 | return reader; 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/hadoop/legstar/cobol/hadoop/scheme/CustdatScheme.java: -------------------------------------------------------------------------------- 1 | package cascading.hadoop.legstar.cobol.hadoop.scheme; 2 | 3 | import cascading.flow.FlowProcess; 4 | import cascading.hadoop.legstar.cobol.beans.custdat.CustomerData; 5 | import cascading.hadoop.legstar.cobol.fields.Custdat; 6 | import cascading.hadoop.legstar.cobol.hadoop.io.CustdatInputFormat; 7 | import cascading.tap.Tap; 8 | import org.apache.hadoop.io.ArrayPrimitiveWritable; 9 | import org.apache.hadoop.mapred.JobConf; 10 | import org.apache.hadoop.mapred.OutputCollector; 11 | import org.apache.hadoop.mapred.RecordReader; 12 | 13 | /** 14 | * Reads the customer data mainframe file. 15 | *

16 | * Scheme produces a set of Fields corresponding to the flattened CUSTOMER-DATA 17 | * cobol structure. 18 | */ 19 | public class CustdatScheme extends RdwScheme 20 | { 21 | 22 | private static final long serialVersionUID = 3613340688808506614L; 23 | 24 | /** 25 | * Scheme produces a set of Fields corresponding to the flattened 26 | * CUSTOMER-DATA cobol structure. 27 | */ 28 | public CustdatScheme() 29 | { 30 | super( new Custdat(), CustomerData.class ); 31 | } 32 | 33 | @Override 34 | public void sourceConfInit( FlowProcess flowProcess, Tap, OutputCollector> tap, JobConf conf ) 35 | { 36 | conf.setInputFormat( CustdatInputFormat.class ); 37 | } 38 | 39 | } 40 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/hadoop/legstar/cobol/hadoop/scheme/RdwSourceContext.java: -------------------------------------------------------------------------------- 1 | package cascading.hadoop.legstar.cobol.hadoop.scheme; 2 | 3 | import java.io.IOException; 4 | 5 | import cascading.hadoop.legstar.cobol.hadoop.transform.TupleEntryTransformersManager; 6 | import cascading.tuple.TupleEntry; 7 | 8 | /** 9 | * Context for an RDW based Scheme where mainframe records start with 4 bytes 10 | * giving the actual record size. 11 | *

12 | * Allows Transformers and buffers to get reused when a large number of records 13 | * is read. 14 | */ 15 | public class RdwSourceContext 16 | { 17 | 18 | /** 19 | * A helper for cobol to tuple conversions. 20 | */ 21 | private final TupleEntryTransformersManager transformer = new TupleEntryTransformersManager(); 22 | 23 | /** 24 | * Will contain the record actual size. 25 | */ 26 | private final byte[] rdwBuffer = new byte[ 4 ]; 27 | 28 | /** 29 | * Reusable buffer for record reading (length is maximum record size) 30 | */ 31 | private final byte[] dataBuffer; 32 | 33 | /** 34 | * Bean representing the mainframe record. 35 | */ 36 | private final Class beanClass; 37 | 38 | public RdwSourceContext( Class beanClass ) 39 | { 40 | this.beanClass = beanClass; 41 | this.dataBuffer = new byte[ transformer.getByteLength( beanClass ) ]; 42 | } 43 | 44 | public TupleEntryTransformersManager getTransformer() 45 | { 46 | return transformer; 47 | } 48 | 49 | public byte[] getReadBuffer() 50 | { 51 | return dataBuffer; 52 | } 53 | 54 | public byte[] getRdwBuffer() 55 | { 56 | return rdwBuffer; 57 | } 58 | 59 | public void toTupleEntry( TupleEntry incomingEntry ) throws IOException 60 | { 61 | transformer.set( dataBuffer, beanClass, incomingEntry ); 62 | 63 | } 64 | 65 | } 66 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/hadoop/legstar/cobol/hadoop/transform/Cob2FieldsNames.java: -------------------------------------------------------------------------------- 1 | package cascading.hadoop.legstar.cobol.hadoop.transform; 2 | 3 | import java.util.HashSet; 4 | import java.util.Set; 5 | 6 | public class Cob2FieldsNames 7 | { 8 | 9 | /** 10 | * Contextual prefix to uniquely identify a map entry (used for name 11 | * conflict resolution) 12 | */ 13 | private String parentHierarchy = ""; 14 | 15 | /** 16 | * List of unique labels for conflict resolution. 17 | */ 18 | private Set uniqueNames = new HashSet(); 19 | 20 | public String upHierarchy( String name ) 21 | { 22 | String prevPrefix = parentHierarchy; 23 | parentHierarchy = parentHierarchy + "_" + name; 24 | return prevPrefix; 25 | } 26 | 27 | public void setHierarchy( String name ) 28 | { 29 | parentHierarchy = name; 30 | } 31 | 32 | /** 33 | * Creates a unique name based on a proposed name. 34 | *

35 | * The proposed name is as simple as possible but we need to avoid any name 36 | * conflicts (a column must have a unique name) so we check for any conflict 37 | * and use a prefix system to disambiguate names. 38 | *

39 | * It is assumed the same name cannot occur twice at the same hierarchical level. 40 | * 41 | * @param proposedName the proposed name 42 | * @return a unique name for a column 43 | */ 44 | public String getUniqueName( final String proposedName ) 45 | { 46 | 47 | String uniqueName = proposedName; 48 | 49 | if( uniqueNames.contains( proposedName ) ) 50 | { 51 | String[] prefixes = parentHierarchy.split( "_" ); 52 | int pos = prefixes.length - 1; 53 | 54 | while( uniqueNames.contains( uniqueName ) && pos > -1 ) 55 | { 56 | uniqueName = prefixes[ pos ] + '_' + uniqueName; 57 | pos--; 58 | } 59 | } 60 | 61 | uniqueNames.add( uniqueName ); 62 | 63 | return uniqueName; 64 | 65 | } 66 | 67 | } 68 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/hadoop/legstar/cobol/hadoop/transform/RdwUtils.java: -------------------------------------------------------------------------------- 1 | package cascading.hadoop.legstar.cobol.hadoop.transform; 2 | 3 | import java.nio.ByteBuffer; 4 | 5 | public class RdwUtils 6 | { 7 | 8 | public static final int RDW_LEN = 4; 9 | 10 | private RdwUtils() 11 | { 12 | } 13 | 14 | /** 15 | * RDW is a 4 bytes numeric stored in Big Endian as a binary 2's complement. 16 | * 17 | * @param hostData the mainframe data 18 | * @return the integer value of the RDW 19 | */ 20 | public static int getRdw( byte[] hostData ) 21 | { 22 | return getRdw( hostData, 0, hostData.length ); 23 | } 24 | 25 | /** 26 | * RDW is a 4 bytes numeric stored in Big Endian as a binary 2's complement. 27 | * 28 | * @param hostData the mainframe data 29 | * @param start where the RDW starts 30 | * @param length the total size of the mainframe data 31 | * @return the integer value of the RDW 32 | */ 33 | public static int getRdw( byte[] hostData, int start, int length ) 34 | { 35 | if( length - start < RDW_LEN ) 36 | { 37 | throw new IllegalArgumentException( "Not enough bytes for an RDW" ); 38 | } 39 | ByteBuffer buf = ByteBuffer.allocate( RDW_LEN ); 40 | buf.put( 0, hostData[ start + 2 ] ); 41 | buf.put( 1, hostData[ start + 3 ] ); 42 | buf.put( 2, hostData[ start + 0 ] ); 43 | buf.put( 3, hostData[ start + 1 ] ); 44 | return buf.getInt(); 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/app/Main.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.app; 2 | 3 | import java.io.InputStream; 4 | import java.io.OutputStream; 5 | import java.util.Properties; 6 | 7 | import cascading.flow.FlowConnector; 8 | import cascading.flow.FlowDef; 9 | import cascading.flow.local.LocalFlowConnector; 10 | import cascading.legstar.cobolcopybook.scheme.CopybookScheme; 11 | import cascading.operation.DebugLevel; 12 | import cascading.pipe.Pipe; 13 | import cascading.property.AppProps; 14 | import cascading.scheme.local.TextDelimited; 15 | import cascading.tap.SinkTap; 16 | import cascading.tap.Tap; 17 | import cascading.tap.local.FileTap; 18 | import cascading.tap.local.StdOutTap; 19 | import cascading.tuple.Fields; 20 | 21 | /** 22 | * Use the CopybookScheme to read EBCDIC data and print some field values on the screen 23 | */ 24 | public class Main 25 | { 26 | 27 | public static void main( String[] args ) throws Exception 28 | { 29 | if( args.length != 1 ) 30 | { 31 | throw new Exception( "missing input ebcdic data" ); 32 | } 33 | 34 | Properties properties = new Properties(); 35 | AppProps.setApplicationJarClass( properties, Main.class ); 36 | 37 | AppProps.addApplicationTag( properties, "tutorials" ); 38 | AppProps.addApplicationTag( properties, "cluster:development" ); 39 | AppProps.setApplicationName( properties, "Cascading-Copybook Local" ); 40 | 41 | String path = args[ 0 ]; 42 | Tap inTap = new FileTap( new CopybookScheme(), path ); 43 | SinkTap outTap = new StdOutTap( new TextDelimited( new Fields( "BdfoKey", "Kcp01V05Sname", "Kcp01V05BicIndclass", "Kcp02V05TransfFromSortCode", "Kcp07V05BalIdent_0", "Kcp07V05Bal_0", "Kcp07V05BalIdent_1", "Kcp07V05Bal_1" ), true, "," ) ); 44 | Pipe copyPipe = new Pipe( "testPipe" ); 45 | FlowDef flowDef = FlowDef.flowDef().addSource( copyPipe, inTap ).addTailSink( copyPipe, outTap ).setDebugLevel( DebugLevel.VERBOSE ).setName( "Cascading Copybook" ); 46 | 47 | FlowConnector flowConnector = new LocalFlowConnector(); 48 | flowConnector.connect( flowDef ).complete(); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean1/ObjectFactory.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean1; 2 | 3 | import javax.xml.bind.JAXBElement; 4 | import javax.xml.bind.annotation.XmlElementDecl; 5 | import javax.xml.bind.annotation.XmlRegistry; 6 | import javax.xml.namespace.QName; 7 | 8 | 9 | /** 10 | * This object contains factory methods for each 11 | * Java content interface and Java element interface 12 | * generated in the cascading.legstar.cobolcopybook.beans.bean1 package. 13 | *

An ObjectFactory allows you to programatically 14 | * construct new instances of the Java representation 15 | * for XML content. The Java representation of XML 16 | * content can consist of schema derived interfaces 17 | * and classes representing the binding of schema 18 | * type definitions, element declarations and model 19 | * groups. Factory methods for each of these are 20 | * provided in this class. 21 | */ 22 | @XmlRegistry 23 | public class ObjectFactory 24 | { 25 | 26 | private final static QName _BdfoCommonData_QNAME = new QName( "http://beans.cobolcopybook.legstar.cascading/bean1", "bdfoCommonData" ); 27 | 28 | /** 29 | * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: cascading.legstar.cobolcopybook.beans.bean1 30 | */ 31 | public ObjectFactory() 32 | { 33 | } 34 | 35 | /** 36 | * Create an instance of {@link BdfoCommonData } 37 | */ 38 | public BdfoCommonData createBdfoCommonData() 39 | { 40 | return new BdfoCommonData(); 41 | } 42 | 43 | /** 44 | * Create an instance of {@link JAXBElement }{@code <}{@link BdfoCommonData }{@code >}} 45 | */ 46 | @XmlElementDecl(namespace = "http://beans.cobolcopybook.legstar.cascading/bean1", name = "bdfoCommonData") 47 | public JAXBElement createBdfoCommonData( BdfoCommonData value ) 48 | { 49 | return new JAXBElement( _BdfoCommonData_QNAME, BdfoCommonData.class, null, value ); 50 | } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean1/bind/BdfoCommonDataHostToJavaTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean1.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractHostToJavaTransformer; 7 | 8 | /** 9 | * Transforms mainframe data to a BdfoCommonData data object. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  BdfoCommonDataHostToJavaTransformer transformer = new BdfoCommonDataHostToJavaTransformer();
14 |  *  BdfoCommonData javaValue = (BdfoCommonData) transformer.transform(hostByteArray);
15 |  * 
16 | */ 17 | public class BdfoCommonDataHostToJavaTransformer extends AbstractHostToJavaTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Host to Java transformer using default COBOL parameters. 23 | */ 24 | public BdfoCommonDataHostToJavaTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Host to Java transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public BdfoCommonDataHostToJavaTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Host to Java transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public BdfoCommonDataHostToJavaTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new BdfoCommonDataBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean1/bind/BdfoCommonDataJavaToHostTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean1.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractJavaToHostTransformer; 7 | 8 | /** 9 | * Transforms a BdfoCommonData data object to mainframe data. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  BdfoCommonDataJavaToHostTransformer transformer = new BdfoCommonDataJavaToHostTransformer();
14 |  *  byte[] hostByteArray = transformer.transform(javaValue);
15 |  * 
16 | */ 17 | public class BdfoCommonDataJavaToHostTransformer extends AbstractJavaToHostTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Java to Host transformer using default COBOL parameters. 23 | */ 24 | public BdfoCommonDataJavaToHostTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Java to Host transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public BdfoCommonDataJavaToHostTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Java to Host transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public BdfoCommonDataJavaToHostTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new BdfoCommonDataBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean1/package-info.java: -------------------------------------------------------------------------------- 1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://beans.cobolcopybook.legstar.cascading/bean1", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package cascading.legstar.cobolcopybook.beans.bean1; 2 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean10/bind/Kcp07V05BalDetailsHostToJavaTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean10.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractHostToJavaTransformer; 7 | 8 | /** 9 | * Transforms mainframe data to a Kcp07V05BalDetails data object. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  Kcp07V05BalDetailsHostToJavaTransformer transformer = new Kcp07V05BalDetailsHostToJavaTransformer();
14 |  *  Kcp07V05BalDetails javaValue = (Kcp07V05BalDetails) transformer.transform(hostByteArray);
15 |  * 
16 | */ 17 | public class Kcp07V05BalDetailsHostToJavaTransformer extends AbstractHostToJavaTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Host to Java transformer using default COBOL parameters. 23 | */ 24 | public Kcp07V05BalDetailsHostToJavaTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Host to Java transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public Kcp07V05BalDetailsHostToJavaTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Host to Java transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public Kcp07V05BalDetailsHostToJavaTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new Kcp07V05BalDetailsBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean10/bind/Kcp07V05BalDetailsJavaToHostTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean10.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractJavaToHostTransformer; 7 | 8 | /** 9 | * Transforms a Kcp07V05BalDetails data object to mainframe data. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  Kcp07V05BalDetailsJavaToHostTransformer transformer = new Kcp07V05BalDetailsJavaToHostTransformer();
14 |  *  byte[] hostByteArray = transformer.transform(javaValue);
15 |  * 
16 | */ 17 | public class Kcp07V05BalDetailsJavaToHostTransformer extends AbstractJavaToHostTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Java to Host transformer using default COBOL parameters. 23 | */ 24 | public Kcp07V05BalDetailsJavaToHostTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Java to Host transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public Kcp07V05BalDetailsJavaToHostTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Java to Host transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public Kcp07V05BalDetailsJavaToHostTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new Kcp07V05BalDetailsBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean10/package-info.java: -------------------------------------------------------------------------------- 1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://beans.cobolcopybook.legstar.cascading/bean10", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package cascading.legstar.cobolcopybook.beans.bean10; 2 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean11/Kcp08V05AuthLimits.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean11; 2 | 3 | import java.io.Serializable; 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlElement; 7 | import javax.xml.bind.annotation.XmlType; 8 | 9 | import com.legstar.coxb.CobolElement; 10 | import com.legstar.coxb.CobolType; 11 | 12 | 13 | /** 14 | *

Java class for Kcp08V05AuthLimits complex type. 15 | *

16 | *

The following schema fragment specifies the expected content contained within this class. 17 | *

18 | *

19 |  * <complexType name="Kcp08V05AuthLimits">
20 |  *   <complexContent>
21 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
22 |  *       <sequence>
23 |  *         <element name="kcp08V05AuthLimitData" type="{http://beans.cobolcopybook.legstar.cascading/bean11}Kcp08V05AuthLimitData"/>
24 |  *       </sequence>
25 |  *     </restriction>
26 |  *   </complexContent>
27 |  * </complexType>
28 |  * 
29 | */ 30 | @XmlAccessorType(XmlAccessType.FIELD) 31 | @XmlType(name = "Kcp08V05AuthLimits", propOrder = {"kcp08V05AuthLimitData"}) 32 | public class Kcp08V05AuthLimits implements Serializable 33 | { 34 | 35 | private final static long serialVersionUID = 1L; 36 | @XmlElement(required = true) 37 | @CobolElement(cobolName = "KCP08V05-AUTH-LIMIT-DATA", type = CobolType.GROUP_ITEM, levelNumber = 3, srceLine = 8) 38 | protected Kcp08V05AuthLimitData kcp08V05AuthLimitData; 39 | 40 | /** 41 | * Gets the value of the kcp08V05AuthLimitData property. 42 | * 43 | * @return possible object is 44 | * {@link Kcp08V05AuthLimitData } 45 | */ 46 | public Kcp08V05AuthLimitData getKcp08V05AuthLimitData() 47 | { 48 | return kcp08V05AuthLimitData; 49 | } 50 | 51 | /** 52 | * Sets the value of the kcp08V05AuthLimitData property. 53 | * 54 | * @param value allowed object is 55 | * {@link Kcp08V05AuthLimitData } 56 | */ 57 | public void setKcp08V05AuthLimitData( Kcp08V05AuthLimitData value ) 58 | { 59 | this.kcp08V05AuthLimitData = value; 60 | } 61 | 62 | } 63 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean11/bind/Kcp08V05AuthLimitsHostToJavaTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean11.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractHostToJavaTransformer; 7 | 8 | /** 9 | * Transforms mainframe data to a Kcp08V05AuthLimits data object. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  Kcp08V05AuthLimitsHostToJavaTransformer transformer = new Kcp08V05AuthLimitsHostToJavaTransformer();
14 |  *  Kcp08V05AuthLimits javaValue = (Kcp08V05AuthLimits) transformer.transform(hostByteArray);
15 |  * 
16 | */ 17 | public class Kcp08V05AuthLimitsHostToJavaTransformer extends AbstractHostToJavaTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Host to Java transformer using default COBOL parameters. 23 | */ 24 | public Kcp08V05AuthLimitsHostToJavaTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Host to Java transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public Kcp08V05AuthLimitsHostToJavaTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Host to Java transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public Kcp08V05AuthLimitsHostToJavaTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new Kcp08V05AuthLimitsBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean11/bind/Kcp08V05AuthLimitsJavaToHostTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean11.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractJavaToHostTransformer; 7 | 8 | /** 9 | * Transforms a Kcp08V05AuthLimits data object to mainframe data. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  Kcp08V05AuthLimitsJavaToHostTransformer transformer = new Kcp08V05AuthLimitsJavaToHostTransformer();
14 |  *  byte[] hostByteArray = transformer.transform(javaValue);
15 |  * 
16 | */ 17 | public class Kcp08V05AuthLimitsJavaToHostTransformer extends AbstractJavaToHostTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Java to Host transformer using default COBOL parameters. 23 | */ 24 | public Kcp08V05AuthLimitsJavaToHostTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Java to Host transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public Kcp08V05AuthLimitsJavaToHostTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Java to Host transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public Kcp08V05AuthLimitsJavaToHostTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new Kcp08V05AuthLimitsBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean11/package-info.java: -------------------------------------------------------------------------------- 1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://beans.cobolcopybook.legstar.cascading/bean11", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package cascading.legstar.cobolcopybook.beans.bean11; 2 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean12/Kcp09V05OtherLimits.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean12; 2 | 3 | import java.io.Serializable; 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlElement; 7 | import javax.xml.bind.annotation.XmlType; 8 | 9 | import com.legstar.coxb.CobolElement; 10 | import com.legstar.coxb.CobolType; 11 | 12 | 13 | /** 14 | *

Java class for Kcp09V05OtherLimits complex type. 15 | *

16 | *

The following schema fragment specifies the expected content contained within this class. 17 | *

18 | *

19 |  * <complexType name="Kcp09V05OtherLimits">
20 |  *   <complexContent>
21 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
22 |  *       <sequence>
23 |  *         <element name="kcp09V05OtherLimitsData" type="{http://beans.cobolcopybook.legstar.cascading/bean12}Kcp09V05OtherLimitsData"/>
24 |  *       </sequence>
25 |  *     </restriction>
26 |  *   </complexContent>
27 |  * </complexType>
28 |  * 
29 | */ 30 | @XmlAccessorType(XmlAccessType.FIELD) 31 | @XmlType(name = "Kcp09V05OtherLimits", propOrder = {"kcp09V05OtherLimitsData"}) 32 | public class Kcp09V05OtherLimits implements Serializable 33 | { 34 | 35 | private final static long serialVersionUID = 1L; 36 | @XmlElement(required = true) 37 | @CobolElement(cobolName = "KCP09V05-OTHER-LIMITS-DATA", type = CobolType.GROUP_ITEM, levelNumber = 3, srceLine = 8) 38 | protected Kcp09V05OtherLimitsData kcp09V05OtherLimitsData; 39 | 40 | /** 41 | * Gets the value of the kcp09V05OtherLimitsData property. 42 | * 43 | * @return possible object is 44 | * {@link Kcp09V05OtherLimitsData } 45 | */ 46 | public Kcp09V05OtherLimitsData getKcp09V05OtherLimitsData() 47 | { 48 | return kcp09V05OtherLimitsData; 49 | } 50 | 51 | /** 52 | * Sets the value of the kcp09V05OtherLimitsData property. 53 | * 54 | * @param value allowed object is 55 | * {@link Kcp09V05OtherLimitsData } 56 | */ 57 | public void setKcp09V05OtherLimitsData( Kcp09V05OtherLimitsData value ) 58 | { 59 | this.kcp09V05OtherLimitsData = value; 60 | } 61 | 62 | } 63 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean12/bind/Kcp09V05OtherLimitsHostToJavaTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean12.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractHostToJavaTransformer; 7 | 8 | /** 9 | * Transforms mainframe data to a Kcp09V05OtherLimits data object. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  Kcp09V05OtherLimitsHostToJavaTransformer transformer = new Kcp09V05OtherLimitsHostToJavaTransformer();
14 |  *  Kcp09V05OtherLimits javaValue = (Kcp09V05OtherLimits) transformer.transform(hostByteArray);
15 |  * 
16 | */ 17 | public class Kcp09V05OtherLimitsHostToJavaTransformer extends AbstractHostToJavaTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Host to Java transformer using default COBOL parameters. 23 | */ 24 | public Kcp09V05OtherLimitsHostToJavaTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Host to Java transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public Kcp09V05OtherLimitsHostToJavaTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Host to Java transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public Kcp09V05OtherLimitsHostToJavaTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new Kcp09V05OtherLimitsBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean12/bind/Kcp09V05OtherLimitsJavaToHostTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean12.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractJavaToHostTransformer; 7 | 8 | /** 9 | * Transforms a Kcp09V05OtherLimits data object to mainframe data. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  Kcp09V05OtherLimitsJavaToHostTransformer transformer = new Kcp09V05OtherLimitsJavaToHostTransformer();
14 |  *  byte[] hostByteArray = transformer.transform(javaValue);
15 |  * 
16 | */ 17 | public class Kcp09V05OtherLimitsJavaToHostTransformer extends AbstractJavaToHostTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Java to Host transformer using default COBOL parameters. 23 | */ 24 | public Kcp09V05OtherLimitsJavaToHostTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Java to Host transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public Kcp09V05OtherLimitsJavaToHostTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Java to Host transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public Kcp09V05OtherLimitsJavaToHostTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new Kcp09V05OtherLimitsBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean12/package-info.java: -------------------------------------------------------------------------------- 1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://beans.cobolcopybook.legstar.cascading/bean12", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package cascading.legstar.cobolcopybook.beans.bean12; 2 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean13/bind/Kcp13V05NotifDiaryFormatHostToJavaTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean13.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractHostToJavaTransformer; 7 | 8 | /** 9 | * Transforms mainframe data to a Kcp13V05NotifDiaryFormat data object. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  Kcp13V05NotifDiaryFormatHostToJavaTransformer transformer = new Kcp13V05NotifDiaryFormatHostToJavaTransformer();
14 |  *  Kcp13V05NotifDiaryFormat javaValue = (Kcp13V05NotifDiaryFormat) transformer.transform(hostByteArray);
15 |  * 
16 | */ 17 | public class Kcp13V05NotifDiaryFormatHostToJavaTransformer extends AbstractHostToJavaTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Host to Java transformer using default COBOL parameters. 23 | */ 24 | public Kcp13V05NotifDiaryFormatHostToJavaTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Host to Java transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public Kcp13V05NotifDiaryFormatHostToJavaTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Host to Java transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public Kcp13V05NotifDiaryFormatHostToJavaTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new Kcp13V05NotifDiaryFormatBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean13/bind/Kcp13V05NotifDiaryFormatJavaToHostTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean13.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractJavaToHostTransformer; 7 | 8 | /** 9 | * Transforms a Kcp13V05NotifDiaryFormat data object to mainframe data. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  Kcp13V05NotifDiaryFormatJavaToHostTransformer transformer = new Kcp13V05NotifDiaryFormatJavaToHostTransformer();
14 |  *  byte[] hostByteArray = transformer.transform(javaValue);
15 |  * 
16 | */ 17 | public class Kcp13V05NotifDiaryFormatJavaToHostTransformer extends AbstractJavaToHostTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Java to Host transformer using default COBOL parameters. 23 | */ 24 | public Kcp13V05NotifDiaryFormatJavaToHostTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Java to Host transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public Kcp13V05NotifDiaryFormatJavaToHostTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Java to Host transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public Kcp13V05NotifDiaryFormatJavaToHostTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new Kcp13V05NotifDiaryFormatBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean13/package-info.java: -------------------------------------------------------------------------------- 1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://beans.cobolcopybook.legstar.cascading/bean13", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package cascading.legstar.cobolcopybook.beans.bean13; 2 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean14/bind/Kcp16V05ProdAgreeStmtHistJavaToHostTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean14.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractJavaToHostTransformer; 7 | 8 | /** 9 | * Transforms a Kcp16V05ProdAgreeStmtHist data object to mainframe data. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  Kcp16V05ProdAgreeStmtHistJavaToHostTransformer transformer = new Kcp16V05ProdAgreeStmtHistJavaToHostTransformer();
14 |  *  byte[] hostByteArray = transformer.transform(javaValue);
15 |  * 
16 | */ 17 | public class Kcp16V05ProdAgreeStmtHistJavaToHostTransformer extends AbstractJavaToHostTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Java to Host transformer using default COBOL parameters. 23 | */ 24 | public Kcp16V05ProdAgreeStmtHistJavaToHostTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Java to Host transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public Kcp16V05ProdAgreeStmtHistJavaToHostTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Java to Host transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public Kcp16V05ProdAgreeStmtHistJavaToHostTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new Kcp16V05ProdAgreeStmtHistBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean14/package-info.java: -------------------------------------------------------------------------------- 1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://beans.cobolcopybook.legstar.cascading/bean14", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package cascading.legstar.cobolcopybook.beans.bean14; 2 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean15/Kcp17V05AccAddresses.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean15; 2 | 3 | import java.io.Serializable; 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlElement; 7 | import javax.xml.bind.annotation.XmlType; 8 | 9 | import com.legstar.coxb.CobolElement; 10 | import com.legstar.coxb.CobolType; 11 | 12 | 13 | /** 14 | *

Java class for Kcp17V05AccAddresses complex type. 15 | *

16 | *

The following schema fragment specifies the expected content contained within this class. 17 | *

18 | *

19 |  * <complexType name="Kcp17V05AccAddresses">
20 |  *   <complexContent>
21 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
22 |  *       <sequence>
23 |  *         <element name="kcp17V05AddressData" type="{http://beans.cobolcopybook.legstar.cascading/bean15}Kcp17V05AddressData"/>
24 |  *       </sequence>
25 |  *     </restriction>
26 |  *   </complexContent>
27 |  * </complexType>
28 |  * 
29 | */ 30 | @XmlAccessorType(XmlAccessType.FIELD) 31 | @XmlType(name = "Kcp17V05AccAddresses", propOrder = {"kcp17V05AddressData"}) 32 | public class Kcp17V05AccAddresses implements Serializable 33 | { 34 | 35 | private final static long serialVersionUID = 1L; 36 | @XmlElement(required = true) 37 | @CobolElement(cobolName = "KCP17V05-ADDRESS-DATA", type = CobolType.GROUP_ITEM, levelNumber = 3, srceLine = 8) 38 | protected Kcp17V05AddressData kcp17V05AddressData; 39 | 40 | /** 41 | * Gets the value of the kcp17V05AddressData property. 42 | * 43 | * @return possible object is 44 | * {@link Kcp17V05AddressData } 45 | */ 46 | public Kcp17V05AddressData getKcp17V05AddressData() 47 | { 48 | return kcp17V05AddressData; 49 | } 50 | 51 | /** 52 | * Sets the value of the kcp17V05AddressData property. 53 | * 54 | * @param value allowed object is 55 | * {@link Kcp17V05AddressData } 56 | */ 57 | public void setKcp17V05AddressData( Kcp17V05AddressData value ) 58 | { 59 | this.kcp17V05AddressData = value; 60 | } 61 | 62 | } 63 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean15/bind/Kcp17V05AccAddressesHostToJavaTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean15.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractHostToJavaTransformer; 7 | 8 | /** 9 | * Transforms mainframe data to a Kcp17V05AccAddresses data object. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  Kcp17V05AccAddressesHostToJavaTransformer transformer = new Kcp17V05AccAddressesHostToJavaTransformer();
14 |  *  Kcp17V05AccAddresses javaValue = (Kcp17V05AccAddresses) transformer.transform(hostByteArray);
15 |  * 
16 | */ 17 | public class Kcp17V05AccAddressesHostToJavaTransformer extends AbstractHostToJavaTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Host to Java transformer using default COBOL parameters. 23 | */ 24 | public Kcp17V05AccAddressesHostToJavaTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Host to Java transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public Kcp17V05AccAddressesHostToJavaTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Host to Java transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public Kcp17V05AccAddressesHostToJavaTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new Kcp17V05AccAddressesBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean15/bind/Kcp17V05AccAddressesJavaToHostTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean15.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractJavaToHostTransformer; 7 | 8 | /** 9 | * Transforms a Kcp17V05AccAddresses data object to mainframe data. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  Kcp17V05AccAddressesJavaToHostTransformer transformer = new Kcp17V05AccAddressesJavaToHostTransformer();
14 |  *  byte[] hostByteArray = transformer.transform(javaValue);
15 |  * 
16 | */ 17 | public class Kcp17V05AccAddressesJavaToHostTransformer extends AbstractJavaToHostTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Java to Host transformer using default COBOL parameters. 23 | */ 24 | public Kcp17V05AccAddressesJavaToHostTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Java to Host transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public Kcp17V05AccAddressesJavaToHostTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Java to Host transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public Kcp17V05AccAddressesJavaToHostTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new Kcp17V05AccAddressesBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean15/package-info.java: -------------------------------------------------------------------------------- 1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://beans.cobolcopybook.legstar.cascading/bean15", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package cascading.legstar.cobolcopybook.beans.bean15; 2 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean16/Kcp18V05AccLongName.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean16; 2 | 3 | import java.io.Serializable; 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlElement; 7 | import javax.xml.bind.annotation.XmlType; 8 | 9 | import com.legstar.coxb.CobolElement; 10 | import com.legstar.coxb.CobolType; 11 | 12 | 13 | /** 14 | *

Java class for Kcp18V05AccLongName complex type. 15 | *

16 | *

The following schema fragment specifies the expected content contained within this class. 17 | *

18 | *

19 |  * <complexType name="Kcp18V05AccLongName">
20 |  *   <complexContent>
21 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
22 |  *       <sequence>
23 |  *         <element name="kcp18V05LongNameData" type="{http://beans.cobolcopybook.legstar.cascading/bean16}Kcp18V05LongNameData"/>
24 |  *       </sequence>
25 |  *     </restriction>
26 |  *   </complexContent>
27 |  * </complexType>
28 |  * 
29 | */ 30 | @XmlAccessorType(XmlAccessType.FIELD) 31 | @XmlType(name = "Kcp18V05AccLongName", propOrder = {"kcp18V05LongNameData"}) 32 | public class Kcp18V05AccLongName implements Serializable 33 | { 34 | 35 | private final static long serialVersionUID = 1L; 36 | @XmlElement(required = true) 37 | @CobolElement(cobolName = "KCP18V05-LONG-NAME-DATA", type = CobolType.GROUP_ITEM, levelNumber = 3, srceLine = 8) 38 | protected Kcp18V05LongNameData kcp18V05LongNameData; 39 | 40 | /** 41 | * Gets the value of the kcp18V05LongNameData property. 42 | * 43 | * @return possible object is 44 | * {@link Kcp18V05LongNameData } 45 | */ 46 | public Kcp18V05LongNameData getKcp18V05LongNameData() 47 | { 48 | return kcp18V05LongNameData; 49 | } 50 | 51 | /** 52 | * Sets the value of the kcp18V05LongNameData property. 53 | * 54 | * @param value allowed object is 55 | * {@link Kcp18V05LongNameData } 56 | */ 57 | public void setKcp18V05LongNameData( Kcp18V05LongNameData value ) 58 | { 59 | this.kcp18V05LongNameData = value; 60 | } 61 | 62 | } 63 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean16/bind/Kcp18V05AccLongNameHostToJavaTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean16.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractHostToJavaTransformer; 7 | 8 | /** 9 | * Transforms mainframe data to a Kcp18V05AccLongName data object. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  Kcp18V05AccLongNameHostToJavaTransformer transformer = new Kcp18V05AccLongNameHostToJavaTransformer();
14 |  *  Kcp18V05AccLongName javaValue = (Kcp18V05AccLongName) transformer.transform(hostByteArray);
15 |  * 
16 | */ 17 | public class Kcp18V05AccLongNameHostToJavaTransformer extends AbstractHostToJavaTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Host to Java transformer using default COBOL parameters. 23 | */ 24 | public Kcp18V05AccLongNameHostToJavaTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Host to Java transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public Kcp18V05AccLongNameHostToJavaTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Host to Java transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public Kcp18V05AccLongNameHostToJavaTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new Kcp18V05AccLongNameBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean16/bind/Kcp18V05AccLongNameJavaToHostTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean16.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractJavaToHostTransformer; 7 | 8 | /** 9 | * Transforms a Kcp18V05AccLongName data object to mainframe data. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  Kcp18V05AccLongNameJavaToHostTransformer transformer = new Kcp18V05AccLongNameJavaToHostTransformer();
14 |  *  byte[] hostByteArray = transformer.transform(javaValue);
15 |  * 
16 | */ 17 | public class Kcp18V05AccLongNameJavaToHostTransformer extends AbstractJavaToHostTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Java to Host transformer using default COBOL parameters. 23 | */ 24 | public Kcp18V05AccLongNameJavaToHostTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Java to Host transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public Kcp18V05AccLongNameJavaToHostTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Java to Host transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public Kcp18V05AccLongNameJavaToHostTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new Kcp18V05AccLongNameBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean16/package-info.java: -------------------------------------------------------------------------------- 1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://beans.cobolcopybook.legstar.cascading/bean16", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package cascading.legstar.cobolcopybook.beans.bean16; 2 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean17/bind/Kcp83V05InterestRewardDataJavaToHostTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean17.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractJavaToHostTransformer; 7 | 8 | /** 9 | * Transforms a Kcp83V05InterestRewardData data object to mainframe data. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  Kcp83V05InterestRewardDataJavaToHostTransformer transformer = new Kcp83V05InterestRewardDataJavaToHostTransformer();
14 |  *  byte[] hostByteArray = transformer.transform(javaValue);
15 |  * 
16 | */ 17 | public class Kcp83V05InterestRewardDataJavaToHostTransformer extends AbstractJavaToHostTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Java to Host transformer using default COBOL parameters. 23 | */ 24 | public Kcp83V05InterestRewardDataJavaToHostTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Java to Host transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public Kcp83V05InterestRewardDataJavaToHostTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Java to Host transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public Kcp83V05InterestRewardDataJavaToHostTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new Kcp83V05InterestRewardDataBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean17/package-info.java: -------------------------------------------------------------------------------- 1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://beans.cobolcopybook.legstar.cascading/bean17", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package cascading.legstar.cobolcopybook.beans.bean17; 2 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean18/bind/Kcp93V05AccLevelCrintHostToJavaTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean18.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractHostToJavaTransformer; 7 | 8 | /** 9 | * Transforms mainframe data to a Kcp93V05AccLevelCrint data object. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  Kcp93V05AccLevelCrintHostToJavaTransformer transformer = new Kcp93V05AccLevelCrintHostToJavaTransformer();
14 |  *  Kcp93V05AccLevelCrint javaValue = (Kcp93V05AccLevelCrint) transformer.transform(hostByteArray);
15 |  * 
16 | */ 17 | public class Kcp93V05AccLevelCrintHostToJavaTransformer extends AbstractHostToJavaTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Host to Java transformer using default COBOL parameters. 23 | */ 24 | public Kcp93V05AccLevelCrintHostToJavaTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Host to Java transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public Kcp93V05AccLevelCrintHostToJavaTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Host to Java transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public Kcp93V05AccLevelCrintHostToJavaTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new Kcp93V05AccLevelCrintBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean18/bind/Kcp93V05AccLevelCrintJavaToHostTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean18.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractJavaToHostTransformer; 7 | 8 | /** 9 | * Transforms a Kcp93V05AccLevelCrint data object to mainframe data. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  Kcp93V05AccLevelCrintJavaToHostTransformer transformer = new Kcp93V05AccLevelCrintJavaToHostTransformer();
14 |  *  byte[] hostByteArray = transformer.transform(javaValue);
15 |  * 
16 | */ 17 | public class Kcp93V05AccLevelCrintJavaToHostTransformer extends AbstractJavaToHostTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Java to Host transformer using default COBOL parameters. 23 | */ 24 | public Kcp93V05AccLevelCrintJavaToHostTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Java to Host transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public Kcp93V05AccLevelCrintJavaToHostTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Java to Host transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public Kcp93V05AccLevelCrintJavaToHostTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new Kcp93V05AccLevelCrintBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean18/package-info.java: -------------------------------------------------------------------------------- 1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://beans.cobolcopybook.legstar.cascading/bean18", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package cascading.legstar.cobolcopybook.beans.bean18; 2 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean19/bind/Kcp94V05AccLevelCrintHostToJavaTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean19.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractHostToJavaTransformer; 7 | 8 | /** 9 | * Transforms mainframe data to a Kcp94V05AccLevelCrint data object. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  Kcp94V05AccLevelCrintHostToJavaTransformer transformer = new Kcp94V05AccLevelCrintHostToJavaTransformer();
14 |  *  Kcp94V05AccLevelCrint javaValue = (Kcp94V05AccLevelCrint) transformer.transform(hostByteArray);
15 |  * 
16 | */ 17 | public class Kcp94V05AccLevelCrintHostToJavaTransformer extends AbstractHostToJavaTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Host to Java transformer using default COBOL parameters. 23 | */ 24 | public Kcp94V05AccLevelCrintHostToJavaTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Host to Java transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public Kcp94V05AccLevelCrintHostToJavaTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Host to Java transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public Kcp94V05AccLevelCrintHostToJavaTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new Kcp94V05AccLevelCrintBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean19/bind/Kcp94V05AccLevelCrintJavaToHostTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean19.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractJavaToHostTransformer; 7 | 8 | /** 9 | * Transforms a Kcp94V05AccLevelCrint data object to mainframe data. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  Kcp94V05AccLevelCrintJavaToHostTransformer transformer = new Kcp94V05AccLevelCrintJavaToHostTransformer();
14 |  *  byte[] hostByteArray = transformer.transform(javaValue);
15 |  * 
16 | */ 17 | public class Kcp94V05AccLevelCrintJavaToHostTransformer extends AbstractJavaToHostTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Java to Host transformer using default COBOL parameters. 23 | */ 24 | public Kcp94V05AccLevelCrintJavaToHostTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Java to Host transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public Kcp94V05AccLevelCrintJavaToHostTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Java to Host transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public Kcp94V05AccLevelCrintJavaToHostTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new Kcp94V05AccLevelCrintBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean19/package-info.java: -------------------------------------------------------------------------------- 1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://beans.cobolcopybook.legstar.cascading/bean19", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package cascading.legstar.cobolcopybook.beans.bean19; 2 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean2/ObjectFactory.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean2; 2 | 3 | import javax.xml.bind.JAXBElement; 4 | import javax.xml.bind.annotation.XmlElementDecl; 5 | import javax.xml.bind.annotation.XmlRegistry; 6 | import javax.xml.namespace.QName; 7 | 8 | 9 | /** 10 | * This object contains factory methods for each 11 | * Java content interface and Java element interface 12 | * generated in the cascading.legstar.cobolcopybook.beans.bean2 package. 13 | *

An ObjectFactory allows you to programatically 14 | * construct new instances of the Java representation 15 | * for XML content. The Java representation of XML 16 | * content can consist of schema derived interfaces 17 | * and classes representing the binding of schema 18 | * type definitions, element declarations and model 19 | * groups. Factory methods for each of these are 20 | * provided in this class. 21 | */ 22 | @XmlRegistry 23 | public class ObjectFactory 24 | { 25 | 26 | private final static QName _BdfoFileHeader_QNAME = new QName( "http://beans.cobolcopybook.legstar.cascading/bean2", "bdfoFileHeader" ); 27 | 28 | /** 29 | * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: cascading.legstar.cobolcopybook.beans.bean2 30 | */ 31 | public ObjectFactory() 32 | { 33 | } 34 | 35 | /** 36 | * Create an instance of {@link BdfoFileHeader } 37 | */ 38 | public BdfoFileHeader createBdfoFileHeader() 39 | { 40 | return new BdfoFileHeader(); 41 | } 42 | 43 | /** 44 | * Create an instance of {@link JAXBElement }{@code <}{@link BdfoFileHeader }{@code >}} 45 | */ 46 | @XmlElementDecl(namespace = "http://beans.cobolcopybook.legstar.cascading/bean2", name = "bdfoFileHeader") 47 | public JAXBElement createBdfoFileHeader( BdfoFileHeader value ) 48 | { 49 | return new JAXBElement( _BdfoFileHeader_QNAME, BdfoFileHeader.class, null, value ); 50 | } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean2/bind/BdfoFileHeaderHostToJavaTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean2.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractHostToJavaTransformer; 7 | 8 | /** 9 | * Transforms mainframe data to a BdfoFileHeader data object. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  BdfoFileHeaderHostToJavaTransformer transformer = new BdfoFileHeaderHostToJavaTransformer();
14 |  *  BdfoFileHeader javaValue = (BdfoFileHeader) transformer.transform(hostByteArray);
15 |  * 
16 | */ 17 | public class BdfoFileHeaderHostToJavaTransformer extends AbstractHostToJavaTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Host to Java transformer using default COBOL parameters. 23 | */ 24 | public BdfoFileHeaderHostToJavaTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Host to Java transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public BdfoFileHeaderHostToJavaTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Host to Java transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public BdfoFileHeaderHostToJavaTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new BdfoFileHeaderBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean2/bind/BdfoFileHeaderJavaToHostTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean2.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractJavaToHostTransformer; 7 | 8 | /** 9 | * Transforms a BdfoFileHeader data object to mainframe data. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  BdfoFileHeaderJavaToHostTransformer transformer = new BdfoFileHeaderJavaToHostTransformer();
14 |  *  byte[] hostByteArray = transformer.transform(javaValue);
15 |  * 
16 | */ 17 | public class BdfoFileHeaderJavaToHostTransformer extends AbstractJavaToHostTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Java to Host transformer using default COBOL parameters. 23 | */ 24 | public BdfoFileHeaderJavaToHostTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Java to Host transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public BdfoFileHeaderJavaToHostTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Java to Host transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public BdfoFileHeaderJavaToHostTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new BdfoFileHeaderBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean2/package-info.java: -------------------------------------------------------------------------------- 1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://beans.cobolcopybook.legstar.cascading/bean2", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package cascading.legstar.cobolcopybook.beans.bean2; 2 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean20/bind/Kcp96V05AccLevelDrintHostToJavaTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean20.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractHostToJavaTransformer; 7 | 8 | /** 9 | * Transforms mainframe data to a Kcp96V05AccLevelDrint data object. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  Kcp96V05AccLevelDrintHostToJavaTransformer transformer = new Kcp96V05AccLevelDrintHostToJavaTransformer();
14 |  *  Kcp96V05AccLevelDrint javaValue = (Kcp96V05AccLevelDrint) transformer.transform(hostByteArray);
15 |  * 
16 | */ 17 | public class Kcp96V05AccLevelDrintHostToJavaTransformer extends AbstractHostToJavaTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Host to Java transformer using default COBOL parameters. 23 | */ 24 | public Kcp96V05AccLevelDrintHostToJavaTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Host to Java transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public Kcp96V05AccLevelDrintHostToJavaTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Host to Java transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public Kcp96V05AccLevelDrintHostToJavaTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new Kcp96V05AccLevelDrintBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean20/bind/Kcp96V05AccLevelDrintJavaToHostTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean20.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractJavaToHostTransformer; 7 | 8 | /** 9 | * Transforms a Kcp96V05AccLevelDrint data object to mainframe data. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  Kcp96V05AccLevelDrintJavaToHostTransformer transformer = new Kcp96V05AccLevelDrintJavaToHostTransformer();
14 |  *  byte[] hostByteArray = transformer.transform(javaValue);
15 |  * 
16 | */ 17 | public class Kcp96V05AccLevelDrintJavaToHostTransformer extends AbstractJavaToHostTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Java to Host transformer using default COBOL parameters. 23 | */ 24 | public Kcp96V05AccLevelDrintJavaToHostTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Java to Host transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public Kcp96V05AccLevelDrintJavaToHostTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Java to Host transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public Kcp96V05AccLevelDrintJavaToHostTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new Kcp96V05AccLevelDrintBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean20/package-info.java: -------------------------------------------------------------------------------- 1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://beans.cobolcopybook.legstar.cascading/bean20", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package cascading.legstar.cobolcopybook.beans.bean20; 2 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean21/Kcp97V05DrintRates.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean21; 2 | 3 | import java.io.Serializable; 4 | import javax.xml.bind.annotation.XmlAccessType; 5 | import javax.xml.bind.annotation.XmlAccessorType; 6 | import javax.xml.bind.annotation.XmlElement; 7 | import javax.xml.bind.annotation.XmlType; 8 | 9 | import com.legstar.coxb.CobolElement; 10 | import com.legstar.coxb.CobolType; 11 | 12 | 13 | /** 14 | *

Java class for Kcp97V05DrintRates complex type. 15 | *

16 | *

The following schema fragment specifies the expected content contained within this class. 17 | *

18 | *

19 |  * <complexType name="Kcp97V05DrintRates">
20 |  *   <complexContent>
21 |  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
22 |  *       <sequence>
23 |  *         <element name="kcp97V05DrintRateData" type="{http://beans.cobolcopybook.legstar.cascading/bean21}Kcp97V05DrintRateData"/>
24 |  *       </sequence>
25 |  *     </restriction>
26 |  *   </complexContent>
27 |  * </complexType>
28 |  * 
29 | */ 30 | @XmlAccessorType(XmlAccessType.FIELD) 31 | @XmlType(name = "Kcp97V05DrintRates", propOrder = {"kcp97V05DrintRateData"}) 32 | public class Kcp97V05DrintRates implements Serializable 33 | { 34 | 35 | private final static long serialVersionUID = 1L; 36 | @XmlElement(required = true) 37 | @CobolElement(cobolName = "KCP97V05-DRINT-RATE-DATA", type = CobolType.GROUP_ITEM, levelNumber = 3, srceLine = 8) 38 | protected Kcp97V05DrintRateData kcp97V05DrintRateData; 39 | 40 | /** 41 | * Gets the value of the kcp97V05DrintRateData property. 42 | * 43 | * @return possible object is 44 | * {@link Kcp97V05DrintRateData } 45 | */ 46 | public Kcp97V05DrintRateData getKcp97V05DrintRateData() 47 | { 48 | return kcp97V05DrintRateData; 49 | } 50 | 51 | /** 52 | * Sets the value of the kcp97V05DrintRateData property. 53 | * 54 | * @param value allowed object is 55 | * {@link Kcp97V05DrintRateData } 56 | */ 57 | public void setKcp97V05DrintRateData( Kcp97V05DrintRateData value ) 58 | { 59 | this.kcp97V05DrintRateData = value; 60 | } 61 | 62 | } 63 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean21/bind/Kcp97V05DrintRatesHostToJavaTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean21.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractHostToJavaTransformer; 7 | 8 | /** 9 | * Transforms mainframe data to a Kcp97V05DrintRates data object. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  Kcp97V05DrintRatesHostToJavaTransformer transformer = new Kcp97V05DrintRatesHostToJavaTransformer();
14 |  *  Kcp97V05DrintRates javaValue = (Kcp97V05DrintRates) transformer.transform(hostByteArray);
15 |  * 
16 | */ 17 | public class Kcp97V05DrintRatesHostToJavaTransformer extends AbstractHostToJavaTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Host to Java transformer using default COBOL parameters. 23 | */ 24 | public Kcp97V05DrintRatesHostToJavaTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Host to Java transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public Kcp97V05DrintRatesHostToJavaTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Host to Java transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public Kcp97V05DrintRatesHostToJavaTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new Kcp97V05DrintRatesBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean21/bind/Kcp97V05DrintRatesJavaToHostTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean21.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractJavaToHostTransformer; 7 | 8 | /** 9 | * Transforms a Kcp97V05DrintRates data object to mainframe data. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  Kcp97V05DrintRatesJavaToHostTransformer transformer = new Kcp97V05DrintRatesJavaToHostTransformer();
14 |  *  byte[] hostByteArray = transformer.transform(javaValue);
15 |  * 
16 | */ 17 | public class Kcp97V05DrintRatesJavaToHostTransformer extends AbstractJavaToHostTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Java to Host transformer using default COBOL parameters. 23 | */ 24 | public Kcp97V05DrintRatesJavaToHostTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Java to Host transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public Kcp97V05DrintRatesJavaToHostTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Java to Host transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public Kcp97V05DrintRatesJavaToHostTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new Kcp97V05DrintRatesBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean21/package-info.java: -------------------------------------------------------------------------------- 1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://beans.cobolcopybook.legstar.cascading/bean21", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package cascading.legstar.cobolcopybook.beans.bean21; 2 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean3/ObjectFactory.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean3; 2 | 3 | import javax.xml.bind.JAXBElement; 4 | import javax.xml.bind.annotation.XmlElementDecl; 5 | import javax.xml.bind.annotation.XmlRegistry; 6 | import javax.xml.namespace.QName; 7 | 8 | 9 | /** 10 | * This object contains factory methods for each 11 | * Java content interface and Java element interface 12 | * generated in the cascading.legstar.cobolcopybook.beans.bean3 package. 13 | *

An ObjectFactory allows you to programatically 14 | * construct new instances of the Java representation 15 | * for XML content. The Java representation of XML 16 | * content can consist of schema derived interfaces 17 | * and classes representing the binding of schema 18 | * type definitions, element declarations and model 19 | * groups. Factory methods for each of these are 20 | * provided in this class. 21 | */ 22 | @XmlRegistry 23 | public class ObjectFactory 24 | { 25 | 26 | private final static QName _BdfoFileTrailer_QNAME = new QName( "http://beans.cobolcopybook.legstar.cascading/bean3", "bdfoFileTrailer" ); 27 | 28 | /** 29 | * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: cascading.legstar.cobolcopybook.beans.bean3 30 | */ 31 | public ObjectFactory() 32 | { 33 | } 34 | 35 | /** 36 | * Create an instance of {@link BdfoFileTrailer } 37 | */ 38 | public BdfoFileTrailer createBdfoFileTrailer() 39 | { 40 | return new BdfoFileTrailer(); 41 | } 42 | 43 | /** 44 | * Create an instance of {@link JAXBElement }{@code <}{@link BdfoFileTrailer }{@code >}} 45 | */ 46 | @XmlElementDecl(namespace = "http://beans.cobolcopybook.legstar.cascading/bean3", name = "bdfoFileTrailer") 47 | public JAXBElement createBdfoFileTrailer( BdfoFileTrailer value ) 48 | { 49 | return new JAXBElement( _BdfoFileTrailer_QNAME, BdfoFileTrailer.class, null, value ); 50 | } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean3/bind/BdfoFileTrailerHostToJavaTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean3.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractHostToJavaTransformer; 7 | 8 | /** 9 | * Transforms mainframe data to a BdfoFileTrailer data object. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  BdfoFileTrailerHostToJavaTransformer transformer = new BdfoFileTrailerHostToJavaTransformer();
14 |  *  BdfoFileTrailer javaValue = (BdfoFileTrailer) transformer.transform(hostByteArray);
15 |  * 
16 | */ 17 | public class BdfoFileTrailerHostToJavaTransformer extends AbstractHostToJavaTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Host to Java transformer using default COBOL parameters. 23 | */ 24 | public BdfoFileTrailerHostToJavaTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Host to Java transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public BdfoFileTrailerHostToJavaTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Host to Java transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public BdfoFileTrailerHostToJavaTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new BdfoFileTrailerBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean3/bind/BdfoFileTrailerJavaToHostTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean3.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractJavaToHostTransformer; 7 | 8 | /** 9 | * Transforms a BdfoFileTrailer data object to mainframe data. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  BdfoFileTrailerJavaToHostTransformer transformer = new BdfoFileTrailerJavaToHostTransformer();
14 |  *  byte[] hostByteArray = transformer.transform(javaValue);
15 |  * 
16 | */ 17 | public class BdfoFileTrailerJavaToHostTransformer extends AbstractJavaToHostTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Java to Host transformer using default COBOL parameters. 23 | */ 24 | public BdfoFileTrailerJavaToHostTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Java to Host transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public BdfoFileTrailerJavaToHostTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Java to Host transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public BdfoFileTrailerJavaToHostTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new BdfoFileTrailerBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean3/package-info.java: -------------------------------------------------------------------------------- 1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://beans.cobolcopybook.legstar.cascading/bean3", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package cascading.legstar.cobolcopybook.beans.bean3; 2 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean4/ObjectFactory.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean4; 2 | 3 | import javax.xml.bind.JAXBElement; 4 | import javax.xml.bind.annotation.XmlElementDecl; 5 | import javax.xml.bind.annotation.XmlRegistry; 6 | import javax.xml.namespace.QName; 7 | 8 | 9 | /** 10 | * This object contains factory methods for each 11 | * Java content interface and Java element interface 12 | * generated in the cascading.legstar.cobolcopybook.beans.bean4 package. 13 | *

An ObjectFactory allows you to programatically 14 | * construct new instances of the Java representation 15 | * for XML content. The Java representation of XML 16 | * content can consist of schema derived interfaces 17 | * and classes representing the binding of schema 18 | * type definitions, element declarations and model 19 | * groups. Factory methods for each of these are 20 | * provided in this class. 21 | */ 22 | @XmlRegistry 23 | public class ObjectFactory 24 | { 25 | 26 | private final static QName _Ogp03AccountTaxData_QNAME = new QName( "http://beans.cobolcopybook.legstar.cascading/bean4", "ogp03AccountTaxData" ); 27 | 28 | /** 29 | * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: cascading.legstar.cobolcopybook.beans.bean4 30 | */ 31 | public ObjectFactory() 32 | { 33 | } 34 | 35 | /** 36 | * Create an instance of {@link Ogp03AccountTaxData } 37 | */ 38 | public Ogp03AccountTaxData createOgp03AccountTaxData() 39 | { 40 | return new Ogp03AccountTaxData(); 41 | } 42 | 43 | /** 44 | * Create an instance of {@link JAXBElement }{@code <}{@link Ogp03AccountTaxData }{@code >}} 45 | */ 46 | @XmlElementDecl(namespace = "http://beans.cobolcopybook.legstar.cascading/bean4", name = "ogp03AccountTaxData") 47 | public JAXBElement createOgp03AccountTaxData( Ogp03AccountTaxData value ) 48 | { 49 | return new JAXBElement( _Ogp03AccountTaxData_QNAME, Ogp03AccountTaxData.class, null, value ); 50 | } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean4/bind/Ogp03AccountTaxDataHostToJavaTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean4.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractHostToJavaTransformer; 7 | 8 | /** 9 | * Transforms mainframe data to a Ogp03AccountTaxData data object. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  Ogp03AccountTaxDataHostToJavaTransformer transformer = new Ogp03AccountTaxDataHostToJavaTransformer();
14 |  *  Ogp03AccountTaxData javaValue = (Ogp03AccountTaxData) transformer.transform(hostByteArray);
15 |  * 
16 | */ 17 | public class Ogp03AccountTaxDataHostToJavaTransformer extends AbstractHostToJavaTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Host to Java transformer using default COBOL parameters. 23 | */ 24 | public Ogp03AccountTaxDataHostToJavaTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Host to Java transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public Ogp03AccountTaxDataHostToJavaTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Host to Java transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public Ogp03AccountTaxDataHostToJavaTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new Ogp03AccountTaxDataBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean4/bind/Ogp03AccountTaxDataJavaToHostTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean4.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractJavaToHostTransformer; 7 | 8 | /** 9 | * Transforms a Ogp03AccountTaxData data object to mainframe data. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  Ogp03AccountTaxDataJavaToHostTransformer transformer = new Ogp03AccountTaxDataJavaToHostTransformer();
14 |  *  byte[] hostByteArray = transformer.transform(javaValue);
15 |  * 
16 | */ 17 | public class Ogp03AccountTaxDataJavaToHostTransformer extends AbstractJavaToHostTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Java to Host transformer using default COBOL parameters. 23 | */ 24 | public Ogp03AccountTaxDataJavaToHostTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Java to Host transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public Ogp03AccountTaxDataJavaToHostTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Java to Host transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public Ogp03AccountTaxDataJavaToHostTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new Ogp03AccountTaxDataBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean4/package-info.java: -------------------------------------------------------------------------------- 1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://beans.cobolcopybook.legstar.cascading/bean4", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package cascading.legstar.cobolcopybook.beans.bean4; 2 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean5/ObjectFactory.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean5; 2 | 3 | import javax.xml.bind.JAXBElement; 4 | import javax.xml.bind.annotation.XmlElementDecl; 5 | import javax.xml.bind.annotation.XmlRegistry; 6 | import javax.xml.namespace.QName; 7 | 8 | 9 | /** 10 | * This object contains factory methods for each 11 | * Java content interface and Java element interface 12 | * generated in the cascading.legstar.cobolcopybook.beans.bean5 package. 13 | *

An ObjectFactory allows you to programatically 14 | * construct new instances of the Java representation 15 | * for XML content. The Java representation of XML 16 | * content can consist of schema derived interfaces 17 | * and classes representing the binding of schema 18 | * type definitions, element declarations and model 19 | * groups. Factory methods for each of these are 20 | * provided in this class. 21 | */ 22 | @XmlRegistry 23 | public class ObjectFactory 24 | { 25 | 26 | private final static QName _Ogp04RepaymentData_QNAME = new QName( "http://beans.cobolcopybook.legstar.cascading/bean5", "ogp04RepaymentData" ); 27 | 28 | /** 29 | * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: cascading.legstar.cobolcopybook.beans.bean5 30 | */ 31 | public ObjectFactory() 32 | { 33 | } 34 | 35 | /** 36 | * Create an instance of {@link Ogp04RepaymentData } 37 | */ 38 | public Ogp04RepaymentData createOgp04RepaymentData() 39 | { 40 | return new Ogp04RepaymentData(); 41 | } 42 | 43 | /** 44 | * Create an instance of {@link JAXBElement }{@code <}{@link Ogp04RepaymentData }{@code >}} 45 | */ 46 | @XmlElementDecl(namespace = "http://beans.cobolcopybook.legstar.cascading/bean5", name = "ogp04RepaymentData") 47 | public JAXBElement createOgp04RepaymentData( Ogp04RepaymentData value ) 48 | { 49 | return new JAXBElement( _Ogp04RepaymentData_QNAME, Ogp04RepaymentData.class, null, value ); 50 | } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean5/bind/Ogp04RepaymentDataHostToJavaTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean5.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractHostToJavaTransformer; 7 | 8 | /** 9 | * Transforms mainframe data to a Ogp04RepaymentData data object. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  Ogp04RepaymentDataHostToJavaTransformer transformer = new Ogp04RepaymentDataHostToJavaTransformer();
14 |  *  Ogp04RepaymentData javaValue = (Ogp04RepaymentData) transformer.transform(hostByteArray);
15 |  * 
16 | */ 17 | public class Ogp04RepaymentDataHostToJavaTransformer extends AbstractHostToJavaTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Host to Java transformer using default COBOL parameters. 23 | */ 24 | public Ogp04RepaymentDataHostToJavaTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Host to Java transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public Ogp04RepaymentDataHostToJavaTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Host to Java transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public Ogp04RepaymentDataHostToJavaTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new Ogp04RepaymentDataBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean5/bind/Ogp04RepaymentDataJavaToHostTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean5.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractJavaToHostTransformer; 7 | 8 | /** 9 | * Transforms a Ogp04RepaymentData data object to mainframe data. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  Ogp04RepaymentDataJavaToHostTransformer transformer = new Ogp04RepaymentDataJavaToHostTransformer();
14 |  *  byte[] hostByteArray = transformer.transform(javaValue);
15 |  * 
16 | */ 17 | public class Ogp04RepaymentDataJavaToHostTransformer extends AbstractJavaToHostTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Java to Host transformer using default COBOL parameters. 23 | */ 24 | public Ogp04RepaymentDataJavaToHostTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Java to Host transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public Ogp04RepaymentDataJavaToHostTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Java to Host transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public Ogp04RepaymentDataJavaToHostTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new Ogp04RepaymentDataBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean5/package-info.java: -------------------------------------------------------------------------------- 1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://beans.cobolcopybook.legstar.cascading/bean5", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package cascading.legstar.cobolcopybook.beans.bean5; 2 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean6/ObjectFactory.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean6; 2 | 3 | import javax.xml.bind.JAXBElement; 4 | import javax.xml.bind.annotation.XmlElementDecl; 5 | import javax.xml.bind.annotation.XmlRegistry; 6 | import javax.xml.namespace.QName; 7 | 8 | 9 | /** 10 | * This object contains factory methods for each 11 | * Java content interface and Java element interface 12 | * generated in the cascading.legstar.cobolcopybook.beans.bean6 package. 13 | *

An ObjectFactory allows you to programatically 14 | * construct new instances of the Java representation 15 | * for XML content. The Java representation of XML 16 | * content can consist of schema derived interfaces 17 | * and classes representing the binding of schema 18 | * type definitions, element declarations and model 19 | * groups. Factory methods for each of these are 20 | * provided in this class. 21 | */ 22 | @XmlRegistry 23 | public class ObjectFactory 24 | { 25 | 26 | private final static QName _Ogp06ReferralData_QNAME = new QName( "http://beans.cobolcopybook.legstar.cascading/bean6", "ogp06ReferralData" ); 27 | 28 | /** 29 | * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: cascading.legstar.cobolcopybook.beans.bean6 30 | */ 31 | public ObjectFactory() 32 | { 33 | } 34 | 35 | /** 36 | * Create an instance of {@link Ogp06ReferralData } 37 | */ 38 | public Ogp06ReferralData createOgp06ReferralData() 39 | { 40 | return new Ogp06ReferralData(); 41 | } 42 | 43 | /** 44 | * Create an instance of {@link Ogp06ReferDayOfWeek } 45 | */ 46 | public Ogp06ReferDayOfWeek createOgp06ReferDayOfWeek() 47 | { 48 | return new Ogp06ReferDayOfWeek(); 49 | } 50 | 51 | /** 52 | * Create an instance of {@link JAXBElement }{@code <}{@link Ogp06ReferralData }{@code >}} 53 | */ 54 | @XmlElementDecl(namespace = "http://beans.cobolcopybook.legstar.cascading/bean6", name = "ogp06ReferralData") 55 | public JAXBElement createOgp06ReferralData( Ogp06ReferralData value ) 56 | { 57 | return new JAXBElement( _Ogp06ReferralData_QNAME, Ogp06ReferralData.class, null, value ); 58 | } 59 | 60 | } 61 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean6/bind/Ogp06ReferralDataHostToJavaTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean6.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractHostToJavaTransformer; 7 | 8 | /** 9 | * Transforms mainframe data to a Ogp06ReferralData data object. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  Ogp06ReferralDataHostToJavaTransformer transformer = new Ogp06ReferralDataHostToJavaTransformer();
14 |  *  Ogp06ReferralData javaValue = (Ogp06ReferralData) transformer.transform(hostByteArray);
15 |  * 
16 | */ 17 | public class Ogp06ReferralDataHostToJavaTransformer extends AbstractHostToJavaTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Host to Java transformer using default COBOL parameters. 23 | */ 24 | public Ogp06ReferralDataHostToJavaTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Host to Java transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public Ogp06ReferralDataHostToJavaTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Host to Java transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public Ogp06ReferralDataHostToJavaTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new Ogp06ReferralDataBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean6/bind/Ogp06ReferralDataJavaToHostTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean6.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractJavaToHostTransformer; 7 | 8 | /** 9 | * Transforms a Ogp06ReferralData data object to mainframe data. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  Ogp06ReferralDataJavaToHostTransformer transformer = new Ogp06ReferralDataJavaToHostTransformer();
14 |  *  byte[] hostByteArray = transformer.transform(javaValue);
15 |  * 
16 | */ 17 | public class Ogp06ReferralDataJavaToHostTransformer extends AbstractJavaToHostTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Java to Host transformer using default COBOL parameters. 23 | */ 24 | public Ogp06ReferralDataJavaToHostTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Java to Host transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public Ogp06ReferralDataJavaToHostTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Java to Host transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public Ogp06ReferralDataJavaToHostTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new Ogp06ReferralDataBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean6/package-info.java: -------------------------------------------------------------------------------- 1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://beans.cobolcopybook.legstar.cascading/bean6", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package cascading.legstar.cobolcopybook.beans.bean6; 2 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean7/bind/Kcp01V05AccountDetailsHostToJavaTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean7.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractHostToJavaTransformer; 7 | 8 | /** 9 | * Transforms mainframe data to a Kcp01V05AccountDetails data object. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  Kcp01V05AccountDetailsHostToJavaTransformer transformer = new Kcp01V05AccountDetailsHostToJavaTransformer();
14 |  *  Kcp01V05AccountDetails javaValue = (Kcp01V05AccountDetails) transformer.transform(hostByteArray);
15 |  * 
16 | */ 17 | public class Kcp01V05AccountDetailsHostToJavaTransformer extends AbstractHostToJavaTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Host to Java transformer using default COBOL parameters. 23 | */ 24 | public Kcp01V05AccountDetailsHostToJavaTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Host to Java transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public Kcp01V05AccountDetailsHostToJavaTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Host to Java transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public Kcp01V05AccountDetailsHostToJavaTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new Kcp01V05AccountDetailsBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean7/bind/Kcp01V05AccountDetailsJavaToHostTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean7.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractJavaToHostTransformer; 7 | 8 | /** 9 | * Transforms a Kcp01V05AccountDetails data object to mainframe data. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  Kcp01V05AccountDetailsJavaToHostTransformer transformer = new Kcp01V05AccountDetailsJavaToHostTransformer();
14 |  *  byte[] hostByteArray = transformer.transform(javaValue);
15 |  * 
16 | */ 17 | public class Kcp01V05AccountDetailsJavaToHostTransformer extends AbstractJavaToHostTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Java to Host transformer using default COBOL parameters. 23 | */ 24 | public Kcp01V05AccountDetailsJavaToHostTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Java to Host transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public Kcp01V05AccountDetailsJavaToHostTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Java to Host transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public Kcp01V05AccountDetailsJavaToHostTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new Kcp01V05AccountDetailsBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean7/package-info.java: -------------------------------------------------------------------------------- 1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://beans.cobolcopybook.legstar.cascading/bean7", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package cascading.legstar.cobolcopybook.beans.bean7; 2 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean8/bind/Kcp02V05AccountStatusHostToJavaTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean8.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractHostToJavaTransformer; 7 | 8 | /** 9 | * Transforms mainframe data to a Kcp02V05AccountStatus data object. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  Kcp02V05AccountStatusHostToJavaTransformer transformer = new Kcp02V05AccountStatusHostToJavaTransformer();
14 |  *  Kcp02V05AccountStatus javaValue = (Kcp02V05AccountStatus) transformer.transform(hostByteArray);
15 |  * 
16 | */ 17 | public class Kcp02V05AccountStatusHostToJavaTransformer extends AbstractHostToJavaTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Host to Java transformer using default COBOL parameters. 23 | */ 24 | public Kcp02V05AccountStatusHostToJavaTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Host to Java transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public Kcp02V05AccountStatusHostToJavaTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Host to Java transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public Kcp02V05AccountStatusHostToJavaTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new Kcp02V05AccountStatusBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean8/bind/Kcp02V05AccountStatusJavaToHostTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean8.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractJavaToHostTransformer; 7 | 8 | /** 9 | * Transforms a Kcp02V05AccountStatus data object to mainframe data. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  Kcp02V05AccountStatusJavaToHostTransformer transformer = new Kcp02V05AccountStatusJavaToHostTransformer();
14 |  *  byte[] hostByteArray = transformer.transform(javaValue);
15 |  * 
16 | */ 17 | public class Kcp02V05AccountStatusJavaToHostTransformer extends AbstractJavaToHostTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Java to Host transformer using default COBOL parameters. 23 | */ 24 | public Kcp02V05AccountStatusJavaToHostTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Java to Host transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public Kcp02V05AccountStatusJavaToHostTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Java to Host transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public Kcp02V05AccountStatusJavaToHostTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new Kcp02V05AccountStatusBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean8/package-info.java: -------------------------------------------------------------------------------- 1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://beans.cobolcopybook.legstar.cascading/bean8", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package cascading.legstar.cobolcopybook.beans.bean8; 2 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean9/bind/Kcp05V10ProfileMarkersHostToJavaTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean9.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractHostToJavaTransformer; 7 | 8 | /** 9 | * Transforms mainframe data to a Kcp05V10ProfileMarkers data object. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  Kcp05V10ProfileMarkersHostToJavaTransformer transformer = new Kcp05V10ProfileMarkersHostToJavaTransformer();
14 |  *  Kcp05V10ProfileMarkers javaValue = (Kcp05V10ProfileMarkers) transformer.transform(hostByteArray);
15 |  * 
16 | */ 17 | public class Kcp05V10ProfileMarkersHostToJavaTransformer extends AbstractHostToJavaTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Host to Java transformer using default COBOL parameters. 23 | */ 24 | public Kcp05V10ProfileMarkersHostToJavaTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Host to Java transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public Kcp05V10ProfileMarkersHostToJavaTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Host to Java transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public Kcp05V10ProfileMarkersHostToJavaTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new Kcp05V10ProfileMarkersBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean9/bind/Kcp05V10ProfileMarkersJavaToHostTransformer.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.beans.bean9.bind; 2 | 3 | import com.legstar.coxb.CobolBindingException; 4 | import com.legstar.coxb.CobolContext; 5 | import com.legstar.coxb.ICobolComplexBinding; 6 | import com.legstar.coxb.transform.AbstractJavaToHostTransformer; 7 | 8 | /** 9 | * Transforms a Kcp05V10ProfileMarkers data object to mainframe data. 10 | *

11 | * This is a typical use of this class: 12 | *

13 |  *  Kcp05V10ProfileMarkersJavaToHostTransformer transformer = new Kcp05V10ProfileMarkersJavaToHostTransformer();
14 |  *  byte[] hostByteArray = transformer.transform(javaValue);
15 |  * 
16 | */ 17 | public class Kcp05V10ProfileMarkersJavaToHostTransformer extends AbstractJavaToHostTransformer 18 | { 19 | 20 | 21 | /** 22 | * Create a Java to Host transformer using default COBOL parameters. 23 | */ 24 | public Kcp05V10ProfileMarkersJavaToHostTransformer() 25 | { 26 | super(); 27 | } 28 | 29 | /** 30 | * Create a Java to Host transformer using a specific COBOL parameters set. 31 | * 32 | * @param cobolContext the COBOL parameters set. 33 | */ 34 | public Kcp05V10ProfileMarkersJavaToHostTransformer( final CobolContext cobolContext ) 35 | { 36 | super( cobolContext ); 37 | } 38 | 39 | /** 40 | * Create a Java to Host transformer using a specific host character set while 41 | * other COBOL parameters are set by default. 42 | * 43 | * @param hostCharset the host character set 44 | */ 45 | public Kcp05V10ProfileMarkersJavaToHostTransformer( final String hostCharset ) 46 | { 47 | super( hostCharset ); 48 | } 49 | 50 | /** 51 | * Binding is statically produced by {@link com.legstar.coxb.gen.CoxbBindingGenerator}. 52 | * 53 | * @return a new binding corresponding to the host structure type. 54 | * @throws CobolBindingException if binding cannot be returned 55 | */ 56 | public ICobolComplexBinding newBinding() throws CobolBindingException 57 | { 58 | return new Kcp05V10ProfileMarkersBinding(); 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/beans/bean9/package-info.java: -------------------------------------------------------------------------------- 1 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://beans.cobolcopybook.legstar.cascading/bean9", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package cascading.legstar.cobolcopybook.beans.bean9; 2 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/fields/Field1.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.fields; 2 | 3 | import java.lang.reflect.Type; 4 | 5 | import cascading.tuple.Fields; 6 | 7 | public class Field1 extends Fields 8 | { 9 | 10 | private static final long serialVersionUID = -1L; 11 | 12 | public Field1() 13 | { 14 | super( new Comparable[]{"BdfoLen", "BdfoKey", "BdfoParmNo"}, new Type[]{short.class, long.class, int.class} ); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/fields/Field10.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.fields; 2 | 3 | import java.lang.reflect.Type; 4 | 5 | import cascading.tuple.Fields; 6 | 7 | public class Field10 extends Fields 8 | { 9 | 10 | private static final long serialVersionUID = -1L; 11 | 12 | public Field10() 13 | { 14 | super( new Comparable[]{"Kcp07V05Baldate", "Kcp07V05NoOfBalances", "Kcp07V05BalIdent_0", "Kcp07V05Bal_0", "Kcp07V05BalIdent_1", "Kcp07V05Bal_1", "Kcp07V05BalIdent_2", "Kcp07V05Bal_2", "Kcp07V05BalIdent_3", "Kcp07V05Bal_3", "Kcp07V05BalIdent_4", "Kcp07V05Bal_4", "Kcp07V05BalIdent_5", "Kcp07V05Bal_5", "Kcp07V05BalIdent_6", "Kcp07V05Bal_6", "Kcp07V05BalIdent_7", "Kcp07V05Bal_7", "Kcp07V05BalIdent_8", "Kcp07V05Bal_8", "Kcp07V05BalIdent_9", "Kcp07V05Bal_9", "Kcp07V05BalIdent_10", "Kcp07V05Bal_10", "Kcp07V05BalIdent_11", "Kcp07V05Bal_11", "Kcp07V05BalIdent_12", "Kcp07V05Bal_12", "Kcp07V05BalIdent_13", "Kcp07V05Bal_13", "Kcp07V05BalIdent_14", "Kcp07V05Bal_14", "Kcp07V05BalIdent_15", "Kcp07V05Bal_15", "Kcp07V05BalIdent_16", "Kcp07V05Bal_16", "Kcp07V05BalIdent_17", "Kcp07V05Bal_17", "Kcp07V05BalIdent_18", "Kcp07V05Bal_18", "Kcp07V05BalIdent_19", "Kcp07V05Bal_19"}, new Type[]{int.class, int.class, short.class, java.math.BigDecimal.class, short.class, java.math.BigDecimal.class, short.class, java.math.BigDecimal.class, short.class, java.math.BigDecimal.class, short.class, java.math.BigDecimal.class, short.class, java.math.BigDecimal.class, short.class, java.math.BigDecimal.class, short.class, java.math.BigDecimal.class, short.class, java.math.BigDecimal.class, short.class, java.math.BigDecimal.class, short.class, java.math.BigDecimal.class, short.class, java.math.BigDecimal.class, short.class, java.math.BigDecimal.class, short.class, java.math.BigDecimal.class, short.class, java.math.BigDecimal.class, short.class, java.math.BigDecimal.class, short.class, java.math.BigDecimal.class, short.class, java.math.BigDecimal.class, short.class, java.math.BigDecimal.class, short.class, java.math.BigDecimal.class} ); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/fields/Field11.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.fields; 2 | 3 | import java.lang.reflect.Type; 4 | 5 | import cascading.tuple.Fields; 6 | 7 | public class Field11 extends Fields 8 | { 9 | 10 | private static final long serialVersionUID = -1L; 11 | 12 | public Field11() 13 | { 14 | super( new Comparable[]{"Kcp08V05OpLimitInd", "Kcp08V05NoOfLims", "Kcp08V05LimitIdent_0", "Kcp08V05Limit_0", "Kcp08V05LimitSubCode_0", "Kcp08V05LimitIdent_1", "Kcp08V05Limit_1", "Kcp08V05LimitSubCode_1", "Kcp08V05LimitIdent_2", "Kcp08V05Limit_2", "Kcp08V05LimitSubCode_2", "Kcp08V05LimitIdent_3", "Kcp08V05Limit_3", "Kcp08V05LimitSubCode_3", "Kcp08V05LimitIdent_4", "Kcp08V05Limit_4", "Kcp08V05LimitSubCode_4", "Kcp08V05LimitIdent_5", "Kcp08V05Limit_5", "Kcp08V05LimitSubCode_5", "Kcp08V05LimitIdent_6", "Kcp08V05Limit_6", "Kcp08V05LimitSubCode_6", "Kcp08V05LimitIdent_7", "Kcp08V05Limit_7", "Kcp08V05LimitSubCode_7", "Kcp08V05LimitIdent_8", "Kcp08V05Limit_8", "Kcp08V05LimitSubCode_8", "Kcp08V05LimitIdent_9", "Kcp08V05Limit_9", "Kcp08V05LimitSubCode_9"}, new Type[]{int.class, int.class, short.class, java.math.BigDecimal.class, java.lang.String.class, short.class, java.math.BigDecimal.class, java.lang.String.class, short.class, java.math.BigDecimal.class, java.lang.String.class, short.class, java.math.BigDecimal.class, java.lang.String.class, short.class, java.math.BigDecimal.class, java.lang.String.class, short.class, java.math.BigDecimal.class, java.lang.String.class, short.class, java.math.BigDecimal.class, java.lang.String.class, short.class, java.math.BigDecimal.class, java.lang.String.class, short.class, java.math.BigDecimal.class, java.lang.String.class, short.class, java.math.BigDecimal.class, java.lang.String.class} ); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/fields/Field12.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.fields; 2 | 3 | import java.lang.reflect.Type; 4 | 5 | import cascading.tuple.Fields; 6 | 7 | public class Field12 extends Fields 8 | { 9 | 10 | private static final long serialVersionUID = -1L; 11 | 12 | public Field12() 13 | { 14 | super( new Comparable[]{"Kcp09V05NoOfLims", "Kcp09V05LimitIdent_0", "Kcp09V05Limit_0", "Kcp09V05LimitSubCode_0", "Kcp09V05LimitIdent_1", "Kcp09V05Limit_1", "Kcp09V05LimitSubCode_1", "Kcp09V05LimitIdent_2", "Kcp09V05Limit_2", "Kcp09V05LimitSubCode_2", "Kcp09V05LimitIdent_3", "Kcp09V05Limit_3", "Kcp09V05LimitSubCode_3", "Kcp09V05LimitIdent_4", "Kcp09V05Limit_4", "Kcp09V05LimitSubCode_4", "Kcp09V05LimitIdent_5", "Kcp09V05Limit_5", "Kcp09V05LimitSubCode_5", "Kcp09V05LimitIdent_6", "Kcp09V05Limit_6", "Kcp09V05LimitSubCode_6", "Kcp09V05LimitIdent_7", "Kcp09V05Limit_7", "Kcp09V05LimitSubCode_7", "Kcp09V05LimitIdent_8", "Kcp09V05Limit_8", "Kcp09V05LimitSubCode_8", "Kcp09V05LimitIdent_9", "Kcp09V05Limit_9", "Kcp09V05LimitSubCode_9"}, new Type[]{int.class, short.class, java.math.BigDecimal.class, java.lang.String.class, short.class, java.math.BigDecimal.class, java.lang.String.class, short.class, java.math.BigDecimal.class, java.lang.String.class, short.class, java.math.BigDecimal.class, java.lang.String.class, short.class, java.math.BigDecimal.class, java.lang.String.class, short.class, java.math.BigDecimal.class, java.lang.String.class, short.class, java.math.BigDecimal.class, java.lang.String.class, short.class, java.math.BigDecimal.class, java.lang.String.class, short.class, java.math.BigDecimal.class, java.lang.String.class, short.class, java.math.BigDecimal.class, java.lang.String.class} ); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/fields/Field17.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.fields; 2 | 3 | import java.lang.reflect.Type; 4 | 5 | import cascading.tuple.Fields; 6 | 7 | public class Field17 extends Fields 8 | { 9 | 10 | private static final long serialVersionUID = -1L; 11 | 12 | public Field17() 13 | { 14 | super( new Comparable[]{"Kcp83V05NoOfTiers", "Kcp83V05RewardTierNumber_0", "Kcp83V05RewardFromValue_0", "Kcp83V05RewardToValue_0", "Kcp83V05RewardTierNumber_1", "Kcp83V05RewardFromValue_1", "Kcp83V05RewardToValue_1", "Kcp83V05RewardTierNumber_2", "Kcp83V05RewardFromValue_2", "Kcp83V05RewardToValue_2", "Kcp83V05RewardTierNumber_3", "Kcp83V05RewardFromValue_3", "Kcp83V05RewardToValue_3", "Kcp83V05RewardTierNumber_4", "Kcp83V05RewardFromValue_4", "Kcp83V05RewardToValue_4", "Kcp83V05RewardTierNumber_5", "Kcp83V05RewardFromValue_5", "Kcp83V05RewardToValue_5"}, new Type[]{short.class, short.class, int.class, int.class, short.class, int.class, int.class, short.class, int.class, int.class, short.class, int.class, int.class, short.class, int.class, int.class, short.class, int.class, int.class} ); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/fields/Field2.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.fields; 2 | 3 | import java.lang.reflect.Type; 4 | 5 | import cascading.tuple.Fields; 6 | 7 | public class Field2 extends Fields 8 | { 9 | 10 | private static final long serialVersionUID = -1L; 11 | 12 | public Field2() 13 | { 14 | super( new Comparable[]{"BdfoRundate", "BdfoFileId", "BdfoCentreId", "BdfoSbiFileInd", "BdfoDenReturned"}, new Type[]{java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class} ); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/fields/Field20.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.fields; 2 | 3 | import java.lang.reflect.Type; 4 | 5 | import cascading.tuple.Fields; 6 | 7 | public class Field20 extends Fields 8 | { 9 | 10 | private static final long serialVersionUID = -1L; 11 | 12 | public Field20() 13 | { 14 | super( new Comparable[]{"Kcp96V05CutOffInd", "Kcp96V05NoOfTiers2", "Kcp96V05LimitTierNumber_0", "Kcp96V05XsLimitChangesInd_0", "Kcp96V05NoOfLimitChanges_0", "Kcp96V05LimitEffectiveDate_0_0", "Kcp96V05TierUpperLimit_0_0", "Kcp96V05LimitEffectiveDate_0_1", "Kcp96V05TierUpperLimit_0_1", "Kcp96V05LimitEffectiveDate_0_2", "Kcp96V05TierUpperLimit_0_2", "Kcp96V05LimitEffectiveDate_0_3", "Kcp96V05TierUpperLimit_0_3", "Kcp96V05LimitTierNumber_1", "Kcp96V05XsLimitChangesInd_1", "Kcp96V05NoOfLimitChanges_1", "Kcp96V05LimitEffectiveDate_1_0", "Kcp96V05TierUpperLimit_1_0", "Kcp96V05LimitEffectiveDate_1_1", "Kcp96V05TierUpperLimit_1_1", "Kcp96V05LimitEffectiveDate_1_2", "Kcp96V05TierUpperLimit_1_2", "Kcp96V05LimitEffectiveDate_1_3", "Kcp96V05TierUpperLimit_1_3", "Kcp96V05LimitTierNumber_2", "Kcp96V05XsLimitChangesInd_2", "Kcp96V05NoOfLimitChanges_2", "Kcp96V05LimitEffectiveDate_2_0", "Kcp96V05TierUpperLimit_2_0", "Kcp96V05LimitEffectiveDate_2_1", "Kcp96V05TierUpperLimit_2_1", "Kcp96V05LimitEffectiveDate_2_2", "Kcp96V05TierUpperLimit_2_2", "Kcp96V05LimitEffectiveDate_2_3", "Kcp96V05TierUpperLimit_2_3"}, new Type[]{java.lang.String.class, short.class, short.class, java.lang.String.class, int.class, java.lang.String.class, int.class, java.lang.String.class, int.class, java.lang.String.class, int.class, java.lang.String.class, int.class, short.class, java.lang.String.class, int.class, java.lang.String.class, int.class, java.lang.String.class, int.class, java.lang.String.class, int.class, java.lang.String.class, int.class, short.class, java.lang.String.class, int.class, java.lang.String.class, int.class, java.lang.String.class, int.class, java.lang.String.class, int.class, java.lang.String.class, int.class} ); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/fields/Field3.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.fields; 2 | 3 | import java.lang.reflect.Type; 4 | 5 | import cascading.tuple.Fields; 6 | 7 | public class Field3 extends Fields 8 | { 9 | 10 | private static final long serialVersionUID = -1L; 11 | 12 | public Field3() 13 | { 14 | super( new Comparable[]{"BdfoFileTally", "BdfoFileHash", "BdfoNumAccountsSelected"}, new Type[]{int.class, int.class, int.class} ); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/fields/Field4.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.fields; 2 | 3 | import java.lang.reflect.Type; 4 | 5 | import cascading.tuple.Fields; 6 | 7 | public class Field4 extends Fields 8 | { 9 | 10 | private static final long serialVersionUID = -1L; 11 | 12 | public Field4() 13 | { 14 | super( new Comparable[]{"Ogp03TaxReliefTypeInd", "Ogp03Earner", "Ogp03TaxcertHeld", "Ogp03VatMarker", "Ogp03PartiesToAccount", "Ogp03IntCertIss", "Ogp03OresCode"}, new Type[]{short.class, short.class, java.lang.String.class, short.class, short.class, short.class, short.class} ); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/fields/Field5.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.fields; 2 | 3 | import java.lang.reflect.Type; 4 | 5 | import cascading.tuple.Fields; 6 | 7 | public class Field5 extends Fields 8 | { 9 | 10 | private static final long serialVersionUID = -1L; 11 | 12 | public Field5() 13 | { 14 | super( new Comparable[]{"Ogp04LbloanMat", "Ogp04Repamt", "Ogp04Repfreq", "Ogp04Repdte", "Ogp04Reptyp", "Ogp04Borrow", "Ogp04Amtsanc", "Ogp04MirasDate"}, new Type[]{java.lang.String.class, java.math.BigDecimal.class, short.class, java.lang.String.class, short.class, short.class, java.math.BigDecimal.class, java.lang.String.class} ); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/fields/Field6.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.fields; 2 | 3 | import java.lang.reflect.Type; 4 | 5 | import cascading.tuple.Fields; 6 | 7 | public class Field6 extends Fields 8 | { 9 | 10 | private static final long serialVersionUID = -1L; 11 | 12 | public Field6() 13 | { 14 | super( new Comparable[]{"Ogp06FhReferStreamNo", "Ogp06ReferDueDate", "Ogp06Refind", "Ogp06ReferReason", "Ogp06ReferReasonDesc", "Ogp06ReferMonthDay", "Ogp06ReferFreq", "Ogp06ReferFreqDaysDue_0", "Ogp06ReferFreqDaysDue_1", "Ogp06ReferFreqDaysDue_2", "Ogp06ReferFreqDaysDue_3", "Ogp06ReferFreqDaysDue_4"}, new Type[]{short.class, java.lang.String.class, short.class, short.class, java.lang.String.class, short.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class} ); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/fields/Field8.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.fields; 2 | 3 | import java.lang.reflect.Type; 4 | 5 | import cascading.tuple.Fields; 6 | 7 | public class Field8 extends Fields 8 | { 9 | 10 | private static final long serialVersionUID = -1L; 11 | 12 | public Field8() 13 | { 14 | super( new Comparable[]{"Kcp02V05Status", "Kcp02V05Opdate", "Kcp02V05Cldate", "Kcp02V05Chdate", "Kcp02V05ReopenDate", "Kcp02V05TransferDate", "Kcp02V05BadDoubt", "Kcp02V05OpenPrimeRc", "Kcp02V05OpenSupplemRc", "Kcp02V05FromFinInstRef", "Kcp02V05FromFinInstScode", "Kcp02V05ClosePrimeRc", "Kcp02V05CloseSupplemRc", "Kcp02V05ToFinInstRef", "Kcp02V05ToFinInstSortCode", "Kcp02V05TransferToSortCode", "Kcp02V05TransfrToAccNumber", "Kcp02V05TransfFromSortCode", "Kcp02V05TransferFromAccNum", "Kcp02V05NewChangeDate", "Kcp02V05OldChangeDate", "Kcp02V05MergeIndicator", "Kcp02V05DormancyLastUpdate", "Kcp02V05DormancyInd"}, new Type[]{short.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, short.class, short.class, short.class, int.class, long.class, short.class, short.class, int.class, long.class, long.class, long.class, long.class, long.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, short.class} ); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/scheme/CopybookSourceContext.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.scheme; 2 | 3 | import java.util.Map; 4 | import java.util.Map.Entry; 5 | 6 | import cascading.legstar.cobolcopybook.transform.TupleEntryCobolTransformer; 7 | import cascading.tuple.Fields; 8 | import cascading.tuple.TupleEntry; 9 | import com.google.common.collect.Maps; 10 | 11 | /** 12 | * During the course of the {@link CopybookScheme} execution, this will hold the 13 | * context in a threadsafe fashion. 14 | */ 15 | public class CopybookSourceContext 16 | { 17 | 18 | /** 19 | * A helper for cobol to tuple conversions. 20 | */ 21 | private final TupleEntryCobolTransformer transformer = new TupleEntryCobolTransformer(); 22 | 23 | /** 24 | * A tuple entry for common data record. 25 | */ 26 | private final TupleEntry commonDataTupleEntry; 27 | /** 28 | * Associates a sub record with a tuple entry. 29 | */ 30 | private final Map tupleEntries = Maps.newLinkedHashMap(); 31 | 32 | public CopybookSourceContext( CopybookConfig config ) 33 | { 34 | 35 | commonDataTupleEntry = new TupleEntry( config.getCommonDataFields() ); 36 | 37 | for( Entry entry : config.getFields().entrySet() ) 38 | { 39 | tupleEntries.put( entry.getKey(), new TupleEntry( entry.getValue() ) ); 40 | } 41 | 42 | } 43 | 44 | public TupleEntry getCommonDataTupleEntry() 45 | { 46 | return commonDataTupleEntry; 47 | } 48 | 49 | public Map getTupleEntries() 50 | { 51 | return tupleEntries; 52 | } 53 | 54 | public TupleEntryCobolTransformer getTransformer() 55 | { 56 | return transformer; 57 | } 58 | 59 | } 60 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/translate/Cob2FieldsException.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.translate; 2 | 3 | import java.io.IOException; 4 | 5 | public class Cob2FieldsException extends IOException 6 | { 7 | 8 | private static final long serialVersionUID = 4656496860697582974L; 9 | 10 | public Cob2FieldsException( final String message ) 11 | { 12 | super( message ); 13 | } 14 | 15 | public Cob2FieldsException( final String message, Throwable cause ) 16 | { 17 | super( message, cause ); 18 | } 19 | 20 | public Cob2FieldsException( Throwable cause ) 21 | { 22 | super( cause ); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/java/cascading/legstar/cobolcopybook/translate/Cob2FieldsNames.java: -------------------------------------------------------------------------------- 1 | package cascading.legstar.cobolcopybook.translate; 2 | 3 | import java.util.HashSet; 4 | import java.util.Set; 5 | 6 | public class Cob2FieldsNames 7 | { 8 | 9 | /** 10 | * Contextual prefix to uniquely identify a map entry (used for name 11 | * conflict resolution) 12 | */ 13 | private String parentHierarchy = ""; 14 | 15 | /** 16 | * List of unique labels for conflict resolution. 17 | */ 18 | private Set uniqueNames = new HashSet(); 19 | 20 | public String upHierarchy( String name ) 21 | { 22 | String prevPrefix = parentHierarchy; 23 | parentHierarchy = parentHierarchy + "_" + name; 24 | return prevPrefix; 25 | } 26 | 27 | public void setHierarchy( String name ) 28 | { 29 | parentHierarchy = name; 30 | } 31 | 32 | /** 33 | * Creates a unique name based on a proposed name. 34 | *

35 | * The proposed name is as simple as possible but we need to avoid any name 36 | * conflicts (a column must have a unique name) so we check for any conflict 37 | * and use a prefix system to disambiguate names. 38 | *

39 | * It is assumed the same name cannot occur twice at the same hierarchical level. 40 | * 41 | * @param proposedName the proposed name 42 | * @return a unique name for a column 43 | */ 44 | public String getUniqueName( final String proposedName ) 45 | { 46 | 47 | String uniqueName = proposedName; 48 | 49 | if( uniqueNames.contains( proposedName ) ) 50 | { 51 | String[] prefixes = parentHierarchy.split( "_" ); 52 | int pos = prefixes.length - 1; 53 | 54 | while( uniqueNames.contains( uniqueName ) && pos > -1 ) 55 | { 56 | uniqueName = prefixes[ pos ] + '_' + uniqueName; 57 | pos--; 58 | } 59 | } 60 | 61 | uniqueNames.add( uniqueName ); 62 | 63 | return uniqueName; 64 | 65 | } 66 | 67 | } 68 | -------------------------------------------------------------------------------- /cascading-copybook/src/main/resources/cascading/legstar/cobolcopybook/translate/fields.java.template: -------------------------------------------------------------------------------- 1 | package {{package_name}}; 2 | 3 | import java.lang.reflect.Type; 4 | 5 | import cascading.tuple.Fields; 6 | 7 | public class {{class_name}} extends Fields { 8 | 9 | private static final long serialVersionUID = -1L; 10 | 11 | public {{class_name}}() { 12 | super( 13 | new Comparable[] { 14 | {{~#each field_names}} 15 | {{#if @index}}, {{/if}}"{{this}}"{{/each}} 16 | }, new Type[] { 17 | {{~#each field_types}} 18 | {{#if @index}}, {{/if}}{{this}}.class{{/each}} 19 | } 20 | ); 21 | } 22 | 23 | } -------------------------------------------------------------------------------- /cascading-copybook/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | # Sets the debug level and appender name 2 | log4j.rootLogger=INFO, A1 3 | 4 | # Sets the primary handler to be one that writes to a console 5 | log4j.appender.A1=org.apache.log4j.ConsoleAppender 6 | 7 | # Sets the primary handler to be one that writes formatted output 8 | log4j.appender.A1.layout=org.apache.log4j.PatternLayout 9 | log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n 10 | 11 | # Filter out packages 12 | log4j.logger.com.legstar=INFO 13 | 14 | -------------------------------------------------------------------------------- /cascading-hive/build.gradle: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007-2015 Concurrent, Inc. All Rights Reserved. 3 | * 4 | * Project and contact information: http://www.cascading.org/ 5 | * 6 | * This file is part of the Cascading project. 7 | * 8 | * Licensed under the Apache License, Version 2.0 (the "License"); 9 | * you may not use this file except in compliance with the License. 10 | * You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, software 15 | * distributed under the License is distributed on an "AS IS" BASIS, 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | * See the License for the specific language governing permissions and 18 | * limitations under the License. 19 | */ 20 | 21 | 22 | apply plugin: 'java' 23 | apply plugin: 'idea' 24 | apply plugin: 'eclipse' 25 | 26 | buildscript { 27 | repositories { 28 | jcenter() 29 | mavenLocal() 30 | mavenCentral() 31 | maven { url 'http://conjars.org/repo/' } 32 | } 33 | } 34 | 35 | 36 | -------------------------------------------------------------------------------- /cascading-hive/part1/LICENSE.txt: -------------------------------------------------------------------------------- 1 | 2 | License: 3 | 4 | Copyright (c) 2007-2015 Concurrent, Inc. All Rights Reserved. 5 | 6 | Project and contact information: http://www.cascading.org/ 7 | 8 | This file is part of the Cascading project. 9 | 10 | Licensed under the Apache License, Version 2.0 (the "License"); 11 | you may not use this file except in compliance with the License. 12 | You may obtain a copy of the License at 13 | 14 | http://www.apache.org/licenses/LICENSE-2.0 15 | 16 | Unless required by applicable law or agreed to in writing, software 17 | distributed under the License is distributed on an "AS IS" BASIS, 18 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | See the License for the specific language governing permissions and 20 | limitations under the License. 21 | 22 | Third-party Licenses: 23 | 24 | All third-party dependencies are listed in the build.gradle files. 25 | -------------------------------------------------------------------------------- /cascading-hive/part2/LICENSE.txt: -------------------------------------------------------------------------------- 1 | 2 | License: 3 | 4 | Copyright (c) 2007-2015 Concurrent, Inc. All Rights Reserved. 5 | 6 | Project and contact information: http://www.cascading.org/ 7 | 8 | This file is part of the Cascading project. 9 | 10 | Licensed under the Apache License, Version 2.0 (the "License"); 11 | you may not use this file except in compliance with the License. 12 | You may obtain a copy of the License at 13 | 14 | http://www.apache.org/licenses/LICENSE-2.0 15 | 16 | Unless required by applicable law or agreed to in writing, software 17 | distributed under the License is distributed on an "AS IS" BASIS, 18 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | See the License for the specific language governing permissions and 20 | limitations under the License. 21 | 22 | Third-party Licenses: 23 | 24 | All third-party dependencies are listed in the build.gradle files. 25 | -------------------------------------------------------------------------------- /cascading-hive/part3/LICENSE.txt: -------------------------------------------------------------------------------- 1 | 2 | License: 3 | 4 | Copyright (c) 2007-2015 Concurrent, Inc. All Rights Reserved. 5 | 6 | Project and contact information: http://www.cascading.org/ 7 | 8 | This file is part of the Cascading project. 9 | 10 | Licensed under the Apache License, Version 2.0 (the "License"); 11 | you may not use this file except in compliance with the License. 12 | You may obtain a copy of the License at 13 | 14 | http://www.apache.org/licenses/LICENSE-2.0 15 | 16 | Unless required by applicable law or agreed to in writing, software 17 | distributed under the License is distributed on an "AS IS" BASIS, 18 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 | See the License for the specific language governing permissions and 20 | limitations under the License. 21 | 22 | Third-party Licenses: 23 | 24 | All third-party dependencies are listed in the build.gradle files. 25 | -------------------------------------------------------------------------------- /cascading-hive/settings.gradle: -------------------------------------------------------------------------------- 1 | include 'part1' 2 | include 'part2' 3 | include 'part3' 4 | 5 | rootProject.name = 'cascading-hive' 6 | -------------------------------------------------------------------------------- /cascading-hive/src/asciidoc/images/part1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/cascading-hive/src/asciidoc/images/part1.png -------------------------------------------------------------------------------- /cascading-hive/src/asciidoc/images/part2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/cascading-hive/src/asciidoc/images/part2.png -------------------------------------------------------------------------------- /cascading-hive/src/asciidoc/images/part3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/cascading-hive/src/asciidoc/images/part3.png -------------------------------------------------------------------------------- /cascading-hive/src/asciidoc/index.adoc: -------------------------------------------------------------------------------- 1 | = Java Developers Guide to Hive with Cascading 2 | 3 | Welcome to the Java Developer's Guide to using https://hive.apache.org/[Apache Hive] with http://www.cascading.org/[Cascading], 4 | a tutorial that will take you through implementing Apache Hive workflows within Cascading Flows and Cascades. 5 | 6 | The coding examples in each part refers to a commonly-used operation in ETL, 7 | and can be referred directly; you do not need to complete previous parts to 8 | use a given example. 9 | 10 | Also, while we give references to http://docs.cascading.org/cascading/3.0/userguide/[Cascading Users Guide] 11 | for the APIs used to implement these tasks, this tutorial is not intended to 12 | serve as an introduction to Cascading. For that, we recommend that you follow 13 | the http://docs.cascading.org/impatient[Cascading for the Impatient] tutorial. 14 | 15 | If you have a question or run into any problems send an email to 16 | the https://groups.google.com/forum/#!forum/cascading-user[cascading-user-list]. 17 | 18 | This tutorial discusses the following topics, which include exercises and links to resource material: 19 | 20 | == link:prerequisites.html[Prerequisites] 21 | * Install Hive, Cascading-Hive, Driven, Gradle, IDE and other software for running the tutorial. Download the sample data 22 | used in the tutorial from http://files.cascading.org/. 23 | 24 | == link:part1.html[Part 1: File Copy] 25 | * Simple application that copies a file from HDFS to Hive 26 | * Creates an Hfs tap and HiveTap 27 | * Automatically creates new Hive table based on HiveTableDescriptor 28 | * Prints HQL query results to console 29 | 30 | == link:part2.html[Part 2: Intro to HiveFlow] 31 | * Create several Hive taps and tables 32 | * Filter out unwanted fields 33 | * Create and run several HQL queries within a Cascading HiveFlow 34 | 35 | == link:part3.html[Part 3: Hive flows within a Cascade] 36 | * Filters data to exclude it from processing (bad or unwanted data) 37 | * Performs several hashjoins, cogroups, functions 38 | * Links several flows (both Cascading and Hive) into one Cascade 39 | * Implements a standard TPC-DS workflow 40 | 41 | == Next: 42 | link:prerequisites.html[Checking for Prerequisites] 43 | -------------------------------------------------------------------------------- /cascading-mr/build.gradle: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007-2015 Concurrent, Inc. All Rights Reserved. 3 | * 4 | * Project and contact information: http://www.cascading.org/ 5 | * 6 | * This file is part of the Cascading project. 7 | * 8 | * Licensed under the Apache License, Version 2.0 (the "License"); 9 | * you may not use this file except in compliance with the License. 10 | * You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, software 15 | * distributed under the License is distributed on an "AS IS" BASIS, 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | * See the License for the specific language governing permissions and 18 | * limitations under the License. 19 | */ 20 | 21 | apply plugin: 'java' 22 | apply plugin: 'idea' 23 | apply plugin: 'eclipse' 24 | apply plugin: 'provided-base' 25 | 26 | ext.cascadingVersion = '3.0.0' 27 | ext.hadoop2Version = '2.6.0' 28 | 29 | buildscript { 30 | repositories { 31 | maven { url 'http://repo.spring.io/plugins-release' } 32 | } 33 | dependencies { 34 | classpath 'com.netflix.nebula:gradle-extra-configurations-plugin:2.2.1' 35 | } 36 | } 37 | 38 | dependencies { 39 | compile( group: 'cascading', name: 'cascading-core', version: cascadingVersion ) 40 | compile( group: 'cascading', name: 'cascading-local', version: cascadingVersion ) 41 | compile( group: 'cascading', name: 'cascading-hadoop2-mr1', version: cascadingVersion ) 42 | 43 | provided( group: 'org.apache.hadoop', name: 'hadoop-common', version: hadoop2Version ) 44 | provided( group: 'org.apache.hadoop', name: 'hadoop-client', version: hadoop2Version ) 45 | provided( group: 'org.apache.hadoop', name: 'hadoop-mapreduce-client-core', version: hadoop2Version ) 46 | } 47 | 48 | jar { 49 | description = "Assembles a Hadoop ready jar file" 50 | doFirst { 51 | into( 'lib' ) { 52 | from { configurations.compile.minus( [configurations.provided] ) } 53 | } 54 | } 55 | 56 | manifest { 57 | attributes( "Main-Class": "mr/WordCount" ) 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /cascading-sqoop-example/build.gradle: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007-2015 Concurrent, Inc. All Rights Reserved. 3 | * 4 | * Project and contact information: http://www.cascading.org/ 5 | * 6 | * This file is part of the Cascading project. 7 | * 8 | * Licensed under the Apache License, Version 2.0 (the "License"); 9 | * you may not use this file except in compliance with the License. 10 | * You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, software 15 | * distributed under the License is distributed on an "AS IS" BASIS, 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | * See the License for the specific language governing permissions and 18 | * limitations under the License. 19 | */ 20 | 21 | 22 | apply plugin: 'java' 23 | apply plugin: 'idea' 24 | apply plugin: 'eclipse' 25 | 26 | buildscript { 27 | repositories { 28 | jcenter() 29 | mavenCentral() 30 | maven { url 'http://conjars.org/repo/' } 31 | } 32 | 33 | dependencies { 34 | classpath 'concurrentinc:cascading-asciidoc:1.1.0' 35 | classpath 'com.netflix.nebula:gradle-extra-configurations-plugin:2.2.+' 36 | } 37 | 38 | } 39 | 40 | subprojects { 41 | apply plugin: 'java' 42 | apply plugin: 'maven' 43 | apply plugin: 'provided-base' 44 | } 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /cascading-sqoop-example/part1/LICENSE.txt: -------------------------------------------------------------------------------- 1 | License: 2 | 3 | Copyright (c) 2007-2015 Concurrent, Inc. All Rights Reserved. 4 | 5 | Project and contact information: http://www.cascading.org/ 6 | 7 | This file is part of the Cascading project. 8 | 9 | Licensed under the Apache License, Version 2.0 (the "License"); 10 | you may not use this file except in compliance with the License. 11 | You may obtain a copy of the License at 12 | 13 | http://www.apache.org/licenses/LICENSE-2.0 14 | 15 | Unless required by applicable law or agreed to in writing, software 16 | distributed under the License is distributed on an "AS IS" BASIS, 17 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | See the License for the specific language governing permissions and 19 | limitations under the License. 20 | 21 | Third-party Licenses: 22 | 23 | All third-party dependencies are listed in the build.gradle files. 24 | -------------------------------------------------------------------------------- /cascading-sqoop-example/part1/data/hello.txt: -------------------------------------------------------------------------------- 1 | id name rating 2 | 11111 joe 0.8 3 | 22222 bob 0.4 4 | 33333 jane 0.6 5 | -------------------------------------------------------------------------------- /cascading-sqoop-example/settings.gradle: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007-2015 Concurrent, Inc. All Rights Reserved. 3 | * 4 | * Project and contact information: http://www.cascading.org/ 5 | * 6 | * This file is part of the Cascading project. 7 | * 8 | * Licensed under the Apache License, Version 2.0 (the "License"); 9 | * you may not use this file except in compliance with the License. 10 | * You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, software 15 | * distributed under the License is distributed on an "AS IS" BASIS, 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | * See the License for the specific language governing permissions and 18 | * limitations under the License. 19 | */ 20 | 21 | include 'part1' 22 | 23 | rootProject.name = 'cascading-sqoop-example' 24 | 25 | -------------------------------------------------------------------------------- /cascading-sqoop-example/src/asciidoc/images/001.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/cascading-sqoop-example/src/asciidoc/images/001.png -------------------------------------------------------------------------------- /cascading-sqoop-example/src/asciidoc/images/002.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/cascading-sqoop-example/src/asciidoc/images/002.png -------------------------------------------------------------------------------- /cascading-sqoop-example/src/asciidoc/images/003.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/cascading-sqoop-example/src/asciidoc/images/003.png -------------------------------------------------------------------------------- /cascading-sqoop-example/src/asciidoc/images/004.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/cascading-sqoop-example/src/asciidoc/images/004.png -------------------------------------------------------------------------------- /cascading-sqoop-example/src/asciidoc/images/005.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/cascading-sqoop-example/src/asciidoc/images/005.png -------------------------------------------------------------------------------- /cascading-sqoop-example/src/asciidoc/images/006.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/cascading-sqoop-example/src/asciidoc/images/006.png -------------------------------------------------------------------------------- /cascading-sqoop-example/src/asciidoc/images/007.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/cascading-sqoop-example/src/asciidoc/images/007.png -------------------------------------------------------------------------------- /cascading-sqoop-example/src/asciidoc/images/008.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/cascading-sqoop-example/src/asciidoc/images/008.png -------------------------------------------------------------------------------- /cascading-sqoop-example/src/asciidoc/images/009.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/cascading-sqoop-example/src/asciidoc/images/009.png -------------------------------------------------------------------------------- /etc/properties.gradle: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007-2015 Concurrent, Inc. All Rights Reserved. 3 | * 4 | * Project and contact information: http://www.cascading.org/ 5 | * 6 | * This file is part of the Cascading project. 7 | * 8 | * Licensed under the Apache License, Version 2.0 (the "License"); 9 | * you may not use this file except in compliance with the License. 10 | * You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, software 15 | * distributed under the License is distributed on an "AS IS" BASIS, 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | * See the License for the specific language governing permissions and 18 | * limitations under the License. 19 | */ 20 | 21 | if( project.properties[ 'teamcity' ] ) // make them system properties 22 | System.properties.putAll( project.properties[ 'teamcity' ] ) 23 | 24 | if( System.properties[ 'aws.properties' ] ) 25 | { 26 | file( System.properties[ 'aws.properties' ] ).withReader { reader -> 27 | def awsProperties = new Properties() 28 | awsProperties.load( reader ) 29 | System.properties.putAll( awsProperties ) 30 | } 31 | } 32 | 33 | if( System.properties[ 'publish.repo.url' ] ) repoUrl = System.properties[ 'publish.repo.url' ] 34 | 35 | ext.awsAccessId = System.properties[ 'publish.aws.accessId' ] 36 | ext.awsSecretKey = System.properties[ 'publish.aws.secretKey' ] 37 | ext.s3BucketDocs = System.properties[ 'publish.docs.bucket' ] 38 | -------------------------------------------------------------------------------- /etc/s3Upload.gradle: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007-2015 Concurrent, Inc. All Rights Reserved. 3 | * 4 | * Project and contact information: http://www.cascading.org/ 5 | * 6 | * This file is part of the Cascading project. 7 | * 8 | * Licensed under the Apache License, Version 2.0 (the "License"); 9 | * you may not use this file except in compliance with the License. 10 | * You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, software 15 | * distributed under the License is distributed on an "AS IS" BASIS, 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | * See the License for the specific language governing permissions and 18 | * limitations under the License. 19 | */ 20 | 21 | apply from: "${rootDir}/etc/properties.gradle" 22 | 23 | import com.monochromeroad.gradle.plugin.aws.s3.S3Sync 24 | import com.monochromeroad.gradle.plugin.aws.s3.ACL 25 | 26 | buildscript { 27 | repositories { 28 | mavenLocal() 29 | mavenCentral() 30 | maven { url 'http://repository-monochromeroad.forge.cloudbees.com/release/' } 31 | maven { url 'http://conjars.org/repo/' } 32 | } 33 | dependencies { 34 | classpath 'com.monochromeroad.gradle:gradle-aws-s3-sync:0.5' 35 | } 36 | } 37 | 38 | // docs always publish in project root, do need a qualifier like 'javadoc' added 39 | task s3UploadDocs( type: S3Sync ) { 40 | 41 | accessKey = rootProject.awsAccessId 42 | secretKey = rootProject.awsSecretKey 43 | 44 | keepFiles = true // prevents deletion from bucket 45 | 46 | acl ACL.PublicRead 47 | 48 | configFile "${rootProject.projectDir}/etc/synchronizer.properties" 49 | 50 | ext.source = "${buildDir}/documentation" 51 | 52 | ext.destination = "${project.s3BucketDocs}/${rootProject.name}/" 53 | 54 | from source 55 | into destination 56 | } 57 | 58 | task s3Upload( dependsOn: s3UploadDocs ) { 59 | 60 | } 61 | -------------------------------------------------------------------------------- /etc/synchronizer.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (c) 2007-2015 Concurrent, Inc. All Rights Reserved. 3 | # 4 | # Project and contact information: http://www.cascading.org/ 5 | # 6 | # This file is part of the Cascading project. 7 | # 8 | # Licensed under the Apache License, Version 2.0 (the "License"); 9 | # you may not use this file except in compliance with the License. 10 | # You may obtain a copy of the License at 11 | # 12 | # http://www.apache.org/licenses/LICENSE-2.0 13 | # 14 | # Unless required by applicable law or agreed to in writing, software 15 | # distributed under the License is distributed on an "AS IS" BASIS, 16 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | # See the License for the specific language governing permissions and 18 | # limitations under the License. 19 | # 20 | 21 | # see http://jets3t.s3.amazonaws.com/toolkit/configuration.html 22 | 23 | #s3service.default-bucket-location=Tokyo 24 | # httpclient.max-connections=2 25 | # threaded-service.admin-max-thread-count=5 26 | 27 | ### 28 | # File/Object comparison properties 29 | ### 30 | 31 | filecomparer.skip-symlinks=true 32 | #filecomparer.use-md5-files=true 33 | #filecomparer.generate-md5-files=true 34 | #filecomparer.md5-files-root-dir=.cache 35 | filecomparer.skip-upload-of-md5-files=true 36 | filecomparer.assume-local-latest-in-mismatch=false 37 | 38 | # Page Caching - none 39 | upload.metadata.Cache-Control=no-cache 40 | 41 | upload.transformed-files-batch-size=1000 42 | -------------------------------------------------------------------------------- /etl-log/README.md: -------------------------------------------------------------------------------- 1 | ## Java Developer's Guide to ETL 2 | 3 | Welcome to the Java Developer's Guide to ETL, a tutorial that will take you 4 | through implementing the commonly-operated ETL tasks with Cascading. 5 | 6 | The coding examples in each part refers to a commonly-used operation in ETL, 7 | and can be referred directly; you do not need to complete previous parts to 8 | use a given example. 9 | 10 | Also, while we give references to [Cascading Users Guide](http://docs.cascading.org/cascading/3.0/userguide/) 11 | for the APIs used to implement the ETL tasks, this tutorial is not intended to 12 | serve as an introduction to Cascading. For that, we recommend that you follow 13 | the [Cascading for the Impatient](http://docs.cascading.org/impatient) tutorial. 14 | 15 | If you have a question or run into any problems send an email to 16 | the [cascading-user-list](https://groups.google.com/forum/#!forum/cascading-user). 17 | 18 | ### Introduction 19 | * Discusses key evaluation criteria for deciding your ETL strategy 20 | * Explains basic Cascading concepts 21 | * Evaluates Cascading and Driven as a framework for implementing ETL applications 22 | 23 | ### Prerequisites 24 | * Installing Driven, gradle, IDE and other software for running the tutorial 25 | 26 | ### File copy 27 | * Simplest ETL application that copies a file from one location to another 28 | * Filters data to exclude it from processing (bad data) 29 | * Specifies output format (tab delimited) 30 | * Bins data based on date ranges 31 | 32 | ### Filters 33 | * Separate unwanted data and store it to a different file for separate analysis 34 | * Implement in-line data quality checks 35 | * Perform different processing logic based on content 36 | 37 | ### Merge 38 | * Merge records from multiple input files (using MultiSourceTap) 39 | 40 | ### Count 41 | * Count number of unique records 42 | * Report "Top xx" occurences 43 | 44 | ### Moving averages 45 | * Implement advanced aggregation techniques using Cascading GroupBy() 46 | 47 | ### Joins 48 | * Split pipe into different branches based on data content 49 | * Perform different processing on each branch 50 | * Join the branches using Cascading's HashJoin() 51 | 52 | -------------------------------------------------------------------------------- /etl-log/build.gradle: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007-2015 Concurrent, Inc. All Rights Reserved. 3 | * 4 | * Project and contact information: http://www.cascading.org/ 5 | * 6 | * This file is part of the Cascading project. 7 | * 8 | * Licensed under the Apache License, Version 2.0 (the "License"); 9 | * you may not use this file except in compliance with the License. 10 | * You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, software 15 | * distributed under the License is distributed on an "AS IS" BASIS, 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | * See the License for the specific language governing permissions and 18 | * limitations under the License. 19 | */ 20 | 21 | 22 | apply plugin: 'java' 23 | apply plugin: 'idea' 24 | apply plugin: 'eclipse' 25 | 26 | buildscript { 27 | repositories { 28 | jcenter() 29 | mavenLocal() 30 | mavenCentral() 31 | maven { url 'http://conjars.org/repo/' } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /etl-log/part6/README: -------------------------------------------------------------------------------- 1 | To build: 2 | 3 | $ cd part6 4 | $ gradle clean fatjar 5 | 6 | To run: 7 | 8 | $ java -cp './build/libs/etl-fat.jar' etl.Main ../data/NASA_access_log_Aug95_head_5k.txt ../data/GeoIPCountryWhoisQuoteCleansed.csv output/out.txt 9 | 10 | -------------------------------------------------------------------------------- /etl-log/settings.gradle: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007-2015 Concurrent, Inc. All Rights Reserved. 3 | * 4 | * Project and contact information: http://www.cascading.org/ 5 | * 6 | * This file is part of the Cascading project. 7 | * 8 | * Licensed under the Apache License, Version 2.0 (the "License"); 9 | * you may not use this file except in compliance with the License. 10 | * You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, software 15 | * distributed under the License is distributed on an "AS IS" BASIS, 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | * See the License for the specific language governing permissions and 18 | * limitations under the License. 19 | */ 20 | 21 | include 'part1' 22 | include 'part2' 23 | include 'part3' 24 | include 'part4' 25 | include 'part5' 26 | include 'part6' 27 | include 'etl-log-docs' 28 | 29 | rootProject.name = 'etl-log' 30 | -------------------------------------------------------------------------------- /etl-log/src/asciidoc/images/driven-part2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/etl-log/src/asciidoc/images/driven-part2.png -------------------------------------------------------------------------------- /etl-log/src/asciidoc/images/driven-part4-b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/etl-log/src/asciidoc/images/driven-part4-b.png -------------------------------------------------------------------------------- /etl-log/src/asciidoc/images/driven1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/etl-log/src/asciidoc/images/driven1.png -------------------------------------------------------------------------------- /etl-log/src/asciidoc/images/etl-part-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/etl-log/src/asciidoc/images/etl-part-1.png -------------------------------------------------------------------------------- /etl-log/src/asciidoc/images/etl-part-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/etl-log/src/asciidoc/images/etl-part-2.png -------------------------------------------------------------------------------- /etl-log/src/asciidoc/images/etl-part-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/etl-log/src/asciidoc/images/etl-part-3.png -------------------------------------------------------------------------------- /etl-log/src/asciidoc/images/etl-part-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/etl-log/src/asciidoc/images/etl-part-4.png -------------------------------------------------------------------------------- /etl-log/src/asciidoc/images/etl-part-4b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/etl-log/src/asciidoc/images/etl-part-4b.png -------------------------------------------------------------------------------- /etl-log/src/asciidoc/images/etl-part-5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/etl-log/src/asciidoc/images/etl-part-5.png -------------------------------------------------------------------------------- /etl-log/src/asciidoc/images/etl-part-6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/etl-log/src/asciidoc/images/etl-part-6.png -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sun Jul 05 15:50:52 PDT 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.2-bin.zip 7 | -------------------------------------------------------------------------------- /lingual-hbase/build.gradle: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007-2015 Concurrent, Inc. All Rights Reserved. 3 | * 4 | * Project and contact information: http://www.cascading.org/ 5 | * 6 | * This file is part of the Cascading project. 7 | * 8 | * Licensed under the Apache License, Version 2.0 (the "License"); 9 | * you may not use this file except in compliance with the License. 10 | * You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, software 15 | * distributed under the License is distributed on an "AS IS" BASIS, 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | * See the License for the specific language governing permissions and 18 | * limitations under the License. 19 | */ 20 | -------------------------------------------------------------------------------- /lingual-oracle/build.gradle: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007-2015 Concurrent, Inc. All Rights Reserved. 3 | * 4 | * Project and contact information: http://www.cascading.org/ 5 | * 6 | * This file is part of the Cascading project. 7 | * 8 | * Licensed under the Apache License, Version 2.0 (the "License"); 9 | * you may not use this file except in compliance with the License. 10 | * You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, software 15 | * distributed under the License is distributed on an "AS IS" BASIS, 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | * See the License for the specific language governing permissions and 18 | * limitations under the License. 19 | */ 20 | -------------------------------------------------------------------------------- /lingual-oracle/src/site/images/HR_Schema.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/lingual-oracle/src/site/images/HR_Schema.png -------------------------------------------------------------------------------- /pattern/build.gradle: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007-2015 Concurrent, Inc. All Rights Reserved. 3 | * 4 | * Project and contact information: http://www.cascading.org/ 5 | * 6 | * This file is part of the Cascading project. 7 | * 8 | * Licensed under the Apache License, Version 2.0 (the "License"); 9 | * you may not use this file except in compliance with the License. 10 | * You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, software 15 | * distributed under the License is distributed on an "AS IS" BASIS, 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | * See the License for the specific language governing permissions and 18 | * limitations under the License. 19 | */ 20 | -------------------------------------------------------------------------------- /pattern/src/asciidoc/images/enterprise.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/pattern/src/asciidoc/images/enterprise.png -------------------------------------------------------------------------------- /pattern/src/asciidoc/images/github.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/pattern/src/asciidoc/images/github.png -------------------------------------------------------------------------------- /pattern/src/asciidoc/images/r-studio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/pattern/src/asciidoc/images/r-studio.png -------------------------------------------------------------------------------- /scalding-data-processing/README.md: -------------------------------------------------------------------------------- 1 | ## Data Processing with Scalding 2 | 3 | This is a fast-paced tutorial which shows the most commonly used constructs in Scalding to build 4 | data applications. There are five parts in this tutorial, with each part building on the former. 5 | 6 | The parts are divided into: 7 | 8 | ### Prerequisites 9 | * Installing Driven, gradle, IDE and other software for running the tutorial 10 | 11 | ### Part 1: Data Parsing and Cleaning 12 | * Read the input file 13 | * Filter data to exclude it from processing (bad data) 14 | 15 | ### Part 2: Stream Splitting 16 | * Separate data into two streams for processing 17 | 18 | ### Part 3: Data Operations on Stream 1 19 | * Perform data operations on Stream 1 using Filters, Unique and Discard 20 | 21 | ### Part 4: Data Operations on Stream 2 22 | * Perform data operations on Stream 2 using a custom function 23 | 24 | ### Part 5: Join and Group By 25 | * Join Stream 1 and Stream 2 26 | * Perform a grouping 27 | * Write the output to HDFS 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /scalding-data-processing/build.gradle: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007-2015 Concurrent, Inc. All Rights Reserved. 3 | * 4 | * Project and contact information: http://www.cascading.org/ 5 | * 6 | * This file is part of the Cascading project. 7 | * 8 | * Licensed under the Apache License, Version 2.0 (the "License"); 9 | * you may not use this file except in compliance with the License. 10 | * You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, software 15 | * distributed under the License is distributed on an "AS IS" BASIS, 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | * See the License for the specific language governing permissions and 18 | * limitations under the License. 19 | */ 20 | 21 | 22 | apply plugin: 'scala' 23 | apply plugin: 'idea' 24 | apply plugin: 'eclipse' 25 | 26 | buildscript { 27 | repositories { 28 | jcenter() 29 | mavenLocal() 30 | mavenCentral() 31 | maven { url 'http://conjars.org/repo/' } 32 | } 33 | } 34 | 35 | dependencies { 36 | compile 'org.scala-lang:scala-compiler:2.9.2' 37 | compile 'org.scala-lang:scala-library:2.9.2' 38 | } 39 | 40 | 41 | -------------------------------------------------------------------------------- /scalding-data-processing/part1/src/main/scala/etl/Main.scala: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007-2015 Concurrent, Inc. All Rights Reserved. 3 | * 4 | * Project and contact information: http://www.cascading.org/ 5 | * 6 | * This file is part of the Cascading project. 7 | * 8 | * Licensed under the Apache License, Version 2.0 (the "License"); 9 | * you may not use this file except in compliance with the License. 10 | * You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, software 15 | * distributed under the License is distributed on an "AS IS" BASIS, 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | * See the License for the specific language governing permissions and 18 | * limitations under the License. 19 | */ 20 | 21 | package etl 22 | 23 | import com.twitter.scalding._ 24 | import cascading.tuple.{Fields, TupleEntry} 25 | import scala.util.matching.Regex 26 | 27 | class Main( args: Args ) extends Job( args ) 28 | { 29 | 30 | val input = TextLine( args( "input" ) ) 31 | val output = Tsv( args( "output" ) ) 32 | 33 | val inputFields = 'line 34 | val regexFields = ('ip, 'time, 'request, 'response, 'size) 35 | 36 | val filteredInput = input.read.mapTo( inputFields -> regexFields ) 37 | { te: TupleEntry => 38 | val regex = new Regex( "^([^ ]*) \\S+ \\S+ \\[([\\w:/]+\\s[+\\-]\\d{4})\\] \"(.+?)\" (\\d{3}) ([^ ]*).*$" ) 39 | val split = regex.findFirstMatchIn( te.getString( "line" ) ).get.subgroups 40 | (split( 0 ), split( 1 ), split( 2 ), split( 3 ), split( 4 )) 41 | }.filterNot( 'size ) 42 | { size: String => size == "-" 43 | }.write( output ) 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /scalding-data-processing/part2/src/main/scala/etl/Main.scala: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007-2015 Concurrent, Inc. All Rights Reserved. 3 | * 4 | * Project and contact information: http://www.cascading.org/ 5 | * 6 | * This file is part of the Cascading project. 7 | * 8 | * Licensed under the Apache License, Version 2.0 (the "License"); 9 | * you may not use this file except in compliance with the License. 10 | * You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, software 15 | * distributed under the License is distributed on an "AS IS" BASIS, 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | * See the License for the specific language governing permissions and 18 | * limitations under the License. 19 | */ 20 | 21 | package etl 22 | 23 | import com.twitter.scalding._ 24 | import cascading.tuple.{Fields, TupleEntry} 25 | import scala.util.matching.Regex 26 | 27 | class Main( args: Args ) extends Job( args ) 28 | { 29 | 30 | val input = TextLine( args( "input" ) ) 31 | val output1 = Tsv( args( "output1" ) ) 32 | val output2 = Tsv( args( "output2" ) ) 33 | 34 | val inputFields = 'line 35 | val regexFields = ('ip, 'time, 'request, 'response, 'size) 36 | 37 | val filteredInput = input.read.mapTo( 'line -> regexFields ) 38 | { te: TupleEntry => 39 | val regex = new Regex( "^([^ ]*) \\S+ \\S+ \\[([\\w:/]+\\s[+\\-]\\d{4})\\] \"(.+?)\" (\\d{3}) ([^ ]*).*$" ) 40 | val split = regex.findFirstMatchIn( te.getString( "line" ) ).get.subgroups 41 | (split( 0 ), split( 1 ), split( 2 ), split( 3 ), split( 4 )) 42 | }.filterNot( 'size ) 43 | { size: String => size == "-"} 44 | 45 | val branch1 = new RichPipe( filteredInput ) 46 | val branch2 = new RichPipe( filteredInput ) 47 | 48 | branch1.write( output1 ) 49 | branch2.write( output2 ) 50 | 51 | } 52 | 53 | -------------------------------------------------------------------------------- /scalding-data-processing/part3/src/main/scala/etl/Main.scala: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007-2015 Concurrent, Inc. All Rights Reserved. 3 | * 4 | * Project and contact information: http://www.cascading.org/ 5 | * 6 | * This file is part of the Cascading project. 7 | * 8 | * Licensed under the Apache License, Version 2.0 (the "License"); 9 | * you may not use this file except in compliance with the License. 10 | * You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, software 15 | * distributed under the License is distributed on an "AS IS" BASIS, 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | * See the License for the specific language governing permissions and 18 | * limitations under the License. 19 | */ 20 | 21 | package etl 22 | 23 | import com.twitter.scalding._ 24 | import cascading.tuple.{Fields, TupleEntry} 25 | import scala.util.matching.Regex 26 | 27 | class Main( args: Args ) extends Job( args ) 28 | { 29 | 30 | val input = TextLine( args( "input" ) ) 31 | val output = Tsv( args( "output" ) ) 32 | 33 | val inputFields = 'line 34 | val regexFields = ('ip, 'time, 'request, 'response, 'size) 35 | 36 | val filteredInput = input.read.mapTo( 'line -> regexFields ) 37 | { te: TupleEntry => 38 | val regex = new Regex( "^([^ ]*) \\S+ \\S+ \\[([\\w:/]+\\s[+\\-]\\d{4})\\] \"(.+?)\" (\\d{3}) ([^ ]*).*$" ) 39 | val split = regex.findFirstMatchIn( te.getString( "line" ) ).get.subgroups 40 | (split( 0 ), split( 1 ), split( 2 ), split( 3 ), split( 4 )) 41 | }.filterNot( 'size ) 42 | { size: String => size == "-"} 43 | 44 | val branch1 = new RichPipe( filteredInput ) 45 | val branch2 = new RichPipe( filteredInput ) 46 | 47 | val processedBranch1 = branch1.filterNot( 'request ) 48 | { req: String => req == "GET /images/"}.project( 'ip ).unique( 'ip ) 49 | 50 | processedBranch1.write( output ) 51 | 52 | } 53 | 54 | -------------------------------------------------------------------------------- /scalding-data-processing/settings.gradle: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007-2015 Concurrent, Inc. All Rights Reserved. 3 | * 4 | * Project and contact information: http://www.cascading.org/ 5 | * 6 | * This file is part of the Cascading project. 7 | * 8 | * Licensed under the Apache License, Version 2.0 (the "License"); 9 | * you may not use this file except in compliance with the License. 10 | * You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, software 15 | * distributed under the License is distributed on an "AS IS" BASIS, 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | * See the License for the specific language governing permissions and 18 | * limitations under the License. 19 | */ 20 | 21 | include 'part1' 22 | include 'part2' 23 | include 'part3' 24 | include 'part4' 25 | include 'part5' 26 | 27 | include 'scalding-docs' 28 | 29 | rootProject.name = 'scalding-data-processing' 30 | -------------------------------------------------------------------------------- /scalding-data-processing/src/asciidoc/images/part1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/scalding-data-processing/src/asciidoc/images/part1.png -------------------------------------------------------------------------------- /scalding-data-processing/src/asciidoc/images/part2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/scalding-data-processing/src/asciidoc/images/part2.png -------------------------------------------------------------------------------- /scalding-data-processing/src/asciidoc/images/part3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/scalding-data-processing/src/asciidoc/images/part3.png -------------------------------------------------------------------------------- /scalding-data-processing/src/asciidoc/images/part4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/scalding-data-processing/src/asciidoc/images/part4.png -------------------------------------------------------------------------------- /scalding-data-processing/src/asciidoc/images/part5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cascading/tutorials/dc90e98585e291d748b5beb0797c1365127d7735/scalding-data-processing/src/asciidoc/images/part5.png -------------------------------------------------------------------------------- /scalding-data-processing/src/asciidoc/index.adoc: -------------------------------------------------------------------------------- 1 | = The Scalding QuickStart Tutorial 2 | 3 | This tutorial will teach you how to perform common data processing operations using Scalding. 4 | Scalding is a DSL written in Scala for the Cascading data processing framework. In this tutorial, 5 | we will build a data processing application in five incremental stages. This division is 6 | intentional--we want you to understand each stage carefully before moving to the next. Knowledge of 7 | Scala is useful, but not necessary. 8 | 9 | == What are we building? 10 | 11 | For the purposes of this tutorial, we will simulate analytics for an e-commerce website, 12 | where we have identified some "power users"-- users who frequently buy our items and generate 13 | revenue for our business. We have recently launched a new 14 | product, and we want to gauge interest shown in it by these users. We will assume that the 15 | web server logs have been collected through some mechanism in HDFS, and 16 | now need to be analyzed. 17 | 18 | To solve this problem, we will perform the following operations in Scalding: 19 | 20 | == link:prerequisites.html[Prerequisites] 21 | * Install Driven, Gradle, IDE and other software for running the tutorial 22 | 23 | == link:part1.html[Part 1: Importing & Validating Data] 24 | * Read the input file 25 | * Filter data to exclude it from processing (bad data) 26 | 27 | == link:part2.html[Part 2: Implementing branches] 28 | * Separate data into two streams for processing 29 | 30 | == link:part3.html[Part 3: Filtering Data] 31 | * Perform data operations such as filtering on Stream 1 32 | 33 | == link:part4.html[Part 4: Implementing custom functions] 34 | * Perform custom data operations on Stream 2 35 | 36 | == link:part5.html[Part 5: Joins] 37 | * Join Stream 1 and Stream 2 38 | * Perform a grouping 39 | * Write the output to HDFS 40 | 41 | == Next: Prerequisites 42 | link:prerequisites.html[Prerequisites] 43 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2007-2015 Concurrent, Inc. All Rights Reserved. 3 | * 4 | * Project and contact information: http://www.cascading.org/ 5 | * 6 | * This file is part of the Cascading project. 7 | * 8 | * Licensed under the Apache License, Version 2.0 (the "License"); 9 | * you may not use this file except in compliance with the License. 10 | * You may obtain a copy of the License at 11 | * 12 | * http://www.apache.org/licenses/LICENSE-2.0 13 | * 14 | * Unless required by applicable law or agreed to in writing, software 15 | * distributed under the License is distributed on an "AS IS" BASIS, 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | * See the License for the specific language governing permissions and 18 | * limitations under the License. 19 | */ 20 | 21 | include 'pattern' 22 | include 'lingual-hbase' 23 | include 'lingual-oracle' 24 | include 'cascading-teradata' 25 | include 'etl-log' 26 | include 'cascading-hive' 27 | include 'cascading-copybook' 28 | include 'cascading-aws' 29 | include 'scalding-data-processing' 30 | include 'cascading-mr' 31 | include 'cascading-sqoop-example' 32 | 33 | rootProject.name = 'tutorials' 34 | --------------------------------------------------------------------------------