exedio cope

com.exedio.cope.pattern
Class MapField<K,V>

java.lang.Object
  extended by com.exedio.cope.Feature
      extended by com.exedio.cope.Pattern
          extended by com.exedio.cope.pattern.MapField<K,V>

public final class MapField<K,V>
extends Pattern


Nested Class Summary
 
Nested classes/interfaces inherited from class com.exedio.cope.Pattern
Pattern.BackedItem
 
Method Summary
 V get(Item item, K key)
           
 V getAndCast(Item item, Object key)
           
 FunctionField<K> getKey()
           
 ItemField<?> getParent()
           
<P extends Item>
ItemField<P>
getParent(Class<P> parentClass)
           
 Type<? extends Item> getRelationType()
           
 UniqueConstraint getUniqueConstraint()
           
 FunctionField<V> getValue()
           
 List<Wrapper> getWrappers()
           
protected  void initialize()
          Here you can do additional initialization not yet done in the constructor.
 Join join(Query q, K key)
           
static
<K,V> MapField<K,V>
newMap(FunctionField<K> key, FunctionField<V> value)
           
 void set(Item item, K key, V value)
           
 void setAndCast(Item item, Object key, Object value)
           
 
Methods inherited from class com.exedio.cope.Pattern
addSource, getGeneratedTypes, getSourceFields, getSources, getSourceTypes, getType, newSourceType, newSourceType, newType, newType, registerSource
 
Methods inherited from class com.exedio.cope.Feature
getAnnotation, getID, getName, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

newMap

public static final <K,V> MapField<K,V> newMap(FunctionField<K> key,
                                               FunctionField<V> value)

initialize

protected void initialize()
Description copied from class: Pattern
Here you can do additional initialization not yet done in the constructor. In this method you can call methods Pattern.getType() and Feature.getName() for the first time.

Overrides:
initialize in class Pattern

getParent

public <P extends Item> ItemField<P> getParent(Class<P> parentClass)

getParent

public ItemField<?> getParent()

getKey

public FunctionField<K> getKey()

getUniqueConstraint

public UniqueConstraint getUniqueConstraint()

getValue

public FunctionField<V> getValue()

getRelationType

public Type<? extends Item> getRelationType()

getWrappers

public List<Wrapper> getWrappers()
Overrides:
getWrappers in class Feature

get

public V get(Item item,
             K key)

set

public void set(Item item,
                K key,
                V value)

getAndCast

public V getAndCast(Item item,
                    Object key)

setAndCast

public void setAndCast(Item item,
                       Object key,
                       Object value)

join

public Join join(Query q,
                 K key)

Cope with
Object
Persistence

SourceForge.net LogoCopyright © 2004-2008 exedio Gesellschaft für Softwareentwicklung mbH. All rights reserved.
svn.12752 build.5319 20090312135114