com.trackstudio.app.csv
Class CSVImportManager

java.lang.Object
  extended by java.lang.Thread
      extended by com.trackstudio.app.csv.CSVImportManager
All Implemented Interfaces:
ProgressManager, java.lang.Runnable

public class CSVImportManager
extends java.lang.Thread
implements ProgressManager


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 java.util.List result
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
CSVImportManager(SessionContext sc, java.lang.String projectId, java.lang.String scriptId, java.io.BufferedReader is)
           
 
Method Summary
 void cancel()
           
 java.util.List csvImport()
           
 java.lang.String getDescription()
           
 CSVImportMetadata getMetadata()
           
 int getProgress()
           
 java.util.List getResult()
           
 int getSize()
           
 boolean isCanceled()
           
 boolean isFinished()
           
 boolean isStarted()
           
 void run()
           
 void setProgress(int o)
           
 void setResult(java.util.List result)
           
 void setSize(int t)
           
 void setStarted(boolean started)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

result

public java.util.List result
Constructor Detail

CSVImportManager

public CSVImportManager(SessionContext sc,
                        java.lang.String projectId,
                        java.lang.String scriptId,
                        java.io.BufferedReader is)
Method Detail

getMetadata

public CSVImportMetadata getMetadata()

getResult

public java.util.List getResult()

setResult

public void setResult(java.util.List result)

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

csvImport

public java.util.List csvImport()
                         throws GranException
Throws:
GranException

getProgress

public int getProgress()
Specified by:
getProgress in interface ProgressManager

getSize

public int getSize()
Specified by:
getSize in interface ProgressManager

setSize

public void setSize(int t)
Specified by:
setSize in interface ProgressManager

setProgress

public void setProgress(int o)
Specified by:
setProgress in interface ProgressManager

isStarted

public boolean isStarted()
Specified by:
isStarted in interface ProgressManager

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface ProgressManager

isFinished

public boolean isFinished()
Specified by:
isFinished in interface ProgressManager

isCanceled

public boolean isCanceled()

cancel

public void cancel()

setStarted

public void setStarted(boolean started)


Copyright © 2002-2008 TrackStudio, Ltd. All Rights Reserved.