PersistentEntity.isNew(Object)public abstract class IsNewStrategyFactorySupport extends Object implements IsNewStrategyFactory
IsNewStrategyFactory that handles Persistable implementations directly by returning a
PersistableIsNewStrategy and delegating to doGetIsNewStrategy(Class) for all other types.| Constructor and Description |
|---|
IsNewStrategyFactorySupport()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract IsNewStrategy |
doGetIsNewStrategy(Class<?> type)
Deprecated.
Determine the actual
IsNewStrategy to be used for the given type. |
IsNewStrategy |
getIsNewStrategy(Class<?> type)
Deprecated.
Returns the
IsNewStrategy to be used for the given type. |
public final IsNewStrategy getIsNewStrategy(Class<?> type)
IsNewStrategyFactoryIsNewStrategy to be used for the given type.getIsNewStrategy in interface IsNewStrategyFactorytype - must not be null.IsNewStrategy to be used for the given type, will never be null.@Nullable protected abstract IsNewStrategy doGetIsNewStrategy(Class<?> type)
IsNewStrategy to be used for the given type.type - will never be null.IsNewStrategy to be used for the given type or null in case none can be resolved.Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.