mirror of
https://github.com/github/codeql.git
synced 2026-05-04 21:25:44 +02:00
SQLi test case
This commit is contained in:
23
java/ql/test/stubs/couchbaseClient/com/couchbase/client/java/Bucket.java
generated
Normal file
23
java/ql/test/stubs/couchbaseClient/com/couchbase/client/java/Bucket.java
generated
Normal file
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Copyright (c) 2016 Couchbase, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.couchbase.client.java;
|
||||
|
||||
public class Bucket {
|
||||
|
||||
public Collection defaultCollection() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -13,14 +13,20 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.couchbase.client.java;
|
||||
|
||||
import com.couchbase.client.core.env.SeedNode;
|
||||
import com.couchbase.client.java.query.QueryResult;
|
||||
import java.io.Closeable;
|
||||
import java.util.Set;
|
||||
|
||||
public class Cluster implements Closeable {
|
||||
|
||||
public Bucket bucket(String bucketName) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static Cluster connect(
|
||||
final String connectionString, final String username, final String password) {
|
||||
return null;
|
||||
@@ -34,6 +40,10 @@ public class Cluster implements Closeable {
|
||||
return null;
|
||||
}
|
||||
|
||||
public QueryResult query(final String statement) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close() {}
|
||||
}
|
||||
50
java/ql/test/stubs/couchbaseClient/com/couchbase/client/java/Collection.java
generated
Normal file
50
java/ql/test/stubs/couchbaseClient/com/couchbase/client/java/Collection.java
generated
Normal file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Copyright (c) 2018 Couchbase, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.couchbase.client.java;
|
||||
|
||||
import com.couchbase.client.java.kv.InsertOptions;
|
||||
import com.couchbase.client.java.kv.MutationResult;
|
||||
import com.couchbase.client.java.kv.ReplaceOptions;
|
||||
import com.couchbase.client.java.kv.UpsertOptions;
|
||||
|
||||
public class Collection {
|
||||
|
||||
public MutationResult insert(final String id, final Object content) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public MutationResult insert(final String id, final Object content, final InsertOptions options) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public MutationResult upsert(final String id, final Object content) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public MutationResult upsert(final String id, final Object content, final UpsertOptions options) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public MutationResult replace(final String id, final Object content) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public MutationResult replace(
|
||||
final String id, final Object content, final ReplaceOptions options) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
19
java/ql/test/stubs/couchbaseClient/com/couchbase/client/java/CommonOptions.java
generated
Normal file
19
java/ql/test/stubs/couchbaseClient/com/couchbase/client/java/CommonOptions.java
generated
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* Copyright (c) 2018 Couchbase, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.couchbase.client.java;
|
||||
|
||||
public abstract class CommonOptions<SELF extends CommonOptions<SELF>> {}
|
||||
33
java/ql/test/stubs/couchbaseClient/com/couchbase/client/java/json/JsonObject.java
generated
Normal file
33
java/ql/test/stubs/couchbaseClient/com/couchbase/client/java/json/JsonObject.java
generated
Normal file
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* Copyright (c) 2016 Couchbase, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.couchbase.client.java.json;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class JsonObject extends JsonValue implements Serializable {
|
||||
|
||||
public static JsonObject create() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonObject put(final String name, final Object value) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JsonObject putNull(final String name) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
19
java/ql/test/stubs/couchbaseClient/com/couchbase/client/java/json/JsonValue.java
generated
Normal file
19
java/ql/test/stubs/couchbaseClient/com/couchbase/client/java/json/JsonValue.java
generated
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* Copyright (c) 2016 Couchbase, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.couchbase.client.java.json;
|
||||
|
||||
|
||||
public abstract class JsonValue {}
|
||||
22
java/ql/test/stubs/couchbaseClient/com/couchbase/client/java/kv/CommonDurabilityOptions.java
generated
Normal file
22
java/ql/test/stubs/couchbaseClient/com/couchbase/client/java/kv/CommonDurabilityOptions.java
generated
Normal file
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Copyright (c) 2018 Couchbase, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.couchbase.client.java.kv;
|
||||
|
||||
import com.couchbase.client.java.CommonOptions;
|
||||
|
||||
public abstract class CommonDurabilityOptions<SELF extends CommonDurabilityOptions<SELF>>
|
||||
extends CommonOptions<SELF> {}
|
||||
19
java/ql/test/stubs/couchbaseClient/com/couchbase/client/java/kv/InsertOptions.java
generated
Normal file
19
java/ql/test/stubs/couchbaseClient/com/couchbase/client/java/kv/InsertOptions.java
generated
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* Copyright (c) 2018 Couchbase, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.couchbase.client.java.kv;
|
||||
|
||||
public class InsertOptions extends CommonDurabilityOptions<InsertOptions> {}
|
||||
24
java/ql/test/stubs/couchbaseClient/com/couchbase/client/java/kv/MutationResult.java
generated
Normal file
24
java/ql/test/stubs/couchbaseClient/com/couchbase/client/java/kv/MutationResult.java
generated
Normal file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Copyright (c) 2018 Couchbase, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.couchbase.client.java.kv;
|
||||
|
||||
/**
|
||||
* Result returned from all kinds of Key-Value mutation operations.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*/
|
||||
public class MutationResult {}
|
||||
19
java/ql/test/stubs/couchbaseClient/com/couchbase/client/java/kv/ReplaceOptions.java
generated
Normal file
19
java/ql/test/stubs/couchbaseClient/com/couchbase/client/java/kv/ReplaceOptions.java
generated
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* Copyright (c) 2018 Couchbase, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.couchbase.client.java.kv;
|
||||
|
||||
public class ReplaceOptions extends CommonDurabilityOptions<ReplaceOptions> {}
|
||||
26
java/ql/test/stubs/couchbaseClient/com/couchbase/client/java/kv/UpsertOptions.java
generated
Normal file
26
java/ql/test/stubs/couchbaseClient/com/couchbase/client/java/kv/UpsertOptions.java
generated
Normal file
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* Copyright (c) 2018 Couchbase, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.couchbase.client.java.kv;
|
||||
|
||||
public class UpsertOptions extends CommonDurabilityOptions<UpsertOptions> {
|
||||
|
||||
private UpsertOptions() {}
|
||||
|
||||
public static UpsertOptions upsertOptions() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
19
java/ql/test/stubs/couchbaseClient/com/couchbase/client/java/query/QueryResult.java
generated
Normal file
19
java/ql/test/stubs/couchbaseClient/com/couchbase/client/java/query/QueryResult.java
generated
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* Copyright (c) 2019 Couchbase, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.couchbase.client.java.query;
|
||||
|
||||
public class QueryResult {}
|
||||
Reference in New Issue
Block a user