package com.github.aureliano.verbum_domini.dao.helper;

import com.github.aureliano.verbum_domini.orm.PersistenceManager;

public final class DataHelper {

	private static DataHelper instance;
	
	private boolean dataHelpersInitialized;
	
	private DataHelper() {
		this.dataHelpersInitialized = false;
	}
	
	public static DataHelper instance() {
		if (instance == null) {
			instance = new DataHelper();
		}
		
		return instance;
	}
	
	public void initializeDataHelpers() {
		if (this.dataHelpersInitialized) {
			return;
		}
		
		PersistenceManager.instance().startUp();
		BibleDataHelper.createBibles();
		BookDataHelper.createBooks();
		
		this.dataHelpersInitialized = true;
	}
	
	public boolean isDataHelpersInitialized() {
		return this.dataHelpersInitialized;
	}
}
Create singleton class for managing DAO units data preparation.
Create singleton class for managing DAO units data preparation.
