com.cedarsoft.gdao
Class PersistenceTester
java.lang.Object
com.cedarsoft.gdao.PersistenceTester
public class PersistenceTester
- extends Object
Tests persistence objects
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
additionalObjectCount
public int additionalObjectCount
checkEquality
public boolean checkEquality
PersistenceTester
public PersistenceTester(@NotNull
GenericDaoManager daoManager)
PersistenceTester
public PersistenceTester(@NotNull
GenericDaoManager daoManager,
@NotNull
Set<Class<?>> transientFieldTypes)
save
public <T> void save(@NotNull
T object)
addTransientFieldType
public void addTransientFieldType(@NotNull
Class<?> transientFieldType)
getDao
@NotNull
public <T> GenericDao<T> getDao(@NotNull
T object)
testObject
public <T> void testObject(@NotNull
T object)
throws Exception
- Tests the given object
- Parameters:
object - the object that is tested
- Throws:
Exception
mustBeTransient
protected boolean mustBeTransient(@NotNull
Field field)
Copyright © 2010 cedarsoft GmbH. All Rights Reserved.