if (columnMetadataList == null) {
columnMetadataList = new ArrayList<ColumnInfo>();
String[] tableMetadata = getTableMetadata(getTableName());
ResultSet rs = conn.getMetaData().getColumns(null, tableMetadata[0], tableMetadata[1], null);
while (rs.next()) {
columnMetadataList.add(new ColumnInfo(rs.getString(QueryUtil.COLUMN_NAME_POSITION), rs.getInt(QueryUtil.DATA_TYPE_POSITION)));
}
}
// Generating UPSERT statement without column name information.
String upsertStmt = QueryUtil.constructUpsertStatement(null, getTableName(), columnMetadataList.size());