org.pentaho.platform.dataaccess.datasource.wizard.models
Class DatasourceModel

java.lang.Object
  extended by org.pentaho.ui.xul.XulEventSourceAdapter
      extended by org.pentaho.platform.dataaccess.datasource.wizard.models.DatasourceModel
All Implemented Interfaces:
ICsvModelValidationListener, IRelationalModelValidationListener, org.pentaho.ui.xul.XulEventSource

public class DatasourceModel
extends org.pentaho.ui.xul.XulEventSourceAdapter
implements IRelationalModelValidationListener, ICsvModelValidationListener


Constructor Summary
DatasourceModel()
           
 
Method Summary
 void clearModel()
           
 void copyOverMetadata(org.pentaho.metadata.model.Domain oldDomain, org.pentaho.metadata.model.Domain newDomain)
          This is a utility method that looks into an old domain for the same column ids, and then copies over the old metadata into the new.
 CsvModel getCsvModel()
           
 IDatasource getDatasource()
           
 DatasourceType getDatasourceType()
           
 RelationalModel getRelationalModel()
           
 boolean isValidated()
           
 void onCsvModelInValid()
          Fired when the the model is valid
 void onCsvModelValid()
          Fired when the the model is valid
 void onRelationalModelInValid()
          Fired when the the model is valid
 void onRelationalModelValid()
          Fired when the the model is valid
 void setCsvModel(CsvModel csvModel)
           
 void setDatasourceType(DatasourceType datasourceType)
           
 void setRelationalModel(RelationalModel relationalModel)
           
 
Methods inherited from class org.pentaho.ui.xul.XulEventSourceAdapter
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatasourceModel

public DatasourceModel()
Method Detail

getRelationalModel

public RelationalModel getRelationalModel()

setRelationalModel

public void setRelationalModel(RelationalModel relationalModel)

getCsvModel

public CsvModel getCsvModel()

setCsvModel

public void setCsvModel(CsvModel csvModel)

isValidated

public boolean isValidated()

getDatasourceType

public DatasourceType getDatasourceType()

setDatasourceType

public void setDatasourceType(DatasourceType datasourceType)

clearModel

public void clearModel()

getDatasource

public IDatasource getDatasource()

onRelationalModelInValid

public void onRelationalModelInValid()
Description copied from interface: IRelationalModelValidationListener
Fired when the the model is valid

Specified by:
onRelationalModelInValid in interface IRelationalModelValidationListener

onRelationalModelValid

public void onRelationalModelValid()
Description copied from interface: IRelationalModelValidationListener
Fired when the the model is valid

Specified by:
onRelationalModelValid in interface IRelationalModelValidationListener

onCsvModelInValid

public void onCsvModelInValid()
Description copied from interface: ICsvModelValidationListener
Fired when the the model is valid

Specified by:
onCsvModelInValid in interface ICsvModelValidationListener

onCsvModelValid

public void onCsvModelValid()
Description copied from interface: ICsvModelValidationListener
Fired when the the model is valid

Specified by:
onCsvModelValid in interface ICsvModelValidationListener

copyOverMetadata

public void copyOverMetadata(org.pentaho.metadata.model.Domain oldDomain,
                             org.pentaho.metadata.model.Domain newDomain)
This is a utility method that looks into an old domain for the same column ids, and then copies over the old metadata into the new.

Parameters:
oldDomain -
newDomain -