Package liquibase.datatype.core
Class BigIntType
- java.lang.Object
-
- liquibase.datatype.LiquibaseDataType
-
- liquibase.datatype.core.BigIntType
-
- All Implemented Interfaces:
PrioritizedService
public class BigIntType extends LiquibaseDataType
Represents a signed integer number using 64 bits of storage.
-
-
Field Summary
-
Fields inherited from interface liquibase.servicelocator.PrioritizedService
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT
-
-
Constructor Summary
Constructors Constructor Description BigIntType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finishInitialization(String originalDefinition)
LoadDataChange.LOAD_DATA_TYPE
getLoadTypeName()
Returns one of the four basic data types for use in LoadData: BOOLEAN, NUMERIC, DATE or STRINGboolean
isAutoIncrement()
String
objectToSql(Object value, Database database)
Returns the value object in a format to include in SQL.void
setAutoIncrement(boolean autoIncrement)
DatabaseDataType
toDatabaseDataType(Database database)
Transforms this data type into the native data type of the target DBMS.-
Methods inherited from class liquibase.datatype.LiquibaseDataType
addParameter, equals, formatNumber, functionToSql, getAdditionalInformation, getAliases, getMaxParameters, getMinParameters, getName, getParameters, getPriority, getRawDefinition, hashCode, isCurrentDateTimeFunction, numberToSql, otherToSql, setAdditionalInformation, sqlToObject, supports, toString, validate
-
-
-
-
Method Detail
-
isAutoIncrement
public boolean isAutoIncrement()
- Overrides:
isAutoIncrement
in classLiquibaseDataType
-
setAutoIncrement
public void setAutoIncrement(boolean autoIncrement)
-
toDatabaseDataType
public DatabaseDataType toDatabaseDataType(Database database)
Description copied from class:LiquibaseDataType
Transforms this data type into the native data type of the target DBMS.- Overrides:
toDatabaseDataType
in classLiquibaseDataType
- Parameters:
database
- theDatabase
for which the native data type is to be constructed- Returns:
- the new, native data type
-
finishInitialization
public void finishInitialization(String originalDefinition)
- Overrides:
finishInitialization
in classLiquibaseDataType
-
objectToSql
public String objectToSql(Object value, Database database)
Description copied from class:LiquibaseDataType
Returns the value object in a format to include in SQL. Quote if necessary.- Overrides:
objectToSql
in classLiquibaseDataType
-
getLoadTypeName
public LoadDataChange.LOAD_DATA_TYPE getLoadTypeName()
Description copied from class:LiquibaseDataType
Returns one of the four basic data types for use in LoadData: BOOLEAN, NUMERIC, DATE or STRING- Specified by:
getLoadTypeName
in classLiquibaseDataType
- Returns:
- one of the above Strings
-
-