public List<Property> getProperties(Class<?> entityClass) { return reflection.findSerializableProperties(entityClass); }
public List<Property> getProperties(Class<?> entityClass) { return reflection.findSerializableProperties(entityClass); }
public List<Property> getProperties(Class<?> entityClass) { return reflection.findSerializableProperties(entityClass); }
public Property findSerializableProperty(Class<?> cls, String name) throws SecurityException { List<Property> properties = findSerializableProperties(cls); for (Property property : properties) { if (name.equals(property.getName())) return property; } return null; }
public List<Property> getLazyProperties(Class<?> entityClass) { List<Property> properties = reflection.findSerializableProperties(entityClass); List<Property> lazyProperties = new ArrayList<Property>(); for (Property property : properties) { if (property.isAnnotationPresent(Lazy.class)) lazyProperties.add(property); } return lazyProperties; }
public List<Property> getLazyProperties(Class<?> entityClass) { List<Property> properties = reflection.findSerializableProperties(entityClass); List<Property> lazyProperties = new ArrayList<Property>(); for (Property property : properties) { if (property.isAnnotationPresent(Lazy.class)) lazyProperties.add(property); } return lazyProperties; }
public List<Property> getLazyProperties(Class<?> entityClass) { List<Property> properties = reflection.findSerializableProperties(entityClass); List<Property> lazyProperties = new ArrayList<Property>(); for (Property property : properties) { if (property.isAnnotationPresent(Lazy.class)) lazyProperties.add(property); } return lazyProperties; }
public Property findSerializableProperty(Class<?> cls, String name) throws SecurityException { List<Property> properties = findSerializableProperties(cls); for (Property property : properties) { if (name.equals(property.getName())) return property; } return null; }
public Property findSerializableProperty(Class<?> cls, String name) throws SecurityException { List<Property> properties = findSerializableProperties(cls); for (Property property : properties) { if (name.equals(property.getName())) return property; } return null; }
public Property findSerializableProperty(Class<?> cls, String name) throws SecurityException { List<Property> properties = findSerializableProperties(cls); for (Property property : properties) { if (name.equals(property.getName())) return property; } return null; }
protected void encodeSerializable(OutputContext ctx, Serializable v) throws IOException, IllegalAccessException, InvocationTargetException { List<Property> properties = ctx.getReflection().findSerializableProperties(v.getClass()); for (Property property : properties) ctx.getAndWriteProperty(v, property); }
protected void decodeSerializable(InputContext ctx, Serializable v) throws IOException, ClassNotFoundException, IllegalAccessException, InvocationTargetException { List<Property> properties = ctx.getReflection().findSerializableProperties(v.getClass()); for (Property property : properties) ctx.readAndSetProperty(v, property); }
public void decode(ExtendedObjectInput in, Object v) throws IOException, ClassNotFoundException, IllegalAccessException, InvocationTargetException { if (!(v instanceof HibernateProxy)) { List<Property> properties = in.getReflection().findSerializableProperties(v.getClass()); for (Property property : properties) in.readAndSetProperty(v, property); } }
public Map<String, Object> getPropertyValues(Object entity, boolean raw, boolean excludeIdUid, boolean excludeVersion, boolean includeReadOnly) { Map<String, Object> values = new LinkedHashMap<String, Object>(); List<Property> properties = reflection.findSerializableProperties(entity.getClass());
public void encode(ExtendedObjectOutput out, Object v) throws IOException, IllegalAccessException, InvocationTargetException { Persistence persistence = Platform.persistence(); boolean initialized = persistence.isInitialized(v); out.writeBoolean(initialized); out.writeUTF(persistence.getDetachedState(v)); if (!initialized) out.writeObject(persistence.getId(v)); else { List<Property> properties = new ArrayList<Property>(out.getReflection().findSerializableProperties(v.getClass())); properties.remove(persistence.getInitializedProperty(v.getClass())); properties.remove(persistence.getDetachedStateProperty(v.getClass())); for (Property property : properties) out.getAndWriteProperty(v, property); } }
public void encode(ExtendedObjectOutput out, Object v) throws IOException, IllegalAccessException, InvocationTargetException { Persistence persistence = Platform.persistence(); boolean initialized = persistence.isInitialized(v); out.writeBoolean(initialized); out.writeUTF(persistence.getDetachedState(v)); if (!initialized) out.writeObject(persistence.getId(v)); else { List<Property> properties = new ArrayList<Property>(out.getReflection().findSerializableProperties(v.getClass())); properties.remove(persistence.getInitializedProperty(v.getClass())); properties.remove(persistence.getDetachedStateProperty(v.getClass())); for (Property property : properties) out.getAndWriteProperty(v, property); } }
public void encode(ExtendedObjectOutput out, Object v) throws IOException, IllegalAccessException, InvocationTargetException { Persistence persistence = Platform.persistence(); boolean initialized = persistence.isInitialized(v); out.writeBoolean(initialized); out.writeUTF(persistence.getDetachedState(v)); if (!initialized) out.writeObject(persistence.getId(v)); else { List<Property> properties = new ArrayList<Property>(out.getReflection().findSerializableProperties(v.getClass())); properties.remove(persistence.getInitializedProperty(v.getClass())); properties.remove(persistence.getDetachedStateProperty(v.getClass())); for (Property property : properties) out.getAndWriteProperty(v, property); } }
public void decode(ExtendedObjectInput in, Object v) throws IOException, ClassNotFoundException, IllegalAccessException, InvocationTargetException { Persistence persistence = Platform.persistence(); boolean initialized = in.readBoolean(); String detachedState = in.readUTF(); persistence.setInitialized(v, initialized); persistence.setDetachedState(v, detachedState); if (!initialized) persistence.setId(v, in.readObject()); else { List<Property> properties = new ArrayList<Property>(in.getReflection().findSerializableProperties(v.getClass())); properties.remove(persistence.getInitializedProperty(v.getClass())); properties.remove(persistence.getDetachedStateProperty(v.getClass())); for (Property property : properties) in.readAndSetProperty(v, property); } } }
public void decode(ExtendedObjectInput in, Object v) throws IOException, ClassNotFoundException, IllegalAccessException, InvocationTargetException { Persistence persistence = Platform.persistence(); boolean initialized = in.readBoolean(); String detachedState = in.readUTF(); persistence.setInitialized(v, initialized); persistence.setDetachedState(v, detachedState); if (!initialized) persistence.setId(v, in.readObject()); else { List<Property> properties = new ArrayList<Property>(in.getReflection().findSerializableProperties(v.getClass())); properties.remove(persistence.getInitializedProperty(v.getClass())); properties.remove(persistence.getDetachedStateProperty(v.getClass())); for (Property property : properties) in.readAndSetProperty(v, property); } } }
public void decode(ExtendedObjectInput in, Object v) throws IOException, ClassNotFoundException, IllegalAccessException, InvocationTargetException { Persistence persistence = Platform.persistence(); boolean initialized = in.readBoolean(); String detachedState = in.readUTF(); persistence.setInitialized(v, initialized); persistence.setDetachedState(v, detachedState); if (!initialized) persistence.setId(v, in.readObject()); else { List<Property> properties = new ArrayList<Property>(in.getReflection().findSerializableProperties(v.getClass())); properties.remove(persistence.getInitializedProperty(v.getClass())); properties.remove(persistence.getDetachedStateProperty(v.getClass())); for (Property property : properties) in.readAndSetProperty(v, property); } } }