|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.sql.SqlCollation
public class SqlCollation
A SqlCollation
is an object representing a Collate
statement. It is immutable.
Nested Class Summary | |
---|---|
static class |
SqlCollation.Coercibility
A <character value expression> consisting of a column reference has the coercibility characteristic Implicit, with collating sequence as defined when the column was created. |
Field Summary | |
---|---|
private SqlCollation.Coercibility |
coercibility
|
protected String |
collationName
|
protected Locale |
locale
|
protected String |
strength
|
protected SerializableCharset |
wrappedCharset
|
Constructor Summary | |
---|---|
SqlCollation(SqlCollation.Coercibility coercibility)
Creates a SqlCollation with the default collation name and the given coercibility. |
|
SqlCollation(String collation,
SqlCollation.Coercibility coercibility)
Creates a Collation by its name and its coercibility |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final String collationName
protected final SerializableCharset wrappedCharset
protected final Locale locale
protected final String strength
private final SqlCollation.Coercibility coercibility
Constructor Detail |
---|
public SqlCollation(String collation, SqlCollation.Coercibility coercibility)
collation
- Collation specificationcoercibility
- Coercibilitypublic SqlCollation(SqlCollation.Coercibility coercibility)
coercibility
- CoercibilityMethod Detail |
---|
public boolean equals(Object o)
equals
in class Object
public static SqlCollation getCoercibilityDyadicOperator(SqlCollation col1, SqlCollation col2)
col1
- first operand for the dyadic operationcol2
- second operand for the dyadic operation
public static SqlCollation getCoercibilityDyadicOperatorThrows(SqlCollation col1, SqlCollation col2)
col1
- first operand for the dyadic operationcol2
- second operand for the dyadic operation
EigenbaseException
- EigenbaseResource.InvalidCompare
or
EigenbaseResource.DifferentCollations
if no collating sequence
can be deducedpublic static String getCoercibilityDyadicComparison(SqlCollation col1, SqlCollation col2)
col1
- first operand for the dyadic operationcol2
- second operand for the dyadic operation
EigenbaseResource.InvalidCompare
is thrownprotected static SqlCollation getCoercibilityDyadic(SqlCollation col1, SqlCollation col2)
getCoercibilityDyadicComparison(org.eigenbase.sql.SqlCollation, org.eigenbase.sql.SqlCollation)
and
getCoercibilityDyadicOperator(org.eigenbase.sql.SqlCollation, org.eigenbase.sql.SqlCollation)
.
public String toString()
toString
in class Object
public void unparse(SqlWriter writer, int leftPrec, int rightPrec)
public Charset getCharset()
public final String getCollationName()
public final SqlCollation.Coercibility getCoercibility()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |