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

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

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

Abstract database procedure.

Author:
Ponec
See Also:
Serialized Form

Field Summary
protected  MetaProcedure metaProcedure
           
 
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, UjoProperty<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(java.lang.Class<ITEM> type)
          A PropertyIterator Factory creates an new property and assign a next index.
protected static
<UJO extends OrmTable,ITEM extends OrmTable>
RelationToMany<UJO,ITEM>
newRelation(java.lang.String name, java.lang.Class<ITEM> type)
          A PropertyIterator Factory creates an new property and assign a next index.
 
Methods inherited from class org.ujoframework.implementation.quick.QuickUjoMid
get, getText, set, setText
 
Methods inherited from class org.ujoframework.implementation.quick.QuickUjo
newListProperty, newListProperty, newProperty, newProperty, newProperty, newProperty, newProperty, newProperty, readValue, writeValue
 
Methods inherited from class org.ujoframework.extensions.AbstractUjo
clone, equals, init, init, readAuthorization, readProperties, 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.ujoframework.Ujo
readAuthorization, readProperties, readValue, writeValue
 

Field Detail

metaProcedure

protected MetaProcedure metaProcedure
Constructor Detail

DbProcedure

public DbProcedure()
Method Detail

clear

public DbProcedure clear()
Clear all parameters


call

public <T> T call(Session session,
                  UjoProperty<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.ujoframework.orm.Session, org.ujoframework.UjoProperty).

See Also:
call(org.ujoframework.orm.Session, org.ujoframework.UjoProperty)

metaProcedure

public MetaProcedure metaProcedure()
Returns MetaModel of the procedure


newRelation

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


newRelation

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



Copyright © 2010. All Rights Reserved.