se.unlogic.standardutils.dao
Class SimplifiedOneToManyRelation<LocalType,RemoteType>
java.lang.Object
se.unlogic.standardutils.dao.SimplifiedOneToManyRelation<LocalType,RemoteType>
- All Implemented Interfaces:
- OneToManyRelation<LocalType,RemoteType>
public class SimplifiedOneToManyRelation<LocalType,RemoteType>
- extends java.lang.Object
- implements OneToManyRelation<LocalType,RemoteType>
Method Summary |
void |
add(LocalType bean,
java.sql.Connection connection,
RelationQuery relationQuery)
|
static
|
getGenericInstance(java.lang.Class<LT> beanClass,
java.lang.Class<RT> remoteClass,
java.lang.reflect.Field field,
AnnotatedDAO<LT> localDAO,
java.util.List<? extends BeanStringPopulator<?>> typePopulators,
java.util.List<? extends QueryParameterPopulator<?>> queryParameterPopulators)
|
void |
getRemoteValue(LocalType bean,
java.sql.Connection connection,
RelationQuery relationQuery)
|
void |
update(LocalType bean,
java.sql.Connection connection,
RelationQuery relationQuery)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimplifiedOneToManyRelation
public SimplifiedOneToManyRelation(java.lang.Class<LocalType> beanClass,
java.lang.Class<RemoteType> remoteClass,
java.lang.reflect.Field field,
AnnotatedDAO<LocalType> localDAO,
java.util.List<? extends BeanStringPopulator<?>> typePopulators,
java.util.List<? extends QueryParameterPopulator<?>> queryParameterPopulators)
getRemoteValue
public void getRemoteValue(LocalType bean,
java.sql.Connection connection,
RelationQuery relationQuery)
throws java.sql.SQLException
- Specified by:
getRemoteValue
in interface OneToManyRelation<LocalType,RemoteType>
- Throws:
java.sql.SQLException
add
public void add(LocalType bean,
java.sql.Connection connection,
RelationQuery relationQuery)
throws java.sql.SQLException
- Specified by:
add
in interface OneToManyRelation<LocalType,RemoteType>
- Throws:
java.sql.SQLException
update
public void update(LocalType bean,
java.sql.Connection connection,
RelationQuery relationQuery)
throws java.sql.SQLException
- Specified by:
update
in interface OneToManyRelation<LocalType,RemoteType>
- Throws:
java.sql.SQLException
getGenericInstance
public static <LT,RT> OneToManyRelation<LT,RT> getGenericInstance(java.lang.Class<LT> beanClass,
java.lang.Class<RT> remoteClass,
java.lang.reflect.Field field,
AnnotatedDAO<LT> localDAO,
java.util.List<? extends BeanStringPopulator<?>> typePopulators,
java.util.List<? extends QueryParameterPopulator<?>> queryParameterPopulators)
Copyright © 2011. All Rights Reserved.