org.ujorm.orm
Class OrmKeyFactory<UJO extends OrmUjo>

java.lang.Object
  extended by org.ujorm.core.KeyFactory<UJO>
      extended by org.ujorm.orm.OrmKeyFactory<UJO>
All Implemented Interfaces:
Serializable

public class OrmKeyFactory<UJO extends OrmUjo>
extends KeyFactory<UJO>

OrmFactory

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.ujorm.core.KeyFactory
KeyFactory.Builder, KeyFactory.CamelBuilder, KeyFactory.InnerDataStore<UJO extends Ujo>, KeyFactory.NoCheckBuilder, KeyFactory.WeakBuilder
 
Field Summary
 
Fields inherited from class org.ujorm.core.KeyFactory
CAMEL_CASE, PROPERTY_MODIFIER
 
Constructor Summary
OrmKeyFactory(Class<? extends UJO> type)
           
OrmKeyFactory(Class<? extends UJO> type, boolean propertyCamelCase)
           
OrmKeyFactory(Class<? extends UJO> type, boolean propertyCamelCase, KeyList<?> abstractSuperProperties)
           
 
Method Summary
protected
<T> Key<UJO,T>
createKey(String name, T defaultValue, Validator<T> validator)
          Common protected factory method
<UJO extends ExtendedOrmUjo,ITEM extends ExtendedOrmUjo>
RelationToMany<UJO,ITEM>
newRelation()
          A KeyIterator Factory creates an new key and assign a next index.
 
Methods inherited from class org.ujorm.core.KeyFactory
add, addKey, checkLock, createKeyList, createKeyName, getKeys, getSuperKeys, getTmpStore, lock, lockAndSize, newClassKey, newKey, newKey, newKey, newKey, newKey, newKey, newKeyAlias, newKeyAlias, newKeyAlias, newKeyAlias, newKeyDefault, newKeyDefault, newListKey, newListKey, onCreate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrmKeyFactory

public OrmKeyFactory(Class<? extends UJO> type,
                     boolean propertyCamelCase,
                     KeyList<?> abstractSuperProperties)

OrmKeyFactory

public OrmKeyFactory(Class<? extends UJO> type,
                     boolean propertyCamelCase)

OrmKeyFactory

public OrmKeyFactory(Class<? extends UJO> type)
Method Detail

createKey

protected <T> Key<UJO,T> createKey(String name,
                                   T defaultValue,
                                   Validator<T> validator)
Common protected factory method

Overrides:
createKey in class KeyFactory<UJO extends OrmUjo>

newRelation

public <UJO extends ExtendedOrmUjo,ITEM extends ExtendedOrmUjo> RelationToMany<UJO,ITEM> newRelation()
A KeyIterator Factory creates an new key and assign a next index.

Returns:
RelationToMany


Copyright 2013, Pavel Ponec