public class RelationOptionalFactory extends Object
| コンストラクタと説明 |
|---|
RelationOptionalFactory() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
Object |
createOptionalNullEntity(OptionalThingExceptionThrower thrower)
Create optional null entity.
|
Object |
createOptionalPresentEntity(Object relationRow)
Create optional present entity.
|
Class<?> |
getOptionalEntityType()
Get the type of optional entity for relation.
|
boolean |
isOptional(Object relationRow)
Is the relation row wrapped optional object?
|
boolean |
isOptionalType(Class<?> relationType)
Is the relation type optional type?
|
Object |
orElseNull(Object optional)
Extract wrapped entity instance or null.
|
public Object createOptionalNullEntity(OptionalThingExceptionThrower thrower)
thrower - The exception thrower for optional object. (NotNull: if needs)public Object createOptionalPresentEntity(Object relationRow)
relationRow - The row instance of relation entity. (NotNull)public Class<?> getOptionalEntityType()
public Object orElseNull(Object optional)
optional - The optional object as object. (NotNull)public boolean isOptional(Object relationRow)
relationRow - The row of relation, might be optional. (NullAllowed: if null, returns false)public boolean isOptionalType(Class<?> relationType)
relationType - The type of relation, might be optional. (NullAllowed: if null, returns false)Copyright © 2014–2015 The DBFlute Project. All rights reserved.