Package cz.o2.proxima.testing.model
Class Model
- java.lang.Object
-
- cz.o2.proxima.testing.model.Model
-
- All Implemented Interfaces:
java.io.Serializable
public class Model extends java.lang.Object implements java.io.Serializable- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classModel.EventClass wrapping views on entity eventclassModel.EventWrapperClass wrapping access to attribute data of entity event.classModel.ProductClass wrapping views on entity productclassModel.ProductWrapperClass wrapping access to attribute data of entity product.classModel.UserClass wrapping views on entity userclassModel.UserWrapperClass wrapping access to attribute data of entity user.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Model.EventgetEvent()Model.ProductgetProduct()RepositorygetRepo()Model.UsergetUser()static Modelof(ConfigRepository.Builder builder)Create instance ofModelwith specifiedConfigRepository.Builder.static Modelof(cz.o2.proxima.typesafe.config.Config cfg)Create instance ofModelfor production usage.static ModelofTest(cz.o2.proxima.typesafe.config.Config config, Repository.Validate... validations)Create instance ofModelfor testing purposes.static Modelwrap(Repository repository)Create instance ofModelfrom givenRepository.
-
-
-
Method Detail
-
of
public static Model of(cz.o2.proxima.typesafe.config.Config cfg)
Create instance ofModelfor production usage.- Parameters:
cfg- configuration to use- Returns:
- Model
-
of
public static Model of(ConfigRepository.Builder builder)
Create instance ofModelwith specifiedConfigRepository.Builder.- Parameters:
builder- configuration to use- Returns:
- Model
-
ofTest
public static Model ofTest(cz.o2.proxima.typesafe.config.Config config, Repository.Validate... validations)
Create instance ofModelfor testing purposes.- Parameters:
config- the configuration to usevalidations- which validations to perform- Returns:
- Model
-
wrap
public static Model wrap(Repository repository)
Create instance ofModelfrom givenRepository.
-
getProduct
public Model.Product getProduct()
-
getEvent
public Model.Event getEvent()
-
getUser
public Model.User getUser()
-
getRepo
public Repository getRepo()
-
-