Subversion Repositories SmartDukaan

Rev

Rev 457 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 457 Rev 473
Line 33... Line 33...
33
 
33
 
34
	public ContentMigrator(String sourceDbPath, String destinationDbPath) {
34
	public ContentMigrator(String sourceDbPath, String destinationDbPath) {
35
		this.sourceDbPath = sourceDbPath;
35
		this.sourceDbPath = sourceDbPath;
36
		this.destinationDbPath = destinationDbPath;
36
		this.destinationDbPath = destinationDbPath;
37
	}
37
	}
-
 
38
	/**
-
 
39
	 * this function will read source definition and source entities, and will convert
-
 
40
	 * source entities to destination entities according to destination definitions.  
38
	
41
	 * 
-
 
42
	 * @return boolean
-
 
43
	 */
39
	public boolean migrate(){
44
	public boolean migrate(){
-
 
45
		DefinitionsContainer sourceDefs = new DefinitionsContainer(sourceDbPath);
40
		DefinitionsContainer defs = Catalog.getInstance().getDefinitionsContainer();
46
		DefinitionsContainer destinationDefs = new DefinitionsContainer(destinationDbPath);
41
		EntityContainer ents = Catalog.getInstance().getEntityContainer();
47
		EntityContainer sourceEnts = new EntityContainer(sourceDbPath);
-
 
48
		EntityContainer destinationEnts = new EntityContainer(destinationDbPath);
-
 
49
		
-
 
50
		
42
		return true;
51
		return true;
43
	}
52
	}
44
}
53
}