use of org.apache.cayenne.access.types.CharType in project cayenne by apache.
the class SybaseAdapter method configureExtendedTypes.
/**
* Installs appropriate ExtendedTypes as converters for passing values
* between JDBC and Java layers.
*/
@Override
protected void configureExtendedTypes(ExtendedTypeMap map) {
super.configureExtendedTypes(map);
// create specially configured CharType handler
map.registerType(new CharType(true, false));
// create specially configured ByteArrayType handler
map.registerType(new ByteArrayType(true, false));
// address Sybase driver inability to handle java.lang.Short and
// java.lang.Byte
map.registerType(new ShortType(true));
map.registerType(new ByteType(true));
}
use of org.apache.cayenne.access.types.CharType in project cayenne by apache.
the class DB2Adapter method configureExtendedTypes.
@Override
protected void configureExtendedTypes(ExtendedTypeMap map) {
super.configureExtendedTypes(map);
// create specially configured CharType handler
map.registerType(new CharType(true, true));
// configure boolean type to work with numeric columns
map.registerType(new DB2BooleanType());
map.registerType(new ByteArrayType(false, false));
}
use of org.apache.cayenne.access.types.CharType in project cayenne by apache.
the class HSQLDBAdapter method configureExtendedTypes.
/**
* @since 4.0
*/
@Override
protected void configureExtendedTypes(ExtendedTypeMap map) {
super.configureExtendedTypes(map);
// create specially configured CharType handler
map.registerType(new CharType(true, true));
}
use of org.apache.cayenne.access.types.CharType in project cayenne by apache.
the class MySQLAdapter method configureExtendedTypes.
/**
* Installs appropriate ExtendedTypes used as converters for passing values
* between JDBC and Java layers.
*/
@Override
protected void configureExtendedTypes(ExtendedTypeMap map) {
super.configureExtendedTypes(map);
// must handle CLOBs as strings, otherwise there
// are problems with NULL clobs that are treated
// as empty strings... somehow this doesn't happen
// for BLOBs (ConnectorJ v. 3.0.9)
map.registerType(new CharType(false, false));
map.registerType(new ByteArrayType(false, false));
}
Aggregations