public class DatasourceInfo extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTO_CONSTRAINT_NAME_CLIP_LENGTH |
static String |
AUTO_FIELD_TYPE
If the field-type-name property matches this string we will try and guess the field-type-name by using the
metadata returned by the database connection.
|
static String |
AUTO_SCHEMA_NAME |
protected static Properties |
CONFIGURATION |
static int |
DEFAULT_CONSTRAINT_NAME_CLIP_LENGTH |
| Constructor and Description |
|---|
DatasourceInfo(Element element) |
DatasourceInfo(String name,
String fieldTypeName,
String schemaName,
JdbcDatasourceInfo jdbcDatasource)
Constructor for JIRAs use.
|
DatasourceInfo(String name,
String fieldTypeName,
String schemaName,
JndiDatasourceInfo jndiDatasource)
Constructor for JIRAs use.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstraintNameClipLength() |
DatabaseType |
getDatabaseTypeFromJDBCConnection()
Provides a database type.
|
DatabaseType |
getDatabaseTypeFromJDBCConnection(Connection connection)
Provides a database type (extracted to enable mocking)
|
String |
getFieldTypeName() |
String |
getFkStyle() |
String |
getHelperClass() |
JdbcDatasourceInfo |
getJdbcDatasource() |
JndiDatasourceInfo |
getJndiDatasource() |
String |
getJoinStyle() |
String |
getName() |
String |
getSchemaName() |
Element |
getTyrexDataSourceElement() |
boolean |
isAddMissingOnStart() |
boolean |
isCheckFkIndicesOnStart() |
boolean |
isCheckForeignKeysOnStart() |
boolean |
isCheckOnStart() |
boolean |
isUseFkIndices() |
boolean |
isUseFkInitiallyDeferred() |
boolean |
isUseFks() |
boolean |
isUseFunctionBasedIndices() |
boolean |
isUseIndices() |
boolean |
isUsePkConstraintNames() |
protected static final Properties CONFIGURATION
public static final String AUTO_FIELD_TYPE
public static final String AUTO_SCHEMA_NAME
public static final String AUTO_CONSTRAINT_NAME_CLIP_LENGTH
public static final int DEFAULT_CONSTRAINT_NAME_CLIP_LENGTH
public DatasourceInfo(String name, String fieldTypeName, String schemaName, JdbcDatasourceInfo jdbcDatasource)
name - The name of the datasourcefieldTypeName - The type of the datasourceschemaName - The schema to use, may be nulljdbcDatasource - The JDBC datasourcepublic DatasourceInfo(String name, String fieldTypeName, String schemaName, JndiDatasourceInfo jndiDatasource)
name - The name of the datasourcefieldTypeName - The type of the datasourceschemaName - The schema to use, may be nulljndiDatasource - The JNDI datasourcepublic DatasourceInfo(Element element)
public String getFieldTypeName()
public String getSchemaName()
public int getConstraintNameClipLength()
public DatabaseType getDatabaseTypeFromJDBCConnection()
public DatabaseType getDatabaseTypeFromJDBCConnection(Connection connection)
public JndiDatasourceInfo getJndiDatasource()
public String getName()
public String getHelperClass()
public Element getTyrexDataSourceElement()
public JdbcDatasourceInfo getJdbcDatasource()
public boolean isCheckOnStart()
public boolean isAddMissingOnStart()
public boolean isUseFks()
public boolean isUseFkIndices()
public boolean isCheckForeignKeysOnStart()
public boolean isCheckFkIndicesOnStart()
public boolean isUsePkConstraintNames()
public boolean isUseFunctionBasedIndices()
public String getFkStyle()
public boolean isUseFkInitiallyDeferred()
public boolean isUseIndices()
public String getJoinStyle()
Copyright © 2024 Atlassian. All rights reserved.