protected void checkEntity(Class<?> entityClass) { if (!isEntity(entityClass)) throw new PropertyNotFoundException("Not annotated with @" + Entity.class.getName() + ": " + entityClass); }
protected void checkEntity(Class<?> entityClass) { if (!isEntity(entityClass)) throw new PropertyNotFoundException("Not annotated with @" + Entity.class.getName() + ": " + entityClass); }
protected void checkEntity(Class<?> entityClass) { if (!isEntity(entityClass)) throw new PropertyNotFoundException("Not annotated with @" + Entity.class.getName() + ": " + entityClass); }
protected Property getIdProperty(Class<?> entityClass, boolean throwIfNotFound) { checkEntity(entityClass); Property property = reflection.findProperty(entityClass, Id.class); if (property == null && throwIfNotFound) throw new PropertyNotFoundException("No property annotated with " + Id.class.getName() + " in " + entityClass); return property; }
protected Property getVersionProperty(Class<?> entityClass, boolean throwIfNotFound) { checkEntity(entityClass); Property property = reflection.findProperty(entityClass, Version.class); if (property == null && throwIfNotFound) throw new PropertyNotFoundException("No property annotated with " + Version.class.getName() + " in " + entityClass); return property; }
protected Property getUidProperty(Class<?> entityClass, boolean throwIfNotFound) { checkEntity(entityClass); Property property = reflection.findProperty(entityClass, Uid.class); if (property == null && throwIfNotFound) throw new PropertyNotFoundException("No property annotated with " + Uid.class.getName() + " in " + entityClass); return property; }
protected Property getVersionProperty(Class<?> entityClass, boolean throwIfNotFound) { checkEntity(entityClass); Property property = reflection.findProperty(entityClass, Version.class); if (property == null && throwIfNotFound) throw new PropertyNotFoundException("No property annotated with " + Version.class.getName() + " in " + entityClass); return property; }
protected Property getUidProperty(Class<?> entityClass, boolean throwIfNotFound) { checkEntity(entityClass); Property property = reflection.findProperty(entityClass, Uid.class); if (property == null && throwIfNotFound) throw new PropertyNotFoundException("No property annotated with " + Uid.class.getName() + " in " + entityClass); return property; }
protected Property getIdProperty(Class<?> entityClass, boolean throwIfNotFound) { checkEntity(entityClass); Property property = reflection.findProperty(entityClass, Id.class); if (property == null && throwIfNotFound) throw new PropertyNotFoundException("No property annotated with " + Id.class.getName() + " in " + entityClass); return property; }
protected Property getVersionProperty(Class<?> entityClass, boolean throwIfNotFound) { checkEntity(entityClass); Property property = reflection.findProperty(entityClass, Version.class); if (property == null && throwIfNotFound) throw new PropertyNotFoundException("No property annotated with " + Version.class.getName() + " in " + entityClass); return property; }
protected Property getIdProperty(Class<?> entityClass, boolean throwIfNotFound) { checkEntity(entityClass); Property property = reflection.findProperty(entityClass, Id.class); if (property == null && throwIfNotFound) throw new PropertyNotFoundException("No property annotated with " + Id.class.getName() + " in " + entityClass); return property; }
protected Property getUidProperty(Class<?> entityClass, boolean throwIfNotFound) { checkEntity(entityClass); Property property = reflection.findProperty(entityClass, Uid.class); if (property == null && throwIfNotFound) throw new PropertyNotFoundException("No property annotated with " + Uid.class.getName() + " in " + entityClass); return property; }
protected Property getDetachedStateProperty(Class<?> entityClass, boolean throwIfNotFound) { checkEntity(entityClass); Property property = reflection.findProperty(entityClass, DETACHED_STATE_FIELD_NAME, String.class); if (property == null && throwIfNotFound) throw new PropertyNotFoundException("No String " + DETACHED_STATE_FIELD_NAME + " property in " + entityClass); return property; }
protected Property getInitializedProperty(Class<?> entityClass, boolean throwIfNotFound) { checkEntity(entityClass); Property property = reflection.findProperty(entityClass, INITIALIZED_FIELD_NAME, Boolean.TYPE); if (property == null && throwIfNotFound) throw new PropertyNotFoundException("No boolean " + INITIALIZED_FIELD_NAME + " property in " + entityClass); return property; }
protected Property getDetachedStateProperty(Class<?> entityClass, boolean throwIfNotFound) { checkEntity(entityClass); Property property = reflection.findProperty(entityClass, DETACHED_STATE_FIELD_NAME, String.class); if (property == null && throwIfNotFound) throw new PropertyNotFoundException("No String " + DETACHED_STATE_FIELD_NAME + " property in " + entityClass); return property; }
protected Property getInitializedProperty(Class<?> entityClass, boolean throwIfNotFound) { checkEntity(entityClass); Property property = reflection.findProperty(entityClass, INITIALIZED_FIELD_NAME, Boolean.TYPE); if (property == null && throwIfNotFound) throw new PropertyNotFoundException("No boolean " + INITIALIZED_FIELD_NAME + " property in " + entityClass); return property; }
protected Property getInitializedProperty(Class<?> entityClass, boolean throwIfNotFound) { checkEntity(entityClass); Property property = reflection.findProperty(entityClass, INITIALIZED_FIELD_NAME, Boolean.TYPE); if (property == null && throwIfNotFound) throw new PropertyNotFoundException("No boolean " + INITIALIZED_FIELD_NAME + " property in " + entityClass); return property; }
protected Property getDetachedStateProperty(Class<?> entityClass, boolean throwIfNotFound) { checkEntity(entityClass); Property property = reflection.findProperty(entityClass, DETACHED_STATE_FIELD_NAME, String.class); if (property == null && throwIfNotFound) throw new PropertyNotFoundException("No String " + DETACHED_STATE_FIELD_NAME + " property in " + entityClass); return property; }