public static List < CreateTableResult > initAllTables ( ) { final List < CreateTableResult > ret = new ArrayList <> ( ) ; final List < RepositoryDefinition > repositoryDefs = getRepositoryDefinitions ( ) ; boolean isSuccess = false ; for ( final RepositoryDefinition repositoryDef : repositoryDefs ) { try { isSuccess = JdbcFactory . getInstance ( ) . createTable ( repositoryDef ) ; } catch ( final SQLException e ) { LOGGER . log ( Level . ERROR , "Creates table [" + repositoryDef . getName ( ) + "] error" , e ) ; } ret . add ( new CreateTableResult ( repositoryDef . getName ( ) , isSuccess ) ) ; } return ret ; }
Initializes all tables from repository . json .