<?xml version="1.0" encoding="UTF-8"?>
               
<load>   

  <!-- Oracle Database and table we are inserting records to -->
  <dbType>Oracle</dbType>
  <dbUrl>jdbc:oracle:thin:@localhost:1521:jddb</dbUrl>
  <dbUserName>scott</dbUserName>
  <dbPassword>tiger</dbPassword>
  <table>person</table>
  <sequence name="person_seq" pkColumn="person_id" />
  <sqlToGetExistingRowCount>select count(*) from person</sqlToGetExistingRowCount> 
  <sqlToRunBeforeLoad>delete from person</sqlToRunBeforeLoad> 

  <!-- Our custom Java class that will apply special logic -->
	<loadDecoratorClass>com.jdonohue.jrower.loaddecorator.ExampleLoadDecorator</loadDecoratorClass>

  <!-- Input data file -->
  <file pathAndName="testing/delimited/Test-CustomDelimited.txt" type="delimited" delimiter="|" />  
  <skipLines top="5" />              

  <!-- Input data file fields and associated table coulmns-->
	<column fieldNumber="1" dbColumn="name" type="String" />
	<column fieldNumber="3" dbColumn="nick_name" type="String" />
	<column fieldNumber="4" dbColumn="age" type="Integer" />
	<column fieldNumber="5" dbColumn="birthday" type="Date" >
    <simpleDateFormat>MM/dd/yyyy</simpleDateFormat>
    <invalidDateErrorMessage>Invalid birthday</invalidDateErrorMessage>
	</column>
	<column fieldNumber="6" dbColumn="score" type="Float" />
	<column constantValue="Pin Pals" dbColumn="team_name" type="String" />
	<column sqlToGetValue="(sysdate)" dbColumn="created" />

</load>   
   

  
