Package adams.db.types
Class TypesPostgreSQL
- java.lang.Object
-
- adams.db.types.AbstractTypes
-
- adams.db.types.TypesPostgreSQL
-
- All Implemented Interfaces:
Serializable
public class TypesPostgreSQL extends AbstractTypes
Column types for PostgreSQL.- 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 TypesPostgreSQL()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAutoIncrementCreateType(int type)Returns the type definition for auto increment types.StringgetTimestampDefault()Returns the default used for timestamps.booleanhandles(String url)Checks whether this URL is handled.StringtoTypeString(int type, int size, boolean compare)Get a string representation of this type for comparison or create purposes.booleanusesTimestampDefault()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:
toTypeStringin 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:
getAutoIncrementCreateTypein 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:
usesTimestampDefaultin classAbstractTypes- Returns:
- true if a default is used
-
getTimestampDefault
public String getTimestampDefault()
Returns the default used for timestamps.- Specified by:
getTimestampDefaultin classAbstractTypes- Returns:
- the default, null if none used
-
handles
public boolean handles(String url)
Checks whether this URL is handled.- Specified by:
handlesin classAbstractTypes- Parameters:
url- the URL to check- Returns:
- true if handled by this type class
-
-