java/sql-dk/src/info/globalcode/sql/dk/configuration/PropertyDeclarations.java
author František Kučera <franta-hg@frantovo.cz>
Tue, 26 Feb 2019 18:19:49 +0100
branchv_0
changeset 236 a3ec71fa8e17
parent 205 d6624c3b146a
permissions -rw-r--r--
Avoid reusing/rewriting the DB connection properties. There was weird random errors while testing connection to multiple DB in parallel when one of them was meta connection to same DB connection. Two kinds of exception: 1) missing password 2) „Passing DB password as CLI parameter is insecure!“
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
205
d6624c3b146a property annotations for documentation of formatter properties
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     1
/**
d6624c3b146a property annotations for documentation of formatter properties
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     2
 * SQL-DK
d6624c3b146a property annotations for documentation of formatter properties
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     3
 * Copyright © 2015 František Kučera (frantovo.cz)
d6624c3b146a property annotations for documentation of formatter properties
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     4
 *
d6624c3b146a property annotations for documentation of formatter properties
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     5
 * This program is free software: you can redistribute it and/or modify
d6624c3b146a property annotations for documentation of formatter properties
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     6
 * it under the terms of the GNU General Public License as published by
d6624c3b146a property annotations for documentation of formatter properties
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     7
 * the Free Software Foundation, either version 3 of the License, or
d6624c3b146a property annotations for documentation of formatter properties
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     8
 * (at your option) any later version.
d6624c3b146a property annotations for documentation of formatter properties
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     9
 *
d6624c3b146a property annotations for documentation of formatter properties
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    10
 * This program is distributed in the hope that it will be useful,
d6624c3b146a property annotations for documentation of formatter properties
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
d6624c3b146a property annotations for documentation of formatter properties
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
d6624c3b146a property annotations for documentation of formatter properties
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    13
 * GNU General Public License for more details.
d6624c3b146a property annotations for documentation of formatter properties
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    14
 *
d6624c3b146a property annotations for documentation of formatter properties
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License
d6624c3b146a property annotations for documentation of formatter properties
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    16
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
d6624c3b146a property annotations for documentation of formatter properties
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    17
 */
d6624c3b146a property annotations for documentation of formatter properties
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    18
package info.globalcode.sql.dk.configuration;
d6624c3b146a property annotations for documentation of formatter properties
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    19
d6624c3b146a property annotations for documentation of formatter properties
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    20
import java.lang.annotation.ElementType;
d6624c3b146a property annotations for documentation of formatter properties
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    21
import java.lang.annotation.Retention;
d6624c3b146a property annotations for documentation of formatter properties
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    22
import static java.lang.annotation.RetentionPolicy.RUNTIME;
d6624c3b146a property annotations for documentation of formatter properties
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    23
import java.lang.annotation.Target;
d6624c3b146a property annotations for documentation of formatter properties
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    24
d6624c3b146a property annotations for documentation of formatter properties
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    25
/**
d6624c3b146a property annotations for documentation of formatter properties
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    26
 *
d6624c3b146a property annotations for documentation of formatter properties
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    27
 * @author Ing. František Kučera (frantovo.cz)
d6624c3b146a property annotations for documentation of formatter properties
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    28
 */
d6624c3b146a property annotations for documentation of formatter properties
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    29
@Retention(RUNTIME)
d6624c3b146a property annotations for documentation of formatter properties
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    30
@Target({ElementType.TYPE})
d6624c3b146a property annotations for documentation of formatter properties
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    31
public @interface PropertyDeclarations {
d6624c3b146a property annotations for documentation of formatter properties
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    32
d6624c3b146a property annotations for documentation of formatter properties
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    33
	PropertyDeclaration[] value();
d6624c3b146a property annotations for documentation of formatter properties
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    34
d6624c3b146a property annotations for documentation of formatter properties
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    35
}