**/
private void create_10_3_system_procedures_SYSIBM(
TransactionController tc)
throws StandardException {
//create 10.3 functions used by LOB methods.
UUID schema_uuid = getSysIBMSchemaDescriptor().getUUID();
{
UUID routine_uuid = null;
String[] arg_names = null;
TypeDescriptor[] arg_types = null;
routine_uuid = createSystemProcedureOrFunction(
"CLOBCREATELOCATOR",
schema_uuid,
arg_names,
arg_types,
0,
0,
RoutineAliasInfo.CONTAINS_SQL,
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.INTEGER, Integer.MAX_VALUE),
tc,
"org.apache.derby.impl.jdbc.LOBStoredProcedure");
}
{
UUID routine_uuid = null;
String[] arg_names = {"LOCATOR"};
TypeDescriptor[] arg_types = {
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.INTEGER)};
routine_uuid = createSystemProcedureOrFunction(
"CLOBRELEASELOCATOR",
schema_uuid,
arg_names,
arg_types,
0,
0,
RoutineAliasInfo.CONTAINS_SQL,
null,
tc,
"org.apache.derby.impl.jdbc.LOBStoredProcedure");
}
{
UUID routine_uuid = null;
String[] arg_names = {"LOCATOR","SEARCHSTR","POS"};
// procedure argument types
TypeDescriptor[] arg_types = {
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.INTEGER),
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.VARCHAR),
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.BIGINT)
};
routine_uuid = createSystemProcedureOrFunction(
"CLOBGETPOSITIONFROMSTRING",
schema_uuid,
arg_names,
arg_types,
0,
0,
RoutineAliasInfo.CONTAINS_SQL,
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.BIGINT, Limits.DB2_LOB_MAXWIDTH),
tc,
"org.apache.derby.impl.jdbc.LOBStoredProcedure");
}
{
UUID routine_uuid = null;
String[] arg_names = {"LOCATOR","SEARCHLOCATOR","POS"};
// procedure argument types
TypeDescriptor[] arg_types = {
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.INTEGER),
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.INTEGER),
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.BIGINT)
};
routine_uuid = createSystemProcedureOrFunction(
"CLOBGETPOSITIONFROMLOCATOR",
schema_uuid,
arg_names,
arg_types,
0,
0,
RoutineAliasInfo.CONTAINS_SQL,
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.BIGINT, Limits.DB2_LOB_MAXWIDTH),
tc,
"org.apache.derby.impl.jdbc.LOBStoredProcedure");
}
{
UUID routine_uuid = null;
String[] arg_names = {"LOCATOR"};
// procedure argument types
TypeDescriptor[] arg_types = {
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.INTEGER)
};
routine_uuid = createSystemProcedureOrFunction(
"CLOBGETLENGTH",
schema_uuid,
arg_names,
arg_types,
0,
0,
RoutineAliasInfo.CONTAINS_SQL,
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.BIGINT, Limits.DB2_LOB_MAXWIDTH),
tc,
"org.apache.derby.impl.jdbc.LOBStoredProcedure");
}
{
UUID routine_uuid = null;
String[] arg_names = {"LOCATOR","POS","LEN"};
// procedure argument types
TypeDescriptor[] arg_types = {
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.INTEGER),
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.BIGINT),
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.INTEGER)
};
routine_uuid = createSystemProcedureOrFunction(
"CLOBGETSUBSTRING",
schema_uuid,
arg_names,
arg_types,
0,
0,
RoutineAliasInfo.CONTAINS_SQL,
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.VARCHAR, Limits.DB2_VARCHAR_MAXWIDTH),
tc,
"org.apache.derby.impl.jdbc.LOBStoredProcedure");
}
{
UUID routine_uuid = null;
String[] arg_names = {"LOCATOR","POS","LEN","REPLACESTR"};
// procedure argument types
TypeDescriptor[] arg_types = {
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.INTEGER),
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.BIGINT),
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.INTEGER),
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.VARCHAR)
};
routine_uuid = createSystemProcedureOrFunction(
"CLOBSETSTRING",
schema_uuid,
arg_names,
arg_types,
0,
0,
RoutineAliasInfo.CONTAINS_SQL,
null,
tc,
"org.apache.derby.impl.jdbc.LOBStoredProcedure");
}
{
UUID routine_uuid = null;
String[] arg_names = {"LOCATOR","LEN"};
// procedure argument types
TypeDescriptor[] arg_types = {
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.INTEGER),
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.BIGINT)
};
routine_uuid = createSystemProcedureOrFunction(
"CLOBTRUNCATE",
schema_uuid,
arg_names,
arg_types,
0,
0,
RoutineAliasInfo.CONTAINS_SQL,
null,
tc,
"org.apache.derby.impl.jdbc.LOBStoredProcedure");
}
//Now create the Stored procedures required for BLOB
{
UUID routine_uuid = null;
String[] arg_names = null;
TypeDescriptor[] arg_types = null;
routine_uuid = createSystemProcedureOrFunction(
"BLOBCREATELOCATOR",
schema_uuid,
arg_names,
arg_types,
0,
0,
RoutineAliasInfo.CONTAINS_SQL,
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.INTEGER, Integer.MAX_VALUE),
tc,
"org.apache.derby.impl.jdbc.LOBStoredProcedure");
}
{
UUID routine_uuid = null;
String[] arg_names = {"LOCATOR"};
TypeDescriptor[] arg_types = {
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.INTEGER)};
routine_uuid = createSystemProcedureOrFunction(
"BLOBRELEASELOCATOR",
schema_uuid,
arg_names,
arg_types,
0,
0,
RoutineAliasInfo.CONTAINS_SQL,
null,
tc,
"org.apache.derby.impl.jdbc.LOBStoredProcedure");
}
{
UUID routine_uuid = null;
String[] arg_names = {"LOCATOR","SEARCHBYTES","POS"};
// procedure argument types
TypeDescriptor[] arg_types = {
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.INTEGER),
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.VARBINARY),
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.BIGINT)
};
routine_uuid = createSystemProcedureOrFunction(
"BLOBGETPOSITIONFROMBYTES",
schema_uuid,
arg_names,
arg_types,
0,
0,
RoutineAliasInfo.CONTAINS_SQL,
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.BIGINT, Limits.DB2_LOB_MAXWIDTH),
tc,
"org.apache.derby.impl.jdbc.LOBStoredProcedure");
}
{
UUID routine_uuid = null;
String[] arg_names = {"LOCATOR","SEARCHLOCATOR","POS"};
// procedure argument types
TypeDescriptor[] arg_types = {
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.INTEGER),
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.INTEGER),
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.BIGINT)
};
routine_uuid = createSystemProcedureOrFunction(
"BLOBGETPOSITIONFROMLOCATOR",
schema_uuid,
arg_names,
arg_types,
0,
0,
RoutineAliasInfo.CONTAINS_SQL,
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.BIGINT, Limits.DB2_LOB_MAXWIDTH),
tc,
"org.apache.derby.impl.jdbc.LOBStoredProcedure");
}
{
UUID routine_uuid = null;
String[] arg_names = {"LOCATOR"};
// procedure argument types
TypeDescriptor[] arg_types = {
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.INTEGER)
};
routine_uuid = createSystemProcedureOrFunction(
"BLOBGETLENGTH",
schema_uuid,
arg_names,
arg_types,
0,
0,
RoutineAliasInfo.CONTAINS_SQL,
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.BIGINT, Limits.DB2_LOB_MAXWIDTH),
tc,
"org.apache.derby.impl.jdbc.LOBStoredProcedure");
}
{
UUID routine_uuid = null;
String[] arg_names = {"LOCATOR","POS","LEN"};
// procedure argument types
TypeDescriptor[] arg_types = {
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.INTEGER),
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.BIGINT),
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.INTEGER)
};
routine_uuid = createSystemProcedureOrFunction(
"BLOBGETBYTES",
schema_uuid,
arg_names,
arg_types,
0,
0,
RoutineAliasInfo.CONTAINS_SQL,
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.VARBINARY, Limits.DB2_VARCHAR_MAXWIDTH),
tc,
"org.apache.derby.impl.jdbc.LOBStoredProcedure");
}
{
UUID routine_uuid = null;
String[] arg_names = {"LOCATOR","POS","LEN","REPLACEBYTES"};
// procedure argument types
TypeDescriptor[] arg_types = {
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.INTEGER),
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.BIGINT),
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.INTEGER),
DataTypeDescriptor.getBuiltInDataTypeDescriptor(
Types.VARBINARY)
};
routine_uuid = createSystemProcedureOrFunction(
"BLOBSETBYTES",
schema_uuid,
arg_names,
arg_types,
0,
0,
RoutineAliasInfo.CONTAINS_SQL,
null,
tc,
"org.apache.derby.impl.jdbc.LOBStoredProcedure");
}
{
UUID routine_uuid = null;
String[] arg_names = {"LOCATOR","LEN"};
// procedure argument types
TypeDescriptor[] arg_types = {
DataTypeDescriptor.getBuiltInDataTypeDescriptor(