org.hsqldb.types
Class Collation
- java.lang.Object
-
- org.hsqldb.types.Collation
-
- All Implemented Interfaces:
- SchemaObject
public class Collation extends java.lang.Object implements SchemaObject
Implementation of collation support for CHAR and VARCHAR data.- Since:
- 1.8.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hsqldb.SchemaObject
SchemaObject.ConstraintTypes, SchemaObject.Deferable, SchemaObject.Nullability, SchemaObject.ParameterModes, SchemaObject.ReferentialAction, SchemaObject.ViewCheckModes
-
-
Field Summary
Fields Modifier and Type Field and Description static HashMapdbNameToCollationstatic HashMapdbNameToJavaNamestatic HashMapnameToJavaName-
Fields inherited from interface org.hsqldb.SchemaObject
ASSERTION, CATALOG, CHARSET, COLLATION, COLUMN, CONSTRAINT, CURSOR, DOMAIN, emptyArray, FUNCTION, GRANTEE, INDEX, LABEL, PARAMETER, PROCEDURE, ROUTINE, SCHEMA, SEARCH, SEQUENCE, SERVER, SPECIFIC_ROUTINE, SUBQUERY, TABLE, TRANSITION, TRIGGER, TYPE, VARIABLE, VIEW, WRAPPER
-
-
Constructor Summary
Constructors Constructor and Description Collation(HsqlNameManager.HsqlName name, Collation source, Charset charset, java.lang.Boolean padSpace)
-
Method Summary
-
-
-
Field Detail
-
nameToJavaName
public static final HashMap nameToJavaName
-
dbNameToJavaName
public static final HashMap dbNameToJavaName
-
dbNameToCollation
public static final HashMap dbNameToCollation
-
-
Constructor Detail
-
Collation
public Collation(HsqlNameManager.HsqlName name, Collation source, Charset charset, java.lang.Boolean padSpace)
-
-
Method Detail
-
getDefaultInstance
public static Collation getDefaultInstance()
-
getDefaultIgnoreCaseInstance
public static Collation getDefaultIgnoreCaseInstance()
-
newDatabaseInstance
public static Collation newDatabaseInstance()
-
getCollationsIterator
public static Iterator getCollationsIterator()
-
getLocalesIterator
public static Iterator getLocalesIterator()
-
getCollation
public static Collation getCollation(java.lang.String name)
-
setPadding
public void setPadding(boolean padSpace)
-
setCollationAsLocale
public void setCollationAsLocale()
-
setCollation
public void setCollation(java.lang.String newName, java.lang.Boolean padSpace)
-
isPadSpace
public boolean isPadSpace()
-
isUnicodeSimple
public boolean isUnicodeSimple()
-
isUpperCaseCompare
public boolean isUpperCaseCompare()
-
isCaseSensitive
public boolean isCaseSensitive()
-
compare
public int compare(java.lang.String a, java.lang.String b)returns -1, 0 or +1
-
toUpperCase
public java.lang.String toUpperCase(java.lang.String s)
-
toLowerCase
public java.lang.String toLowerCase(java.lang.String s)
-
isDefaultCollation
public boolean isDefaultCollation()
the SQL_TEXT collation
-
isObjectCollation
public boolean isObjectCollation()
collation for individual object
-
getName
public HsqlNameManager.HsqlName getName()
- Specified by:
getNamein interfaceSchemaObject
-
getType
public int getType()
- Specified by:
getTypein interfaceSchemaObject
-
getSchemaName
public HsqlNameManager.HsqlName getSchemaName()
- Specified by:
getSchemaNamein interfaceSchemaObject
-
getCatalogName
public HsqlNameManager.HsqlName getCatalogName()
- Specified by:
getCatalogNamein interfaceSchemaObject
-
getOwner
public Grantee getOwner()
- Specified by:
getOwnerin interfaceSchemaObject
-
getReferences
public OrderedHashSet getReferences()
- Specified by:
getReferencesin interfaceSchemaObject
-
getComponents
public OrderedHashSet getComponents()
- Specified by:
getComponentsin interfaceSchemaObject
-
compile
public void compile(Session session, SchemaObject parentObject)
- Specified by:
compilein interfaceSchemaObject
-
getSQL
public java.lang.String getSQL()
- Specified by:
getSQLin interfaceSchemaObject
-
getChangeTimestamp
public long getChangeTimestamp()
- Specified by:
getChangeTimestampin interfaceSchemaObject
-
getCollateSQL
public java.lang.String getCollateSQL()
-
getDatabaseCollationSQL
public java.lang.String getDatabaseCollationSQL()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG