org.caleigo.core
Interface IDataSource.IDataSourceCreator
- Enclosing interface:
- IDataSource
- public static interface IDataSource.IDataSourceCreator
Interface used for the DataSourceCreator constant. Contains a method that can be used to copy a DataSource to
a new dataSource including migrating the database to another place
- Author:
- Klas Ehnrot
createDataSource
public IDataSource createDataSource(IDataSource sourceDataSource,
IDataService service,
boolean copyData)
- Creates a new DataSource given an existing datasource. This sets physically up a new data source, for example
by creating tables, moving data and creating relations between the tables
- Parameters:
sourceDataSource
- The datasource with the original dataservice
- Target service that should be populated with thed datastructurecopyData
- true if data should be copied. Otherwise, just the datastructure is created
- Returns:
- Returns the created datasource
Copyright © 2005 Caleigo. All Rights Reserved.