com.jpattern.orm
Interface JPO

All Known Implementing Classes:
JPOrm, JPOrmDataSource

public interface JPO

Author:
Francesco Cina 21/mag/2011

Method Summary
 void destory()
          Destroy the current IJPOrm instance and all it's references.
<T> void
register(Class<T> clazz)
          Register a new class to be managed as a bean.
 void register(ExtendedTypeWrapper<?,?> typeWrapper)
          Register a new TypeWrapper.
 void register(List<Class<?>> classes)
          Register a list of classes to be managed as a beans.
 Session session()
          Return a session from the current IJPOrm implementation
 void setValidator(Validator validator)
          Set the default validator to be used to validate beans before update and save actions
 

Method Detail

session

Session session()
                throws OrmException
Return a session from the current IJPOrm implementation

Returns:
Throws:
OrmException

destory

void destory()
Destroy the current IJPOrm instance and all it's references.


register

<T> void register(Class<T> clazz)
              throws OrmConfigurationException
Register a new class to be managed as a bean.

Type Parameters:
T -
Parameters:
clazz -
Throws:
OrmConfigurationException

register

void register(List<Class<?>> classes)
              throws OrmConfigurationException
Register a list of classes to be managed as a beans.

Type Parameters:
T -
Parameters:
clazz -
Throws:
OrmConfigurationException

register

void register(ExtendedTypeWrapper<?,?> typeWrapper)
              throws OrmConfigurationException
Register a new TypeWrapper. If a TypeWrapper wraps a Class that is already mapped, the last registered TypeWrapper will be used.

Parameters:
typeWrapper -
Throws:
OrmConfigurationException

setValidator

void setValidator(Validator validator)
Set the default validator to be used to validate beans before update and save actions

Parameters:
validator -


Copyright © 2013. All Rights Reserved.