Package nl.nn.adapterframework.util
Class DB2DocumentWriter
- java.lang.Object
-
- nl.nn.adapterframework.util.DB2DocumentWriter
-
public class DB2DocumentWriter extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.logging.log4j.Logger
log
-
Constructor Summary
Constructors Constructor Description DB2DocumentWriter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
addFieldDefinitions(ObjectBuilder documentBuilder, ResultSetMetaData rsmeta)
String
getBlobCharset()
static String
getFieldType(int type)
String
getNullValue()
Get the presentation of aNull
valueboolean
isDecompressBlobs()
boolean
isGetBlobSmart()
boolean
isTrimSpaces()
void
setBlobCharset(String string)
void
setDecompressBlobs(boolean b)
void
setDocumentName(String s)
void
setGetBlobSmart(boolean b)
void
setNullValue(String s)
Set the presentation of aNull
valuevoid
setRecordName(String s)
void
setTrimSpaces(boolean b)
void
writeDocument(IDbmsSupport dbmsSupport, ResultSet rs, int maxlength, boolean includeFieldDefinition, ObjectBuilder documentBuilder)
void
writeDocument(DocumentFormat format, IDbmsSupport dbmsSupport, ResultSet rs, int maxlength, boolean includeFieldDefinition, MessageOutputStream target, boolean prettyPrint)
static void
writeRow(ArrayBuilder rows, IDbmsSupport dbmsSupport, ResultSet rs, ResultSetMetaData rsmeta, String blobCharset, boolean decompressBlobs, String nullValue, boolean trimSpaces, boolean getBlobSmart)
-
-
-
Method Detail
-
getFieldType
public static String getFieldType(int type)
-
writeDocument
public void writeDocument(DocumentFormat format, IDbmsSupport dbmsSupport, ResultSet rs, int maxlength, boolean includeFieldDefinition, MessageOutputStream target, boolean prettyPrint) throws StreamingException, SAXException
- Throws:
StreamingException
SAXException
-
writeDocument
public void writeDocument(IDbmsSupport dbmsSupport, ResultSet rs, int maxlength, boolean includeFieldDefinition, ObjectBuilder documentBuilder) throws SAXException
- Throws:
SAXException
-
addFieldDefinitions
public static void addFieldDefinitions(ObjectBuilder documentBuilder, ResultSetMetaData rsmeta) throws SAXException, SQLException
- Throws:
SAXException
SQLException
-
writeRow
public static void writeRow(ArrayBuilder rows, IDbmsSupport dbmsSupport, ResultSet rs, ResultSetMetaData rsmeta, String blobCharset, boolean decompressBlobs, String nullValue, boolean trimSpaces, boolean getBlobSmart) throws SenderException, SQLException, SAXException
- Throws:
SenderException
SQLException
SAXException
-
setDocumentName
public void setDocumentName(String s)
-
setRecordName
public void setRecordName(String s)
-
setNullValue
public void setNullValue(String s)
Set the presentation of aNull
value
-
getNullValue
public String getNullValue()
Get the presentation of aNull
value
-
setTrimSpaces
public void setTrimSpaces(boolean b)
-
isTrimSpaces
public boolean isTrimSpaces()
-
setDecompressBlobs
public void setDecompressBlobs(boolean b)
-
isDecompressBlobs
public boolean isDecompressBlobs()
-
setGetBlobSmart
public void setGetBlobSmart(boolean b)
-
isGetBlobSmart
public boolean isGetBlobSmart()
-
getBlobCharset
public String getBlobCharset()
-
setBlobCharset
public void setBlobCharset(String string)
-
-