|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.jomc.sequences.ri.DefaultSequenceMapper
@Generated(value="org.jomc.tools.SourceFileProcessor 1.0",
comments="See http://jomc.sourceforge.net/jomc/1.0/jomc-tools")
public class DefaultSequenceMapper
extends Object
implements SequenceMapper
SequenceMapper reference implementation.
Specifications
'org.jomc.sequences.ri.SequenceMapper' (org.jomc.sequences.ri.SequenceMapper) 1.0 MultitonDependencies
Locale"Dependency on'java.util.Locale'(java.util.Locale)at specification level 1.1 bound to an instance.
Messages
illegalArgumentMessage"| English: | Illegal value ''{1}'' for argument ''{0}''. |
| Deutsch: | Ungültiger Wert ''{1}'' für Parameter ''{0}''. |
unhandledExceptionMessage"| English: | Unhandled exception. |
| Deutsch: | Unbehandelte Ausnahme. |
| Constructor and Description |
|---|
DefaultSequenceMapper()
Creates a new DefaultSequenceMapper instance. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
injectDate(org.jomc.sequences.Sequence s,
long value)
Sets the value of property date of a given sequence using reflection. |
protected void |
injectFieldValue(Object object,
String fieldName,
Object value)
Sets the value of a field of a given object using reflection. |
protected void |
injectRevision(org.jomc.sequences.Sequence s,
long value)
Sets the value of property revision of a given sequence using reflection. |
org.jomc.sequences.model.SequenceType |
map(org.jomc.sequences.Sequence sequence,
org.jomc.sequences.model.SequenceType sequenceType)
Maps a Sequence instance to a SequenceType instance. |
org.jomc.sequences.Sequence |
map(org.jomc.sequences.model.SequenceType sequenceType,
org.jomc.sequences.Sequence sequence)
Maps a SequenceType instance to a Sequence instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Generated(value="org.jomc.tools.SourceFileProcessor 1.0",
comments="See http://jomc.sourceforge.net/jomc/1.0/jomc-tools")
public DefaultSequenceMapper()
DefaultSequenceMapper instance.
| Method Detail |
|---|
public org.jomc.sequences.Sequence map(org.jomc.sequences.model.SequenceType sequenceType,
org.jomc.sequences.Sequence sequence)
SequenceMapperSequenceType instance to a Sequence instance.
map in interface SequenceMappersequenceType - The instance to map.sequence - The target instance to map sequenceType to.sequenceType mapped to sequence.
public org.jomc.sequences.model.SequenceType map(org.jomc.sequences.Sequence sequence,
org.jomc.sequences.model.SequenceType sequenceType)
SequenceMapperSequence instance to a SequenceType instance.
map in interface SequenceMappersequence - The instance to map.sequenceType - The target instance to map sequence to.sequence mapped to sequenceType.
protected void injectRevision(org.jomc.sequences.Sequence s,
long value)
revision of a given sequence using reflection.
s - The sequence to update.value - The new value for property revision.org.jomc.sequences.SequencesSystemException - if injecting value fails unexpectedly.
protected void injectDate(org.jomc.sequences.Sequence s,
long value)
date of a given sequence using reflection.
s - The sequence to update.value - The new value for property date.org.jomc.sequences.SequencesSystemException - if injecting value fails unexpectedly.
protected void injectFieldValue(Object object,
String fieldName,
Object value)
object - The object to update.fieldName - The name of the field to update.value - The new value for field fieldName.org.jomc.sequences.SequencesSystemException - if setting value fails unexpectedly.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||