org.kuali.rice.ken.test
Class SQLDataLoader

java.lang.Object
  extended by org.kuali.rice.ken.test.SQLDataLoader

public class SQLDataLoader
extends Object

Adapted from Rice...we should remove this class and use the Rice one once we merge


Field Summary
private  DataSource dataSource
           
private  String fileLoc
           
private static org.apache.log4j.Logger LOG
           
private  String seperatorChar
           
static String SQL_LINE_COMMENT_PREFIX
           
 
Constructor Summary
SQLDataLoader(String fileLoc, String seperatorChar, DataSource dataSource)
           
 
Method Summary
private  String getContentsAsString(String fileLoc)
           
 String getSeperatorChar()
           
 void runSql()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final org.apache.log4j.Logger LOG

SQL_LINE_COMMENT_PREFIX

public static final String SQL_LINE_COMMENT_PREFIX
See Also:
Constant Field Values

fileLoc

private String fileLoc

seperatorChar

private String seperatorChar

dataSource

private DataSource dataSource
Constructor Detail

SQLDataLoader

public SQLDataLoader(String fileLoc,
                     String seperatorChar,
                     DataSource dataSource)
Method Detail

runSql

public void runSql()
            throws Exception
Throws:
Exception

getContentsAsString

private String getContentsAsString(String fileLoc)
                            throws Exception
Throws:
Exception

getSeperatorChar

public String getSeperatorChar()


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.