storm-apt/impl/src/main/java/com/turbomanage/storm/apt/database/DatabaseModel.java
public void writeToIndex(PrintWriter out) {
		out.println(StormEnvironment.BEGIN_DATABASE);
		Map<String,String> dbMap = new HashMap<String,String>();
		dbMap.put("dbName", this.getDbName());
		dbMap.put("dbVersion", String.valueOf(this.getDbVersion()));
		dbMap.put("helperClass", this.getQualifiedClassName());
		String dbInfo = CsvUtils	.mapToCsv(dbMap);
		out.println(dbInfo);
		// write TableHelpers
		for (String th: this.tableHelpers) {
			out.println(th);
		}
		out.println(StormEnvironment.END_DATABASE);
	}
public void writeToIndex(PrintWriter out) {
		out.println(StormEnvironment.BEGIN_DATABASE);
		Map<String,String> dbMap = new HashMap<String,String>();
		dbMap.put("dbName", this.getDbName());
		dbMap.put("dbVersion", String.valueOf(this.getDbVersion()));
		dbMap.put("helperClass", this.getQualifiedClassName());
		String dbInfo = CsvUtils	.mapToCsv(dbMap);
		out.println(dbInfo);
		// write TableHelpers
		for (String th: this.tableHelpers) {
			out.println(th);
		}
		out.println(StormEnvironment.END_DATABASE);
	}
public void writeToIndex ( PrintWriter out ) { out . println ( StormEnvironment . BEGIN_DATABASE ) ; Map < String , String > dbMap = new HashMap < String , String > ( ) ; dbMap . put ( "dbName" , this . getDbName ( ) ) ; dbMap . put ( "dbVersion" , String . valueOf ( this . getDbVersion ( ) ) ) ; dbMap . put ( "helperClass" , this . getQualifiedClassName ( ) ) ; String dbInfo = CsvUtils . mapToCsv ( dbMap ) ; out . println ( dbInfo ) ; // write TableHelpers for ( String th : this . tableHelpers ) { out . println ( th ) ; } out . println ( StormEnvironment . END_DATABASE ) ; }
Write the database info and associated tables to a file
in support of incremental compilation.

@param out PrintWriter
Write the database info and associated tables to a file in support of incremental compilation .