public void encodePrimitive(OutputContext ctx, Object holder, Property property) throws IllegalAccessException, IOException, InvocationTargetException { booleanCodec.encodePrimitive(ctx, property.getBoolean(holder)); } public void decodePrimitive(InputContext ctx, Object holder, Property property) throws IllegalAccessException, IOException, InvocationTargetException {
public void encodePrimitive(OutputContext ctx, Object holder, Property property) throws IllegalAccessException, IOException, InvocationTargetException { booleanCodec.encodePrimitive(ctx, property.getBoolean(holder)); } public void decodePrimitive(InputContext ctx, Object holder, Property property) throws IllegalAccessException, IOException, InvocationTargetException {
public void encodePrimitive(OutputContext ctx, Object holder, Property property) throws IllegalAccessException, IOException, InvocationTargetException { booleanCodec.encodePrimitive(ctx, property.getBoolean(holder)); } public void decodePrimitive(InputContext ctx, Object holder, Property property) throws IllegalAccessException, IOException, InvocationTargetException {
public void encodePrimitive(OutputContext ctx, Object holder, Property property) throws IllegalAccessException, IOException, InvocationTargetException { booleanCodec.encodePrimitive(ctx, property.getBoolean(holder)); } public void decodePrimitive(InputContext ctx, Object holder, Property property) throws IllegalAccessException, IOException, InvocationTargetException {
@Override public boolean getBoolean(Object holder) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException { if (ObservableBooleanValue.class.isAssignableFrom(property.getType())) return ((ObservableBooleanValue)property.getObject(holder)).get(); return property.getBoolean(holder); }
public boolean isInitialized(Object o) { if (o instanceof PersistentCollection) return ((PersistentCollection<?>)o).wasInitialized(); Class<?> cls = o.getClass(); if (!isEntity(cls)) return true; Property property = getInitializedProperty(cls, false); if (property == null) return true; try { return property.getBoolean(o); } catch (Exception e) { throw new PropertyAccessException("Could not get " + property + " of object " + o, e); } }
public boolean isInitialized(Object o) { if (o instanceof PersistentCollection) return ((PersistentCollection)o).wasInitialized(); Class<?> cls = o.getClass(); if (!isEntity(cls)) return true; Property property = getInitializedProperty(cls, false); if (property == null) return true; try { return property.getBoolean(o); } catch (Exception e) { throw new PropertyAccessException("Could not get " + property + " of object " + o, e); } }
public boolean isInitialized(Object o) { if (o instanceof PersistentCollection) return ((PersistentCollection<?>)o).wasInitialized(); Class<?> cls = o.getClass(); if (!isEntity(cls)) return true; Property property = getInitializedProperty(cls, false); if (property == null) return true; try { return property.getBoolean(o); } catch (Exception e) { throw new PropertyAccessException("Could not get " + property + " of object " + o, e); } }