View Javadoc

1   /*
2    * $Id: MysqlDataSourceFactoryBean.java 22121 2011-06-06 11:10:58Z dirk.olmes $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.transport.jdbc.config;
12  
13  public class MysqlDataSourceFactoryBean extends AbstractHostPortDatabaseDataSourceFactoryBean
14  {
15      private static final String DRIVER_CLASS_NAME = "com.mysql.jdbc.Driver";
16      private static final String JDBC_URL_PREFIX = "jdbc:mysql://";
17  
18      public MysqlDataSourceFactoryBean()
19      {
20          super();
21          driverClassName = DRIVER_CLASS_NAME;
22          updateUrl();
23      }
24  
25      @Override
26      protected String getJdbcUrlPrefix()
27      {
28          return JDBC_URL_PREFIX;
29      }
30  }