mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 07:56:16 +00:00
4626 make constants static, update copyright date
This commit is contained in:
parent
0394807018
commit
0dd1a8a521
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Central Repository
|
* Central Repository
|
||||||
*
|
*
|
||||||
* Copyright 2015-2017 Basis Technology Corp.
|
* Copyright 2015-2019 Basis Technology Corp.
|
||||||
* Contact: carrier <at> sleuthkit <dot> org
|
* Contact: carrier <at> sleuthkit <dot> org
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
@ -43,16 +43,16 @@ import static org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb
|
|||||||
public final class PostgresEamDbSettings {
|
public final class PostgresEamDbSettings {
|
||||||
|
|
||||||
private final static Logger LOGGER = Logger.getLogger(PostgresEamDbSettings.class.getName());
|
private final static Logger LOGGER = Logger.getLogger(PostgresEamDbSettings.class.getName());
|
||||||
private final String DEFAULT_HOST = ""; // NON-NLS
|
private final static String DEFAULT_HOST = ""; // NON-NLS
|
||||||
private final int DEFAULT_PORT = 5432;
|
private final static int DEFAULT_PORT = 5432;
|
||||||
private final String DEFAULT_DBNAME = "central_repository"; // NON-NLS
|
private final static String DEFAULT_DBNAME = "central_repository"; // NON-NLS
|
||||||
private final String DEFAULT_USERNAME = "";
|
private final static String DEFAULT_USERNAME = "";
|
||||||
private final String DEFAULT_PASSWORD = "";
|
private final static String DEFAULT_PASSWORD = "";
|
||||||
private final String VALIDATION_QUERY = "SELECT version()"; // NON-NLS
|
private final static String VALIDATION_QUERY = "SELECT version()"; // NON-NLS
|
||||||
private final String JDBC_BASE_URI = "jdbc:postgresql://"; // NON-NLS
|
private final static String JDBC_BASE_URI = "jdbc:postgresql://"; // NON-NLS
|
||||||
private final String JDBC_DRIVER = "org.postgresql.Driver"; // NON-NLS
|
private final static String JDBC_DRIVER = "org.postgresql.Driver"; // NON-NLS
|
||||||
private final String DB_NAMES_REGEX = "[a-z][a-z0-9_]*"; // only lower case
|
private final static String DB_NAMES_REGEX = "[a-z][a-z0-9_]*"; // only lower case
|
||||||
private final String DB_USER_NAMES_REGEX = "[a-zA-Z]\\w*";
|
private final static String DB_USER_NAMES_REGEX = "[a-zA-Z]\\w*";
|
||||||
private String host;
|
private String host;
|
||||||
private int port;
|
private int port;
|
||||||
private String dbName;
|
private String dbName;
|
||||||
@ -561,8 +561,8 @@ public final class PostgresEamDbSettings {
|
|||||||
* instance table. %s will exist in the template where the name of the new
|
* instance table. %s will exist in the template where the name of the new
|
||||||
* table will be addedd.
|
* table will be addedd.
|
||||||
*
|
*
|
||||||
* @return a String which is a template for adding an index to the file_obj_id
|
* @return a String which is a template for adding an index to the
|
||||||
* column of a _instances table
|
* file_obj_id column of a _instances table
|
||||||
*/
|
*/
|
||||||
static String getAddObjectIdIndexTemplate() {
|
static String getAddObjectIdIndexTemplate() {
|
||||||
// Each "%s" will be replaced with the relevant TYPE_instances table name.
|
// Each "%s" will be replaced with the relevant TYPE_instances table name.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Central Repository
|
* Central Repository
|
||||||
*
|
*
|
||||||
* Copyright 2015-2017 Basis Technology Corp.
|
* Copyright 2015-2019 Basis Technology Corp.
|
||||||
* Contact: carrier <at> sleuthkit <dot> org
|
* Contact: carrier <at> sleuthkit <dot> org
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
@ -43,19 +43,19 @@ import static org.sleuthkit.autopsy.centralrepository.datamodel.AbstractSqlEamDb
|
|||||||
public final class SqliteEamDbSettings {
|
public final class SqliteEamDbSettings {
|
||||||
|
|
||||||
private final static Logger LOGGER = Logger.getLogger(SqliteEamDbSettings.class.getName());
|
private final static Logger LOGGER = Logger.getLogger(SqliteEamDbSettings.class.getName());
|
||||||
private final String DEFAULT_DBNAME = "central_repository.db"; // NON-NLS
|
private final static String DEFAULT_DBNAME = "central_repository.db"; // NON-NLS
|
||||||
private final String DEFAULT_DBDIRECTORY = PlatformUtil.getUserDirectory() + File.separator + "central_repository"; // NON-NLS
|
private final static String DEFAULT_DBDIRECTORY = PlatformUtil.getUserDirectory() + File.separator + "central_repository"; // NON-NLS
|
||||||
private final String JDBC_DRIVER = "org.sqlite.JDBC"; // NON-NLS
|
private final static String JDBC_DRIVER = "org.sqlite.JDBC"; // NON-NLS
|
||||||
private final String JDBC_BASE_URI = "jdbc:sqlite:"; // NON-NLS
|
private final static String JDBC_BASE_URI = "jdbc:sqlite:"; // NON-NLS
|
||||||
private final String VALIDATION_QUERY = "SELECT count(*) from sqlite_master"; // NON-NLS
|
private final static String VALIDATION_QUERY = "SELECT count(*) from sqlite_master"; // NON-NLS
|
||||||
private static final String PRAGMA_SYNC_OFF = "PRAGMA synchronous = OFF";
|
private final static String PRAGMA_SYNC_OFF = "PRAGMA synchronous = OFF";
|
||||||
private static final String PRAGMA_SYNC_NORMAL = "PRAGMA synchronous = NORMAL";
|
private final static String PRAGMA_SYNC_NORMAL = "PRAGMA synchronous = NORMAL";
|
||||||
private static final String PRAGMA_JOURNAL_WAL = "PRAGMA journal_mode = WAL";
|
private final static String PRAGMA_JOURNAL_WAL = "PRAGMA journal_mode = WAL";
|
||||||
private static final String PRAGMA_READ_UNCOMMITTED_TRUE = "PRAGMA read_uncommitted = True";
|
private final static String PRAGMA_READ_UNCOMMITTED_TRUE = "PRAGMA read_uncommitted = True";
|
||||||
private static final String PRAGMA_ENCODING_UTF8 = "PRAGMA encoding = 'UTF-8'";
|
private final static String PRAGMA_ENCODING_UTF8 = "PRAGMA encoding = 'UTF-8'";
|
||||||
private static final String PRAGMA_PAGE_SIZE_4096 = "PRAGMA page_size = 4096";
|
private final static String PRAGMA_PAGE_SIZE_4096 = "PRAGMA page_size = 4096";
|
||||||
private static final String PRAGMA_FOREIGN_KEYS_ON = "PRAGMA foreign_keys = ON";
|
private final static String PRAGMA_FOREIGN_KEYS_ON = "PRAGMA foreign_keys = ON";
|
||||||
private final String DB_NAMES_REGEX = "[a-z][a-z0-9_]*(\\.db)?";
|
private final static String DB_NAMES_REGEX = "[a-z][a-z0-9_]*(\\.db)?";
|
||||||
private String dbName;
|
private String dbName;
|
||||||
private String dbDirectory;
|
private String dbDirectory;
|
||||||
private int bulkThreshold;
|
private int bulkThreshold;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user