001    /**
002     * Copyright 2010-2013 The Kuali Foundation
003     *
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     * http://www.opensource.org/licenses/ecl2.php
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.kuali.common.jdbc.model.meta;
017    
018    import org.kuali.common.util.Assert;
019    
020    public final class JdbcMetaData {
021    
022            public JdbcMetaData(Product product, Driver driver, String url, String username) {
023                    Assert.noNulls(product, driver);
024                    Assert.noBlanks(url);
025                    this.product = product;
026                    this.driver = driver;
027                    this.url = url;
028                    this.username = username;
029            }
030    
031            private final Product product;
032            private final Driver driver;
033            private final String url;
034            private final String username;
035    
036            public Product getProduct() {
037                    return product;
038            }
039    
040            public Driver getDriver() {
041                    return driver;
042            }
043    
044            public String getUrl() {
045                    return url;
046            }
047    
048            public String getUsername() {
049                    return username;
050            }
051    
052    }