org.ujorm.orm
Class DbProcedure<UJO extends DbProcedure>

java.lang.Object
  extended by org.ujorm.extensions.SuperAbstractUjo
      extended by org.ujorm.extensions.AbstractUjo
          extended by org.ujorm.implementation.quick.QuickUjo
              extended by org.ujorm.implementation.quick.SmartUjo<UJO>
                  extended by org.ujorm.orm.DbProcedure<UJO>
All Implemented Interfaces:
Serializable, UjoCloneable, UjoMiddle<UJO>, UjoTextable, Ujo

public abstract class DbProcedure<UJO extends DbProcedure>
extends SmartUjo<UJO>

Abstract database procedure.

See Also:
Serialized Form

Field Summary
protected  MetaProcedure metaProcedure
          Meta - model
 
Constructor Summary
DbProcedure()
           
 
Method Summary
<T> T
call(Session session)
          Call the procedure and return a value of the first Property.
<T> T
call(Session session, Key<UJO,T> result)
          Call the procedure and return a type-safe value of the required Property
 DbProcedure clear()
          Clear all parameters
 MetaProcedure metaProcedure()
          Returns MetaModel of the procedure
protected static
<UJO extends OrmTable,ITEM extends OrmTable>
RelationToMany<UJO,ITEM>
newRelation(Class<ITEM> type)
          A PropertyIterator Factory creates an new key and assign a next index.
protected static
<UJO extends OrmTable,ITEM extends OrmTable>
RelationToMany<UJO,ITEM>
newRelation(String name, Class<ITEM> type)
          A PropertyIterator Factory creates an new key and assign a next index.
 
Methods inherited from class org.ujorm.implementation.quick.SmartUjo
get, getList, getText, readKeyList, set, setText
 
Methods inherited from class org.ujorm.implementation.quick.QuickUjo
newKey, newKey, newKey, newKey, newKey, newKey, newListKey, newListKey, newListProperty, newListProperty, newListProperty, newListProperty, newProperty, newProperty, newProperty, newProperty, newProperty, newProperty, newProperty, newProperty
 
Methods inherited from class org.ujorm.extensions.AbstractUjo
newCamelFactory, newFactory, readValue, writeValue
 
Methods inherited from class org.ujorm.extensions.SuperAbstractUjo
clone, equals, init, init, readAuthorization, readKeys, readUjoManager, readValueString, toString, writeValueString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ujorm.Ujo
readAuthorization, readKeys, readValue, writeValue
 

Field Detail

metaProcedure

protected transient MetaProcedure metaProcedure
Meta - model

Constructor Detail

DbProcedure

public DbProcedure()
Method Detail

clear

public DbProcedure clear()
Clear all parameters


call

public <T> T call(Session session,
                  Key<UJO,T> result)
Call the procedure and return a type-safe value of the required Property


call

public <T> T call(Session session)
Call the procedure and return a value of the first Property.
WARNING: The result is NOT type-save value, use rather call(org.ujorm.orm.Session, org.ujorm.Key).

See Also:
call(org.ujorm.orm.Session, org.ujorm.Key)

metaProcedure

public MetaProcedure metaProcedure()
Returns MetaModel of the procedure


newRelation

protected static <UJO extends OrmTable,ITEM extends OrmTable> RelationToMany<UJO,ITEM> newRelation(String name,
                                                                                                   Class<ITEM> type)
A PropertyIterator Factory creates an new key and assign a next index.


newRelation

protected static <UJO extends OrmTable,ITEM extends OrmTable> RelationToMany<UJO,ITEM> newRelation(Class<ITEM> type)
A PropertyIterator Factory creates an new key and assign a next index.



Copyright 2013, Pavel Ponec