Search in sources :

Example 1 with ServiceParameterBufferImp

use of org.firebirdsql.gds.impl.ServiceParameterBufferImp in project jaybird by FirebirdSQL.

the class V13ParameterConverter method createServiceParameterBuffer.

protected ServiceParameterBuffer createServiceParameterBuffer(WireServiceConnection connection) {
    final Encoding stringEncoding = connection.getEncodingFactory().getEncodingForFirebirdName("UTF8");
    ServiceParameterBuffer spb = new ServiceParameterBufferImp(ServiceParameterBufferImp.SpbMetaData.SPB_VERSION_3_ATTACH, stringEncoding);
    spb.addArgument(SpbItems.isc_spb_utf8_filename);
    return spb;
}
Also used : Encoding(org.firebirdsql.encodings.Encoding) ServiceParameterBufferImp(org.firebirdsql.gds.impl.ServiceParameterBufferImp)

Example 2 with ServiceParameterBufferImp

use of org.firebirdsql.gds.impl.ServiceParameterBufferImp in project jaybird by FirebirdSQL.

the class V12ParameterConverter method createServiceParameterBuffer.

protected ServiceParameterBuffer createServiceParameterBuffer(WireServiceConnection connection) {
    final Encoding stringEncoding = connection.getEncodingFactory().getEncodingForFirebirdName("UTF8");
    ServiceParameterBuffer spb = new ServiceParameterBufferImp(ServiceParameterBufferImp.SpbMetaData.SPB_VERSION_2_ATTACH, stringEncoding);
    spb.addArgument(SpbItems.isc_spb_utf8_filename);
    return spb;
}
Also used : Encoding(org.firebirdsql.encodings.Encoding) ServiceParameterBuffer(org.firebirdsql.gds.ServiceParameterBuffer) ServiceParameterBufferImp(org.firebirdsql.gds.impl.ServiceParameterBufferImp)

Aggregations

Encoding (org.firebirdsql.encodings.Encoding)2 ServiceParameterBufferImp (org.firebirdsql.gds.impl.ServiceParameterBufferImp)2 ServiceParameterBuffer (org.firebirdsql.gds.ServiceParameterBuffer)1