Package org.ofbiz.core.entity.config
Class DatasourceInfo
java.lang.Object
org.ofbiz.core.entity.config.DatasourceInfo
Info about a datasource
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final StringIf 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 final Stringprotected static final Propertiesstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionDatasourceInfo(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.DatasourceInfo(Element element) -
Method Summary
Modifier and TypeMethodDescriptionintProvides a database type.getDatabaseTypeFromJDBCConnection(Connection connection) Provides a database type (extracted to enable mocking)getName()booleanbooleanbooleanbooleanbooleanbooleanbooleanisUseFks()booleanbooleanboolean
-
Field Details
-
CONFIGURATION
-
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. -
AUTO_SCHEMA_NAME
-
AUTO_CONSTRAINT_NAME_CLIP_LENGTH
-
DEFAULT_CONSTRAINT_NAME_CLIP_LENGTH
public static final int DEFAULT_CONSTRAINT_NAME_CLIP_LENGTH- See Also:
-
-
Constructor Details
-
DatasourceInfo
public DatasourceInfo(String name, String fieldTypeName, String schemaName, JdbcDatasourceInfo jdbcDatasource) Constructor for JIRAs use. The defaults are set such that these properties are the only ones that need setting.- Parameters:
name- The name of the datasourcefieldTypeName- The type of the datasourceschemaName- The schema to use, may be nulljdbcDatasource- The JDBC datasource
-
DatasourceInfo
public DatasourceInfo(String name, String fieldTypeName, String schemaName, JndiDatasourceInfo jndiDatasource) Constructor for JIRAs use. The defaults are set such that these properties are the only ones that need setting.- Parameters:
name- The name of the datasourcefieldTypeName- The type of the datasourceschemaName- The schema to use, may be nulljndiDatasource- The JNDI datasource
-
DatasourceInfo
-
-
Method Details
-
getFieldTypeName
-
getSchemaName
-
getConstraintNameClipLength
public int getConstraintNameClipLength() -
getDatabaseTypeFromJDBCConnection
Provides a database type.- Returns:
- the database type.
-
getDatabaseTypeFromJDBCConnection
Provides a database type (extracted to enable mocking)- Returns:
- the database type.
-
getJndiDatasource
-
getName
-
getHelperClass
-
getTyrexDataSourceElement
-
getJdbcDatasource
-
isCheckOnStart
public boolean isCheckOnStart() -
isAddMissingOnStart
public boolean isAddMissingOnStart() -
isUseFks
public boolean isUseFks() -
isUseFkIndices
public boolean isUseFkIndices() -
isCheckForeignKeysOnStart
public boolean isCheckForeignKeysOnStart() -
isCheckFkIndicesOnStart
public boolean isCheckFkIndicesOnStart() -
isUsePkConstraintNames
public boolean isUsePkConstraintNames() -
isUseFunctionBasedIndices
public boolean isUseFunctionBasedIndices() -
getFkStyle
-
isUseFkInitiallyDeferred
public boolean isUseFkInitiallyDeferred() -
isUseIndices
public boolean isUseIndices() -
getJoinStyle
-