Esempio n. 1
0
 public void start(ConnectionFactory connectionFactory) throws PersistenceException {
   this.connectionFactory = connectionFactory;
   if (config.createOnStart()) {
     Connection conn = null;
     try {
       conn = this.connectionFactory.getConnection();
       if (!tableExists(conn, getTableName())) {
         createTable(conn);
       }
     } finally {
       this.connectionFactory.releaseConnection(conn);
     }
   }
 }