📄 platforminfo.java
字号:
* column definition.
*
* @return <code>true</code> if the auto-increment spec is done via the DEFAULT value
*/
public boolean isDefaultValueUsedForIdentitySpec()
{
return _defaultValueUsedForIdentitySpec;
}
/**
* Specifies whether the auto-increment specification uses the DEFAULT value of the
* column definition.
*
* @param identitySpecUsesDefaultValue <code>true</code> if the auto-increment spec is
* done via the DEFAULT value
*/
public void setDefaultValueUsedForIdentitySpec(boolean identitySpecUsesDefaultValue)
{
_defaultValueUsedForIdentitySpec = identitySpecUsesDefaultValue;
}
// properties influencing the reading of models from live databases
/**
* Determines whether database-generated indices for primary and foreign keys are
* returned when reading a model from a database.
*
* @return <code>true</code> if system indices are read from a live database
*/
public boolean isSystemIndicesReturned()
{
return _systemIndicesReturned;
}
/**
* Specifies whether database-generated indices for primary and foreign keys are
* returned when reading a model from a database.
*
* @param returningSystemIndices <code>true</code> if system indices are read from
* a live database
*/
public void setSystemIndicesReturned(boolean returningSystemIndices)
{
_systemIndicesReturned = returningSystemIndices;
}
/**
* Determines whether system indices for foreign keys are always non-unique or can be
* unique (i.e. if a primary key column is used to establish the foreign key).
*
* @return <code>true</code> if system foreign key indices are always non-unique;
* default is <code>false</code>
*/
public boolean isSystemForeignKeyIndicesAlwaysNonUnique()
{
return _systemForeignKeyIndicesAlwaysNonUnique;
}
/**
* Specifies whether system indices for foreign keys are always non-unique or can be
* unique (i.e. if a primary key column is used to establish the foreign key).
*
* @param alwaysNonUnique <code>true</code> if system foreign key indices are always
* non-unique
*/
public void setSystemForeignKeyIndicesAlwaysNonUnique(boolean alwaysNonUnique)
{
_systemForeignKeyIndicesAlwaysNonUnique = alwaysNonUnique;
}
/**
* Determines whether the platform returns synthetic default values (e.g. 0 for numeric
* columns etc.) for non-identity required columns when reading a model from a database.
*
* @return <code>true</code> if synthetic default values are returned for non-identity
* required columns
*/
public boolean isSyntheticDefaultValueForRequiredReturned()
{
return _syntheticDefaultValueForRequiredReturned;
}
/**
* Specifies whether the platform returns synthetic default values (e.g. 0 for numeric
* columns etc.) for non-identity required columns when reading a model from a database.
*
* @param returningDefaultValue <code>true</code> if synthetic default values are returned for
* non-identity required columns
*/
public void setSyntheticDefaultValueForRequiredReturned(boolean returningDefaultValue)
{
_syntheticDefaultValueForRequiredReturned = returningDefaultValue;
}
/**
* Determines whether the platform is able to read the auto-increment status for columns
* from an existing database.
*
* @return <code>true</code> if the auto-increment status can be determined from an existing
* database
*/
public boolean getIdentityStatusReadingSupported()
{
return _identityStatusReadingSupported;
}
/**
* Specifies whether the platform is able to read the auto-increment status for columns
* from an existing database.
*
* @param canReadAutoIncrementStatus <code>true</code> if the auto-increment status can be
* determined from an existing database
*/
public void setIdentityStatusReadingSupported(boolean canReadAutoIncrementStatus)
{
_identityStatusReadingSupported = canReadAutoIncrementStatus;
}
// other ddl properties
/**
* Determines whether the database supports SQL comments.
*
* @return <code>true</code> if comments are supported
*/
public boolean isSqlCommentsSupported()
{
return _sqlCommentsSupported;
}
/**
* Specifies whether SQL comments are supported by the database.
*
* @param commentsSupported <code>true</code> if comments are supported
*/
public void setSqlCommentsSupported(boolean commentsSupported)
{
_sqlCommentsSupported = commentsSupported;
}
/**
* Determines whether delimited identifiers are supported.
*
* @return <code>true</code> if delimited identifiers are supported
*/
public boolean isDelimitedIdentifiersSupported()
{
return _delimitedIdentifiersSupported;
}
/**
* Specifies whether delimited identifiers are supported.
*
* @param areSupported <code>true</code> if delimited identifiers are supported
*/
public void setDelimitedIdentifiersSupported(boolean areSupported)
{
_delimitedIdentifiersSupported = areSupported;
}
/**
* Determines whether an ALTER TABLE statement shall be used for dropping indices
* or constraints. The default is false.
*
* @return <code>true</code> if ALTER TABLE is required
*/
public boolean isAlterTableForDropUsed()
{
return _alterTableForDropUsed;
}
/**
* Specifies whether an ALTER TABLE statement shall be used for dropping indices
* or constraints.
*
* @param useAlterTableForDrop Whether ALTER TABLE will be used
*/
public void setAlterTableForDropUsed(boolean useAlterTableForDrop)
{
_alterTableForDropUsed = useAlterTableForDrop;
}
/**
* Determines whether the platform is allows the explicit specification of values for
* identity columns in INSERT/UPDATE statements.
*
* @return <code>true</code> if values for identity columns can be specified
*/
public boolean isIdentityOverrideAllowed()
{
return _identityOverrideAllowed;
}
/**
* Specifies whether the platform is allows the explicit specification of values for
* identity columns in INSERT/UPDATE statements.
*
* @param identityOverrideAllowed <code>true</code> if values for identity columns can be specified
*/
public void setIdentityOverrideAllowed(boolean identityOverrideAllowed)
{
_identityOverrideAllowed = identityOverrideAllowed;
}
/**
* Determines whether the values of identity columns can be read back from the
* database after insertion of a row.
*
* @return <code>true</code> if the identity column(s) can be read back
*/
public boolean isLastIdentityValueReadable()
{
return _lastIdentityValueReadable;
}
/**
* Specifies whether the values of identity columns can be read back from the
* database after insertion of a row.
*
* @param lastIdentityValueReadable <code>true</code> if the identity column(s) can be read back
*/
public void setLastIdentityValueReadable(boolean lastIdentityValueReadable)
{
_lastIdentityValueReadable = lastIdentityValueReadable;
}
/**
* Determines whether auto-commit mode for the reading of the values of identity columns
* after insertion shall be used, i.e. whether between the insertion of the row and the
* reading of the database-generated identity value a commit is issued.
*
* @return <code>true</code> if auto-commit mode is used
*/
public boolean isAutoCommitModeForLastIdentityValueReading()
{
return _autoCommitModeForLastIdentityValueReading;
}
/**
* Determines whether auto-commit mode for the reading of the values of identity columns
* after insertion shall be used, i.e. whether between the insertion of the row and the
* reading of the database-generated identity value a commit is issued.
*
* @param autoCommitModeForLastIdentityValueReading <code>true</code> if auto-commit mode
* shall be used
*/
public void setAutoCommitModeForLastIdentityValueReading(boolean autoCommitModeForLastIdentityValueReading)
{
_autoCommitModeForLastIdentityValueReading = autoCommitModeForLastIdentityValueReading;
}
/**
* Returns the maximum number of characters that a table name can have.
*
* @return The number of characters, or -1 if not limited
*/
public int getMaxTableNameLength()
{
return _maxTableNameLength;
}
/**
* Returns the maximum number of characters that a column name can have.
*
* @return The number of characters, or -1 if not limited
*/
public int getMaxColumnNameLength()
{
return _maxColumnNameLength;
}
/**
* Returns the maximum number of characters that a constraint name can have.
*
* @return The number of characters, or -1 if not limited
*/
public int getMaxConstraintNameLength()
{
return _maxConstraintNameLength;
}
/**
* Returns the maximum number of characters that a foreign key name can have.
*
* @return The number of characters, or -1 if not limited
*/
public int getMaxForeignKeyNameLength()
{
return _maxForeignKeyNameLength;
}
/**
* Sets the maximum length of all identifiers that this database allows.
* Use this method if the length limit is the same for all kinds of identifiers.
*
* @param maxIdentifierLength The maximum identifier length, -1 if unlimited
*/
public void setMaxIdentifierLength(int maxIdentifierLength)
{
_maxTableNameLength = maxIdentifierLength;
_maxColumnNameLength = maxIdentifierLength;
_maxConstraintNameLength = maxIdentifierLength;
_maxForeignKeyNameLength = maxIdentifierLength;
}
/**
* Sets the maximum length of table names that this database allows.
*
* @param maxTableNameLength The maximum length, -1 if unlimited
*/
public void setMaxTableNameLength(int maxTableNameLength)
{
_maxTableNameLength = maxTableNameLength;
}
/**
* Sets the maximum length of column names that this database allows.
*
* @param maxColumnNameLength The maximum length, -1 if unlimited
*/
public void setMaxColumnNameLength(int maxColumnNameLength)
{
_maxColumnNameLength = maxColumnNameLength;
}
/**
* Sets the maximum length of constraint names that this database allows.
*
* @param maxConstraintNameLength The maximum length, -1 if unlimited
*/
public void setMaxConstraintNameLength(int maxConstraintNameLength)
{
_maxConstraintNameLength = maxConstraintNameLength;
}
/**
* Sets the maximum length of foreign key names that this database allows.
*
* @param maxForeignKeyNameLength The maximum length, -1 if unlimited
*/
public void setMaxForeignKeyNameLength(int maxForeignKeyNameLength)
{
_maxForeignKeyNameLength = maxForeignKeyNameLength;
}
/**
* Returns the text that is used to delimit identifiers (eg. table names).
* Per default, this is a double quotation character (").
*
* @return The delimiter text
*/
public String getDelimiterToken()
{
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -