public class LoaderUtils
extends java.lang.Object
Constructor and Description |
---|
LoaderUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
createExternalTable(java.lang.String fileName, java.lang.String tableName, java.lang.String szDirectory, java.lang.String[] colNames, java.lang.Class<?>[] colDatatypes, java.sql.Connection conn) |
static java.lang.String |
createExternalTableFromCSVInputStream(java.io.InputStream is, java.lang.String fileName, java.lang.String szDirectory, char delimiter, java.sql.Connection conn) |
static void |
createTable(java.lang.String tableName, java.sql.Connection conn, java.lang.String[] pkColNames, java.lang.String[] colNames, java.lang.Class<?>[] dataTypes) |
static java.lang.String |
getDatatypeAsSQLType(java.lang.Class<?> type)
This string values returned from this method MUST match opg_apis.check_col_type in opgapib.sql
|
static void |
loadFileIntoDatabaseDirectory(java.io.BufferedReader br, java.lang.String szDirectory, java.lang.String fileName, java.sql.Connection conn) |
static java.lang.String |
prepareNamedPipe(java.lang.String szSrcFileName, java.lang.String szDirectory, java.lang.String szNamedPipePrefix, java.io.OutputStream os)
Prepares a named pipe for the given source file
|
public static void createExternalTable(java.lang.String fileName, java.lang.String tableName, java.lang.String szDirectory, java.lang.String[] colNames, java.lang.Class<?>[] colDatatypes, java.sql.Connection conn) throws java.io.IOException, java.sql.SQLException
java.io.IOException
java.sql.SQLException
public static java.lang.String createExternalTableFromCSVInputStream(java.io.InputStream is, java.lang.String fileName, java.lang.String szDirectory, char delimiter, java.sql.Connection conn) throws java.io.IOException, java.sql.SQLException
java.io.IOException
java.sql.SQLException
public static void createTable(java.lang.String tableName, java.sql.Connection conn, java.lang.String[] pkColNames, java.lang.String[] colNames, java.lang.Class<?>[] dataTypes) throws java.sql.SQLException
java.sql.SQLException
public static java.lang.String getDatatypeAsSQLType(java.lang.Class<?> type)
public static void loadFileIntoDatabaseDirectory(java.io.BufferedReader br, java.lang.String szDirectory, java.lang.String fileName, java.sql.Connection conn) throws java.sql.SQLException
java.sql.SQLException
public static java.lang.String prepareNamedPipe(java.lang.String szSrcFileName, java.lang.String szDirectory, java.lang.String szNamedPipePrefix, java.io.OutputStream os) throws java.lang.Exception
szSrcFileName
-szDirectory
-szNamedPipePrefix
-os
-java.lang.Exception
Copyright © 2015 - 2018 Oracle and/or its affiliates. All Rights Reserved.