it.eng.qbe.model.io
Class LocalFileSystemQueryPersister

java.lang.Object
  extended by it.eng.qbe.model.io.LocalFileSystemQueryPersister
All Implemented Interfaces:
IQueryPersister

public class LocalFileSystemQueryPersister
extends java.lang.Object
implements IQueryPersister

The Class LocalFileSystemQueryPersister.

Author:
Andrea Zoppello An implementation of IQueryPersister that retrieve and persist queries using the File System

Constructor Summary
LocalFileSystemQueryPersister()
           
 
Method Summary
 java.util.List getPrivateQueriesFor(DataMartModel dm, java.lang.String userID)
          Gets the private queries for.
 ISingleDataMartWizardObject load(DataMartModel dm, java.lang.String key)
          Load.
 java.util.List loadAllQueries(DataMartModel dm)
          Load all queries.
protected  ISingleDataMartWizardObject loadFromFile(java.io.File f)
          Load from file.
 void persist(DataMartModel dm, ISingleDataMartWizardObject wizObject)
          Persist.
 void persist(java.io.File baseDir, DataMartModel dm, ISingleDataMartWizardObject wizObject)
          Persist.
protected  void persistToFile(DataMartModel dm, ISingleDataMartWizardObject wizObject, java.lang.String fileName)
          Persist to file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalFileSystemQueryPersister

public LocalFileSystemQueryPersister()
Method Detail

persistToFile

protected void persistToFile(DataMartModel dm,
                             ISingleDataMartWizardObject wizObject,
                             java.lang.String fileName)
Persist to file.

Parameters:
dm - the dm
wizObject - the wiz object
fileName - the file name

persist

public void persist(DataMartModel dm,
                    ISingleDataMartWizardObject wizObject)
Description copied from interface: IQueryPersister
Persist.

Specified by:
persist in interface IQueryPersister
Parameters:
dm - the dm
wizObject - the wiz object

persist

public void persist(java.io.File baseDir,
                    DataMartModel dm,
                    ISingleDataMartWizardObject wizObject)
Persist.

Parameters:
baseDir - the base dir
dm - the dm
wizObject - the wiz object

load

public ISingleDataMartWizardObject load(DataMartModel dm,
                                        java.lang.String key)
Description copied from interface: IQueryPersister
Load.

Specified by:
load in interface IQueryPersister
Parameters:
dm - the dm
key - the key
Returns:
the query of the datamart identified by key

loadFromFile

protected ISingleDataMartWizardObject loadFromFile(java.io.File f)
Load from file.

Parameters:
f - the f
Returns:
the i single data mart wizard object

loadAllQueries

public java.util.List loadAllQueries(DataMartModel dm)
Description copied from interface: IQueryPersister
Load all queries.

Specified by:
loadAllQueries in interface IQueryPersister
Parameters:
dm - the dm
Returns:
all the query for datamart dm

getPrivateQueriesFor

public java.util.List getPrivateQueriesFor(DataMartModel dm,
                                           java.lang.String userID)
Gets the private queries for.

Parameters:
dm - the dm
userID - the user id
Returns:
the private queries for