T
- the RelationalObject
subclasspublic interface TypeResolver<T extends RelationalObject>
KomodoObject
can be converted into a strong typed relational object.Modifier and Type | Method and Description |
---|---|
KomodoType |
identifier() |
Class<? extends KomodoObject> |
owningClass() |
boolean |
resolvable(Repository.UnitOfWork transaction,
KomodoObject kobject) |
T |
resolve(Repository.UnitOfWork transaction,
KomodoObject kobject)
Converts the specified
KomodoObject to this resolver's strong typed relational object. |
KomodoType identifier()
null
)Class<? extends KomodoObject> owningClass()
null
)boolean resolvable(Repository.UnitOfWork transaction, KomodoObject kobject) throws KException
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)kobject
- the KomodoObject
being resolved (cannot be null
)true
if object can be resolved to this resolver's typeKException
- if an error occursT resolve(Repository.UnitOfWork transaction, KomodoObject kobject) throws KException
KomodoObject
to this resolver's strong typed relational object. It is assumed that the
object has been resolved
.transaction
- the transaction (can be null
if the operation should be automatically committed)kobject
- the KomodoObject
being resolved (cannot be null
)RelationalObject
(never null
)KException
- if an error occurs#resolvable(UnitOfWork, KomodoObject)
Copyright © 2013–2019. All rights reserved.