co.uk.hjcs.canyon.mapping
Class ClassMapping

java.lang.Object
  extended by co.uk.hjcs.canyon.mapping.ClassMapping

public class ClassMapping
extends java.lang.Object

Holds the mapping information for a class

Author:
HJC Solutions Ltd (http://canyon.hjcsolutions.co.uk)

Constructor Summary
ClassMapping()
           
 
Method Summary
 void addInputResource(Resource inputResource)
           
 void addProperty(java.lang.String propertyName, MappingProperty property)
           
 boolean equals(java.lang.Object obj)
           
 int getBatchSize()
           
 java.lang.String getClassName()
           
 java.lang.String getDelimiter()
           
 MappingProperty getIdProperty()
           
 java.util.List<Resource> getInputDataSources()
           
 Resource getOutputDataSource()
           
 java.util.List<MappingProperty> getProperties()
           
 java.util.Map<java.lang.String,MappingProperty> getPropertiesMap()
           
 int getStartIndex()
           
 long getStartLine()
           
 FileType getType()
           
 int hashCode()
           
 void setBatchSize(int batchSize)
           
 void setClassName(java.lang.String className)
           
 void setDelimiter(java.lang.String delimiter)
           
 void setIdProperty(MappingProperty idProperty)
           
 void setOutputDataSource(Resource outputDataSource)
           
 void setStartIndex(int startIndex)
           
 void setStartLine(long startLine)
           
 void setType(FileType type)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassMapping

public ClassMapping()
Method Detail

getType

public FileType getType()

setType

public void setType(FileType type)

getClassName

public java.lang.String getClassName()

setClassName

public void setClassName(java.lang.String className)

getStartIndex

public int getStartIndex()

setStartIndex

public void setStartIndex(int startIndex)

getDelimiter

public java.lang.String getDelimiter()

setDelimiter

public void setDelimiter(java.lang.String delimiter)

getPropertiesMap

public java.util.Map<java.lang.String,MappingProperty> getPropertiesMap()

getProperties

public java.util.List<MappingProperty> getProperties()

addProperty

public void addProperty(java.lang.String propertyName,
                        MappingProperty property)

getIdProperty

public MappingProperty getIdProperty()

setIdProperty

public void setIdProperty(MappingProperty idProperty)

getStartLine

public long getStartLine()

setStartLine

public void setStartLine(long startLine)

getBatchSize

public int getBatchSize()
Returns:
the batchSize

setBatchSize

public void setBatchSize(int batchSize)
Parameters:
batchSize - the batchSize to set

getInputDataSources

public java.util.List<Resource> getInputDataSources()

addInputResource

public void addInputResource(Resource inputResource)

getOutputDataSource

public Resource getOutputDataSource()

setOutputDataSource

public void setOutputDataSource(Resource outputDataSource)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object