com.atlassian.jira.imports.fogbugz.transformer
Class AttachmentTransformer

java.lang.Object
  extended by com.atlassian.jira.imports.fogbugz.transformer.AttachmentTransformer
All Implemented Interfaces:
ResultSetTransformer<ExternalAttachment>
Direct Known Subclasses:
AttachmentTransformerVer5017OrOlder

public class AttachmentTransformer
extends java.lang.Object
implements ResultSetTransformer<ExternalAttachment>


Field Summary
protected  java.lang.String ixBug
           
 
Fields inherited from interface com.atlassian.jira.imports.importer.ResultSetTransformer
log
 
Constructor Summary
AttachmentTransformer(java.lang.String ixBug, FogBugzConfigBean configBean)
           
 
Method Summary
static void deleteTempFile(java.io.File file)
           
protected  java.lang.String getRelationColumnName()
          Returns 'ixBugEvent'
 java.lang.String getSqlQuery()
           
static java.io.File getTempDirFile(java.lang.String fileName)
           
 ExternalAttachment transform(java.sql.ResultSet rs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ixBug

protected final java.lang.String ixBug
Constructor Detail

AttachmentTransformer

public AttachmentTransformer(java.lang.String ixBug,
                             FogBugzConfigBean configBean)
Method Detail

getSqlQuery

public final java.lang.String getSqlQuery()
Specified by:
getSqlQuery in interface ResultSetTransformer<ExternalAttachment>

getRelationColumnName

protected java.lang.String getRelationColumnName()
Returns 'ixBugEvent'

Returns:
ixBugEvent
Since:
v3.13

transform

public ExternalAttachment transform(java.sql.ResultSet rs)
                             throws java.sql.SQLException
Specified by:
transform in interface ResultSetTransformer<ExternalAttachment>
Throws:
java.sql.SQLException

getTempDirFile

public static java.io.File getTempDirFile(java.lang.String fileName)

deleteTempFile

public static void deleteTempFile(java.io.File file)


Copyright © 2002-2010 Atlassian. All Rights Reserved.