- java.lang.Object
-
- io.github.mmm.bean.AbstractBean
-
- io.github.mmm.bean.Bean
-
- io.github.mmm.entity.bean.SimpleEntityBean
-
- All Implemented Interfaces:
ReadableBean,WritableBean,EntityBean,Entity,MarshallableObject,Marshaller<Object>,Marshalling<Object>,MarshallingObject,UnmarshallableObject,Unmarshaller<Object>,Validatable
public class SimpleEntityBean extends Bean implements EntityBean
Implementation ofEntityBeanas simpleBean.- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description IdProperty<? extends SimpleEntityBean>IdThepropertywith theprimary key.-
Fields inherited from interface io.github.mmm.entity.Entity
PROPERTY_NAME_ID
-
Fields inherited from interface io.github.mmm.bean.ReadableBean
PROPERTY_TYPE
-
-
Constructor Summary
Constructors Constructor Description SimpleEntityBean()The constructor.SimpleEntityBean(IdFactory<?,?,?> idFactory)The constructor.SimpleEntityBean(IdProperty<? extends SimpleEntityBean> idProperty)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected EntityPropertyBuildersadd()protected PropertyBuilderscreatePropertyBuilders()Internal method that may be overridden to replace thePropertyBuildersimplementation.IdProperty<? extends SimpleEntityBean>Id()-
Methods inherited from class io.github.mmm.bean.Bean
getType, isPrototype
-
Methods inherited from class io.github.mmm.bean.AbstractBean
add, addProperty, copy, create, createProperty, getProperties, getProperty, getPropertyCount, isDynamic, isReadOnly, isThreadSafe, newInstance, onPropertyAdded, requireDynamic, requireWritable, toString, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.github.mmm.entity.bean.EntityBean
getId, setId
-
Methods inherited from interface io.github.mmm.marshall.MarshallableObject
writeObject
-
Methods inherited from interface io.github.mmm.bean.ReadableBean
copy, copy, get, getPropertyCount, getPropertyNameForAlias, getType, isDynamic, isEqualTo, isPolymorphic, isPrototype, isReadOnly, newInstance, validate, write
-
Methods inherited from interface io.github.mmm.marshall.UnmarshallableObject
readObject
-
Methods inherited from interface io.github.mmm.bean.WritableBean
addProperty, createProperty, createProperty, getOrCreateProperty, getOrCreateProperty, getProperties, getProperty, getRequiredProperty, read, set, set, set
-
-
-
-
Field Detail
-
Id
public final IdProperty<? extends SimpleEntityBean> Id
Thepropertywith theprimary key.
-
-
Constructor Detail
-
SimpleEntityBean
public SimpleEntityBean()
The constructor.
-
SimpleEntityBean
public SimpleEntityBean(IdFactory<?,?,?> idFactory)
The constructor.- Parameters:
idFactory- theIdFactoryto marshal data.
-
SimpleEntityBean
public SimpleEntityBean(IdProperty<? extends SimpleEntityBean> idProperty)
The constructor.- Parameters:
idProperty- theID property.
-
-
Method Detail
-
Id
public IdProperty<? extends SimpleEntityBean> Id()
- Specified by:
Idin interfaceEntityBean- Returns:
- the
propertywith theId(primary key) of this entity.
-
add
protected EntityPropertyBuilders add()
- Overrides:
addin classAbstractBean- Returns:
- the builder factory to build properties to be added to this bean.
-
createPropertyBuilders
protected PropertyBuilders createPropertyBuilders()
Description copied from class:AbstractBeanInternal method that may be overridden to replace thePropertyBuildersimplementation.- Overrides:
createPropertyBuildersin classAbstractBean- Returns:
- the
PropertyBuildersinstance.
-
-