Skip to content

Package: KapuaEntityAttributes

KapuaEntityAttributes

nameinstructionbranchcomplexitylinemethod
KapuaEntityAttributes()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2016, 2022 Eurotech and/or its affiliates and others
3: *
4: * This program and the accompanying materials are made
5: * available under the terms of the Eclipse Public License 2.0
6: * which is available at https://www.eclipse.org/legal/epl-2.0/
7: *
8: * SPDX-License-Identifier: EPL-2.0
9: *
10: * Contributors:
11: * Eurotech - initial API and implementation
12: *******************************************************************************/
13: package org.eclipse.kapua.model;
14:
15: import org.eclipse.kapua.model.query.KapuaQuery;
16:
17: /**
18: * {@link KapuaEntity} attributes.
19: * <p>
20: * These attributes can be used in the {@link org.eclipse.kapua.model.query.predicate.AttributePredicate} to specify which property
21: * to filter {@link org.eclipse.kapua.service.KapuaEntityService#query(KapuaQuery)} and {@link org.eclipse.kapua.service.KapuaEntityService#count(KapuaQuery)} results
22: *
23: * @since 1.0.0
24: */
25: public class KapuaEntityAttributes {
26:
27: protected KapuaEntityAttributes() {
28: }
29:
30: /**
31: * Predicate for field {@link KapuaEntity#getScopeId()}
32: *
33: * @since 1.0.0
34: */
35: public static final String SCOPE_ID = "scopeId";
36:
37: /**
38: * Predicate for field {@link KapuaEntity#getId()}
39: *
40: * @since 1.0.0
41: */
42: public static final String ENTITY_ID = "id";
43:
44: /**
45: * Predicate for field {@link KapuaEntity#getCreatedOn()}
46: *
47: * @since 1.0.0
48: */
49: public static final String CREATED_ON = "createdOn";
50:
51: /**
52: * Predicate for field {@link KapuaEntity#getCreatedBy()}
53: *
54: * @since 1.0.0
55: */
56: public static final String CREATED_BY = "createdBy";
57:
58: }