public class Model
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
(package private) static interface |
Model.DataOperatorProvider<T extends cz.o2.proxima.repository.DataOperator> |
(package private) static interface |
Model.EntityDescriptorProvider |
class |
Model.Event
Class wrapping views on entity event
|
class |
Model.EventWrapper
Class wrapping access to attribute data of entity event.
|
class |
Model.Product
Class wrapping views on entity product
|
class |
Model.ProductWrapper
Class wrapping access to attribute data of entity product.
|
class |
Model.User
Class wrapping views on entity user
|
class |
Model.UserWrapper
Class wrapping access to attribute data of entity user.
|
| Modifier and Type | Field and Description |
|---|---|
private com.typesafe.config.Config |
cfg |
private Model.Event |
event |
private cz.o2.proxima.repository.RepositoryFactory |
factory |
private static java.lang.String |
GENERATED_FROM |
private Model.Product |
product |
private Model.User |
user |
| Modifier | Constructor and Description |
|---|---|
private |
Model(cz.o2.proxima.repository.ConfigRepository.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
Model.Event |
getEvent() |
Model.Product |
getProduct() |
cz.o2.proxima.repository.Repository |
getRepo() |
Model.User |
getUser() |
static Model |
of(com.typesafe.config.Config cfg)
Create instance of
Model for production usage. |
static Model |
of(cz.o2.proxima.repository.ConfigRepository.Builder builder)
Create instance of
Model with specified ConfigRepository.Builder. |
static Model |
ofTest(com.typesafe.config.Config config,
cz.o2.proxima.repository.Repository.Validate... validations)
Create instance of
Model for testing purposes. |
private static final java.lang.String GENERATED_FROM
private final com.typesafe.config.Config cfg
private final cz.o2.proxima.repository.RepositoryFactory factory
private final Model.Product product
private final Model.Event event
private final Model.User user
public static Model of(com.typesafe.config.Config cfg)
Model for production usage.cfg - configuration to usepublic static Model of(cz.o2.proxima.repository.ConfigRepository.Builder builder)
Model with specified ConfigRepository.Builder.builder - configuration to usepublic static Model ofTest(com.typesafe.config.Config config, cz.o2.proxima.repository.Repository.Validate... validations)
Model for testing purposes.config - the configuration to usevalidations - which validations to performpublic Model.Product getProduct()
public Model.Event getEvent()
public Model.User getUser()
public cz.o2.proxima.repository.Repository getRepo()
Copyright © 2017–2022. All rights reserved.