|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectdbStorage.DataSetWorker
public class DataSetWorker
Nested Class Summary | |
---|---|
class |
DataSetWorker.ExternalDataSetInfoObj
Title: |
Field Summary | |
---|---|
(package private) static org.apache.log4j.Category |
log
|
private int |
MAX_DIMENSION
|
private DataAccess |
oDataAccess
|
Constructor Summary | |
---|---|
DataSetWorker()
|
Method Summary | |
---|---|
void |
bulkInsertData(java.lang.String filename)
|
void |
bulkInsertDataNodeMapping(java.lang.String filename,
java.lang.String datasetPath)
|
boolean |
checkDatasetDirectFlag(java.lang.String datasetPath)
|
int |
checkNewDataSet(java.lang.String path)
|
void |
deleteData(S_DataSet oS_DataSet)
removes a dataset/dictionary in the repository |
S_DataSet |
getData(java.lang.String name,
java.lang.String path)
gets Dictionary/Dataset in repository |
S_DataSet |
getDataSet(java.lang.String path)
gets Dataset listing in repository |
S_DataSet |
getDataSetAndDic(java.lang.String dataSetPath)
getDataSetAndDic |
java.util.Vector |
getDatasets()
gets Dataset listing in repository |
java.util.Vector |
getDictionaries()
gets Dictionary listing in repository |
S_DataSet |
getDictionary(java.lang.String dictionary_path)
gets Dictionary in repository |
int[] |
getDSIDandDict(java.lang.String dataSetPath)
Returns an integer array containing the data set ID and the dictionary ID for a given data set path. |
java.util.Vector<java.lang.String> |
getDSParameters(java.lang.String dataSetPath,
int dsID)
|
S_DataSet |
getExternalDataset(java.lang.String path)
getExternalDataset This method will return an external dataset from the repository in an S_DataSet object |
java.util.List |
getExternalDatasetByDictionary(java.lang.String dictionaryPath)
getExternalDatasetByDictionary This method will return a list of ExternalDataSetInfo objects that match the dictionary passed in. |
java.util.ArrayList |
getFileList(java.lang.String basePath,
java.lang.String extension)
This method gets a listing of the files or directories in the database |
java.util.ArrayList |
getNodeValuesDirect(java.lang.String nodeVariableName,
java.lang.String datasetPath)
getNodeValuesDirect |
java.sql.ResultSet |
getParameterValuesIndexesDirect(java.lang.String paramVarName,
java.lang.String datasetPath)
getParameterValuesIndexesDirect |
java.util.ArrayList |
getRelatedFiles(java.lang.String baseFilename)
A method to return a list of related files given a base filename |
java.sql.ResultSet |
getTimeValuesDirect(java.lang.String timeVariableName,
java.lang.String datasetPath)
getTimeValuesDirect |
int |
getVariableID(int newDataID,
java.lang.String varName)
getVariableID |
static void |
main(java.lang.String[] args)
|
void |
updateData(S_DataSet oS_DataSet)
updates a dataset/dictionary in the repository, adding it if need be |
private void |
updateDataset(S_DataSet oS_DataSet)
updates a dataset in the repository, adding it if need be |
int |
updateDatasetDirect_NodeMapping(S_DataSet dataset)
|
int |
updateDatasetDirect(S_DataSet dataset)
updateDatasetDirect |
void |
updateDatasetNamePath(java.lang.String oldPath,
java.lang.String newPath,
java.lang.String newName)
updateDatasetNamePath |
private void |
updateDictionary(S_DataSet oS_DataSet)
updates a dictionary in the repository, adding it if need be |
void |
updateExternalDataset(S_DataSet oS_DataSet)
updates an external dataset in the repository, adding it if need be |
void |
updateExternalVarValueDirect(int datasetID,
S_Variable oS_Variable,
int parameterID,
S_Value oS_Value)
|
void |
updateExternalVarValueDirect(int datasetID,
S_Variable oS_Variable,
int parameterID,
S_Value oS_Value,
java.io.PrintWriter out)
|
void |
updateVarValueDirect(int datasetID,
S_Variable oS_Variable,
int parameterID,
S_Value oS_Value)
|
void |
updateVarValueDirect(int datasetID,
S_Variable oS_Variable,
int parameterID,
S_Value oS_Value,
java.io.PrintWriter out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int MAX_DIMENSION
private DataAccess oDataAccess
static org.apache.log4j.Category log
Constructor Detail |
---|
public DataSetWorker()
Method Detail |
---|
public java.util.ArrayList getRelatedFiles(java.lang.String baseFilename)
baseFilename
- String
public java.util.ArrayList getFileList(java.lang.String basePath, java.lang.String extension)
basePath
- Stringextension
- String
public boolean checkDatasetDirectFlag(java.lang.String datasetPath) throws dbDirectException
dbDirectException
public int checkNewDataSet(java.lang.String path) throws dbDirectException
dbDirectException
public S_DataSet getData(java.lang.String name, java.lang.String path) throws dbDirectException
gets Dictionary/Dataset in repository
name
- Stringpath
- String
dbDirectException
public void updateData(S_DataSet oS_DataSet) throws dbDirectException
updates a dataset/dictionary in the repository, adding it if need be
oS_DataSet
- S_DataSet
dbDirectException
public int updateDatasetDirect(S_DataSet dataset) throws dbDirectException
dataset
- S_DataSet
dbDirectException
public int updateDatasetDirect_NodeMapping(S_DataSet dataset) throws dbDirectException
dbDirectException
public void bulkInsertData(java.lang.String filename) throws dbDirectException
dbDirectException
public void bulkInsertDataNodeMapping(java.lang.String filename, java.lang.String datasetPath) throws dbDirectException
dbDirectException
private void updateDataset(S_DataSet oS_DataSet) throws dbDirectException
updates a dataset in the repository, adding it if need be
oS_DataSet
- S_DataSet
dbDirectException
public void updateVarValueDirect(int datasetID, S_Variable oS_Variable, int parameterID, S_Value oS_Value) throws dbDirectException
dbDirectException
public void updateVarValueDirect(int datasetID, S_Variable oS_Variable, int parameterID, S_Value oS_Value, java.io.PrintWriter out) throws dbDirectException
dbDirectException
private void updateDictionary(S_DataSet oS_DataSet) throws dbDirectException
updates a dictionary in the repository, adding it if need be
oS_DataSet
- S_DataSet
dbDirectException
public void deleteData(S_DataSet oS_DataSet) throws dbDirectException
removes a dataset/dictionary in the repository
oS_DataSet
- S_DataSet
dbDirectException
public java.util.Vector getDictionaries() throws dbDirectException
gets Dictionary listing in repository
dbDirectException
public java.util.Vector getDatasets() throws dbDirectException
gets Dataset listing in repository
dbDirectException
public S_DataSet getDictionary(java.lang.String dictionary_path) throws dbDirectException
gets Dictionary in repository
dictionary_path
- String
dbDirectException
public S_DataSet getDataSet(java.lang.String path) throws dbDirectException
gets Dataset listing in repository
path
- String
dbDirectException
public S_DataSet getDataSetAndDic(java.lang.String dataSetPath)
dataSetPath
- String
public int getVariableID(int newDataID, java.lang.String varName) throws dbDirectException
newDataID
- intvarName
- String
dbDirectException
public void updateDatasetNamePath(java.lang.String oldPath, java.lang.String newPath, java.lang.String newName) throws dbDirectException
oldPath
- StringnewPath
- StringnewName
- String
dbDirectException
public java.util.ArrayList getNodeValuesDirect(java.lang.String nodeVariableName, java.lang.String datasetPath) throws dbDirectException
nodeVariableName
- StringdatasetPath
- String
dbDirectException
public java.sql.ResultSet getTimeValuesDirect(java.lang.String timeVariableName, java.lang.String datasetPath) throws dbDirectException
timeVariableName
- StringdatasetPath
- String
dbDirectException
public java.sql.ResultSet getParameterValuesIndexesDirect(java.lang.String paramVarName, java.lang.String datasetPath) throws dbDirectException
paramVarName
- StringdatasetPath
- String
dbDirectException
public static void main(java.lang.String[] args)
public java.util.List getExternalDatasetByDictionary(java.lang.String dictionaryPath) throws dbDirectException
dictionaryPath
- String
dbDirectException
public S_DataSet getExternalDataset(java.lang.String path) throws dbDirectException
path
- String
dbDirectException
public void updateExternalDataset(S_DataSet oS_DataSet) throws dbDirectException
updates an external dataset in the repository, adding it if need be
oS_DataSet
- S_DataSet
dbDirectException
public void updateExternalVarValueDirect(int datasetID, S_Variable oS_Variable, int parameterID, S_Value oS_Value) throws dbDirectException
dbDirectException
public void updateExternalVarValueDirect(int datasetID, S_Variable oS_Variable, int parameterID, S_Value oS_Value, java.io.PrintWriter out) throws dbDirectException
dbDirectException
public int[] getDSIDandDict(java.lang.String dataSetPath)
dataSetPath
-
public java.util.Vector<java.lang.String> getDSParameters(java.lang.String dataSetPath, int dsID)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |