private void createSchema ( ) throws SQLException { logger . entering ( CLASSNAME , "createSchema" ) ; Connection conn = getConnectionToDefaultSchema ( ) ; logger . log ( Level . INFO , schema + " schema does not exists. Trying to create it." ) ; PreparedStatement ps = null ; ps = conn . prepareStatement ( "CREATE SCHEMA " + schema ) ; ps . execute ( ) ; cleanupConnection ( conn , null , ps ) ; logger . exiting ( CLASSNAME , "createSchema" ) ; }
Creates the default schema JBATCH or the schema defined in batch - config .