/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package jakarta.annotation.sql;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

Since:Common Annotations 1.1
/** * @since Common Annotations 1.1 */
@Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) public @interface DataSourceDefinition {
Returns:the className
/** * @return the className */
String className();
Returns:the name
/** * @return the name */
String name();
Returns:the description
/** * @return the description */
String description() default "";
Returns:the url
/** * @return the url */
String url() default "";
Returns:the user
/** * @return the user */
String user() default "";
Returns:the password
/** * @return the password */
String password() default "";
Returns:database name
/** * @return database name */
String databaseName() default "";
Returns:the port number
/** * @return the port number */
int portNumber() default -1;
Returns:the server name
/** * @return the server name */
String serverName() default "localhost";
Returns:the isolation level
/** * @return the isolation level */
int isolationLevel() default -1;
Returns:true if the data source is transactional
/** * @return true if the data source is transactional */
boolean transactional() default true;
Returns:the initial pool size
/** * @return the initial pool size */
int initialPoolSize() default -1;
Returns:the max pool size
/** * @return the max pool size */
int maxPoolSize() default -1;
Returns:the min pool size
/** * @return the min pool size */
int minPoolSize() default -1;
Returns:the max idle time
/** * @return the max idle time */
int maxIdleTime() default -1;
Returns:the max statements
/** * @return the max statements */
int maxStatements() default -1;
Returns:a String[] with the properties
/** * @return a String[] with the properties */
String[] properties() default {};
Returns:the login timeout
/** * @return the login timeout */
int loginTimeout() default 0; }