- 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 ofEntityBean
as simpleBean
.- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description IdProperty<? extends SimpleEntityBean>
Id
Theproperty
with 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 EntityPropertyBuilders
add()
protected PropertyBuilders
createPropertyBuilders()
Internal method that may be overridden to replace thePropertyBuilders
implementation.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
Theproperty
with theprimary key
.
-
-
Constructor Detail
-
SimpleEntityBean
public SimpleEntityBean()
The constructor.
-
SimpleEntityBean
public SimpleEntityBean(IdFactory<?,?,?> idFactory)
The constructor.- Parameters:
idFactory
- theIdFactory
to 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:
Id
in interfaceEntityBean
- Returns:
- the
property
with theId
(primary key) of this entity.
-
add
protected EntityPropertyBuilders add()
- Overrides:
add
in classAbstractBean
- Returns:
- the builder factory to build properties to be added to this bean.
-
createPropertyBuilders
protected PropertyBuilders createPropertyBuilders()
Description copied from class:AbstractBean
Internal method that may be overridden to replace thePropertyBuilders
implementation.- Overrides:
createPropertyBuilders
in classAbstractBean
- Returns:
- the
PropertyBuilders
instance.
-
-