db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel John Debrunner <...@apache.org>
Subject Re: more on system schema vs. user schema and character constants.
Date Thu, 31 May 2007 04:54:03 GMT
Daniel John Debrunner wrote:

> If this code is frequent it might be worth creating a utility method in 
> ValueNode as
> 
>  setSchemaCollation() {
>     getTypeServices().setCollationType(
>      getSchemaDescriptor(null).getCollationType());
>  }

Might even be worth passing the derivation to the method as well since 
everytime both need to be set. (A couple of cases depend on the 
derivation defaulting to implicit, but it might be clearer and safer to 
explicitly set it).

  setSchemaCollation(int derivation) {
     getTypeServices().setCollationDerivation(derivation);
     getTypeServices().setCollationType(
      getSchemaDescriptor(null).getCollationType());
}

Dan.

Mime
View raw message