public class EventErrorFileToDBWriter extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ERR_XML_ATTR_NULL |
protected static String |
ERR_XML_ATTR_TYPE |
protected static String |
ERR_XML_ENTRIES_ENTITY |
protected static String |
ERR_XML_ERRCODE |
protected static String |
ERR_XML_EX_MESSAGE |
protected static String |
ERR_XML_EX_STACK |
protected static String |
ERR_XML_EXCEPTION |
protected static String |
ERR_XML_FAILURE |
protected static String |
ERR_XML_PARAM |
protected static String |
ERR_XML_PARAMS |
protected static String |
ERR_XML_ROOT |
protected static String |
ERR_XML_SQL |
protected static String |
ERR_XML_SQLSTATE |
| Constructor and Description |
|---|
EventErrorFileToDBWriter() |
| Modifier and Type | Method and Description |
|---|---|
static void |
dummy() |
protected static int[] |
executeStatement(Connection conn,
String sql,
ArrayList<String[]> paramsBatch,
ArrayList<Integer> paramTypes) |
static void |
main(String[] args) |
static void |
setParameters(PreparedStatement pstmt,
String[] params,
ArrayList<Integer> paramTypes)
Set the value of a parameter in prepared statement given a string
representation as returned by
|
protected static void |
throwUnexpectedEntity(XMLStreamReader xmlReader,
String name,
int type,
String currentTag) |
static void |
writeXMLToDB(Connection conn,
String file) |
protected static final String ERR_XML_ROOT
protected static final String ERR_XML_ENTRIES_ENTITY
protected static final String ERR_XML_FAILURE
protected static final String ERR_XML_SQL
protected static final String ERR_XML_PARAMS
protected static final String ERR_XML_PARAM
protected static final String ERR_XML_ATTR_TYPE
protected static final String ERR_XML_ATTR_NULL
protected static final String ERR_XML_EXCEPTION
protected static final String ERR_XML_SQLSTATE
protected static final String ERR_XML_ERRCODE
protected static final String ERR_XML_EX_MESSAGE
protected static final String ERR_XML_EX_STACK
public static void writeXMLToDB(Connection conn, String file) throws Exception
Exceptionprotected static int[] executeStatement(Connection conn, String sql, ArrayList<String[]> paramsBatch, ArrayList<Integer> paramTypes) throws Exception
Exceptionpublic static void setParameters(PreparedStatement pstmt, String[] params, ArrayList<Integer> paramTypes) throws Exception
Exceptionprotected static void throwUnexpectedEntity(XMLStreamReader xmlReader, String name, int type, String currentTag) throws XMLStreamException
XMLStreamExceptionpublic static void dummy()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.