Package adams.db.types
Class TypesSQLite
- java.lang.Object
-
- adams.db.types.AbstractTypes
-
- adams.db.types.TypesSQLite
-
- All Implemented Interfaces:
Serializable
public class TypesSQLite extends AbstractTypes
Column types for SQLite.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.db.types.AbstractTypes
m_Cache, m_Types, MAX_MEDIUMTEXT, MAX_TEXT, MAX_VARCHAR
-
-
Constructor Summary
Constructors Constructor Description TypesSQLite()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAutoIncrementCreateType(int type)
Returns the type definition for auto increment types.String
getTimestampDefault()
Returns the default used for timestamps.boolean
handles(String url)
Checks whether this URL is handled.String
toTypeString(int type, int size, boolean compare)
Get a string representation of this type for comparison or create purposes.boolean
usesTimestampDefault()
Whether a default is used for timestamps.-
Methods inherited from class adams.db.types.AbstractTypes
actualSize, getHandler
-
-
-
-
Method Detail
-
toTypeString
public String toTypeString(int type, int size, boolean compare)
Get a string representation of this type for comparison or create purposes.- Specified by:
toTypeString
in classAbstractTypes
- Parameters:
type
- the typesize
- the sizecompare
- if true then a string for comparison is returned, otherwise for creation- Returns:
- string representation of this type
-
getAutoIncrementCreateType
public String getAutoIncrementCreateType(int type)
Returns the type definition for auto increment types.- Specified by:
getAutoIncrementCreateType
in classAbstractTypes
- Parameters:
type
- the preferred type - ignored- Returns:
- the definition for creating the column
-
usesTimestampDefault
public boolean usesTimestampDefault()
Whether a default is used for timestamps.- Specified by:
usesTimestampDefault
in classAbstractTypes
- Returns:
- true if a default is used
-
getTimestampDefault
public String getTimestampDefault()
Returns the default used for timestamps.- Specified by:
getTimestampDefault
in classAbstractTypes
- Returns:
- the default, null if none used
-
handles
public boolean handles(String url)
Checks whether this URL is handled.- Specified by:
handles
in classAbstractTypes
- Parameters:
url
- the URL to check- Returns:
- true if handled by this type class
-
-