|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.khubla.pragmatach.plugin.mongodb.util.ClassTypeUtils
public class ClassTypeUtils
Constructor Summary | |
---|---|
ClassTypeUtils(Class<?> typeClazz)
|
Method Summary | |
---|---|
String |
getId(Object t)
get id |
String |
getIdFieldName()
get the id field |
static boolean |
isCascadeDelete(Field field)
check if its cascade delete field |
static boolean |
isCascadeSave(Field field)
check if its cascade saved field |
static boolean |
isEagerLoad(Field field)
check if its an eager loaded field |
boolean |
isGeneratedId()
Entity has an @GeneratedValue? |
static boolean |
isLazyLoad(Field field)
check if its an eager loaded field |
void |
setId(Object t,
String i)
set id |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassTypeUtils(Class<?> typeClazz)
Method Detail |
---|
public static boolean isCascadeDelete(Field field)
public static boolean isCascadeSave(Field field)
public static boolean isEagerLoad(Field field)
public static boolean isLazyLoad(Field field)
public String getId(Object t) throws PragmatachException
PragmatachException
public String getIdFieldName()
public boolean isGeneratedId() throws PragmatachException
PragmatachException
public void setId(Object t, String i) throws PragmatachException
PragmatachException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |