Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuir committed Jun 16, 2010
1 parent e902c48 commit 2545678
Showing 1 changed file with 9 additions and 9 deletions.
Expand Up @@ -46,20 +46,20 @@
// TODO Make into an EJB Singleton which executes at startup
@ApplicationScoped
@Named("database")
//TODO @Singleton @Startup
public class PopulateDatabaseBean
{

private static final String DATA_FILE_NAME = "data.sql";

@Inject
private Instance<CodeFragmentManager> eaoIn;
private CodeFragmentManager eao;
private boolean secured = false;
private static final String file = "data.sql";
private boolean populated = false;

public PopulateDatabaseBean()
{
}
private boolean secured;

private boolean populated;

// TODO @PostConstruct
public void populate()
{
if (populated)
Expand All @@ -71,7 +71,7 @@ public void populate()

try
{
String fileContent = readFileData(file);
String fileContent = readFileData(DATA_FILE_NAME);
StringTokenizer st = new StringTokenizer(fileContent, "'");
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

Expand All @@ -95,7 +95,7 @@ public void populate()
}
catch (Exception e)
{
System.err.println("Unable to read all records from " + file + " file");
System.err.println("Unable to read all records from " + DATA_FILE_NAME + " file");
}

populated = true;
Expand Down

0 comments on commit 2545678

Please sign in to comment.