/** 执行参数数组 */
private final String[] cmdarray =
{ "", "", "control=", "", "", "log=", "", "bad=", "", "skip=1",
"errors = 50" };
public void setHome(String home)
{
cmdarray[CMD_HOME_IDX] = home + "/sqlldr";
}
public void setUseId(String username, String password, String netServerName)
{
cmdarray[CMD_USERID_IDX] = "userid=" + username + "/" + password + "@"
+ netServerName;
}
public void setDirect(boolean direct)
{
cmdarray[CMD_DIRECT_IDX] = "direct="+direct;
}
public void setCtlFile(String ctlFileName)
{
cmdarray[CMD_CTLFILEPATHNAME_IDX] = ctlFileName;
}
public void setLogFile(String logFile)
{
cmdarray[CMD_LOGFILEPATHNAME_IDX] = logFile;
}
public void setBadFile(String badFile)
{
cmdarray[CMD_BADFILEPATHNAME_IDX] = badFile;
}
public void setDirectoryFile(String sqlLoadDirectory, String fileName,
String header)
{
//windows不实现
}
public void setLinux(boolean linux)
{
this.linux = linux;
}
public boolean isLinux()
{
return linux;
}
private final String[] cmdarray =
{ "", "", "control=", "", "", "log=", "", "bad=", "", "skip=1",
"errors = 50" };
public void setHome(String home)
{
cmdarray[CMD_HOME_IDX] = home + "/sqlldr";
}
public void setUseId(String username, String password, String netServerName)
{
cmdarray[CMD_USERID_IDX] = "userid=" + username + "/" + password + "@"
+ netServerName;
}
public void setDirect(boolean direct)
{
cmdarray[CMD_DIRECT_IDX] = "direct="+direct;
}
public void setCtlFile(String ctlFileName)
{
cmdarray[CMD_CTLFILEPATHNAME_IDX] = ctlFileName;
}
public void setLogFile(String logFile)
{
cmdarray[CMD_LOGFILEPATHNAME_IDX] = logFile;
}
public void setBadFile(String badFile)
{
cmdarray[CMD_BADFILEPATHNAME_IDX] = badFile;
}
public void setDirectoryFile(String sqlLoadDirectory, String fileName,
String header)
{
//windows不实现
}
public void setLinux(boolean linux)
{
this.linux = linux;
}
public boolean isLinux()
{
return linux;
}