@Override public String getName() { return property.getName(); }
public String getUidPropertyName(Object entity) { if (entity == null) throw new IllegalArgumentException("entity should not be null"); Property property = persistence.getUidProperty(entity instanceof Class<?> ? (Class<?>)entity : entity.getClass()); return property != null ? property.getName() : 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 String getIdPropertyName(Object entity) { if (entity == null) throw new IllegalArgumentException("entity should not be null"); Property property = persistence.getIdProperty(entity instanceof Class<?> ? (Class<?>) entity : entity.getClass()); return property != null ? property.getName() : null; }
private Set<String> getLazyPropertyNames(Class<?> entityClass) { Set<String> lazyPropertyNames = lazyPropertiesByClass.get(entityClass); if (lazyPropertyNames == null) { List<Property> lazyProperties = persistence.getLazyProperties(entityClass); lazyPropertyNames = new HashSet<String>(); for (Property lazyProperty : lazyProperties) lazyPropertyNames.add(lazyProperty.getName()); lazyPropertiesByClass.putIfAbsent(entityClass, lazyPropertyNames); } return lazyPropertyNames; }
public String getVersionPropertyName(Object entity) { if (entity == null) throw new IllegalArgumentException("entity should not be null"); Property property = persistence.getVersionProperty(entity instanceof Class<?> ? (Class<?>)entity : entity.getClass()); return property != null ? property.getName() : 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; }
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 void readAndSetProperty(Object obj, Property property) throws IOException, ClassNotFoundException, IllegalAccessException, InvocationTargetException { if (property.isAnnotationPresent(Include.class) && !property.isWritable()) property = new NoopWritableProperty(property.getName(), property.getType()); if (property.getType().isPrimitive()) codecRegistry.getPrimitivePropertyCodec(property.getType()).decodePrimitive(this, obj, property); else property.setObject(obj, readObject()); }
public void readAndSetProperty(Object obj, Property property) throws IOException, ClassNotFoundException, IllegalAccessException, InvocationTargetException { if (property.isAnnotationPresent(Include.class) && !property.isWritable()) property = new NoopWritableProperty(property.getName(), property.getType()); if (property.getType().isPrimitive()) codecRegistry.getPrimitivePropertyCodec(property.getType()).decodePrimitive(this, obj, property); else property.setObject(obj, readObject()); }
public void readAndSetProperty(Object obj, Property property) throws IOException, ClassNotFoundException, IllegalAccessException, InvocationTargetException { if (property.isAnnotationPresent(Include.class) && !property.isWritable()) property = new NoopWritableProperty(property.getName(), property.getType()); if (property.getType().isPrimitive()) codecRegistry.getPrimitivePropertyCodec(property.getType()).decodePrimitive(this, obj, property); else property.setObject(obj, readObject()); }
public void readAndSetProperty(Object obj, Property property) throws IOException, ClassNotFoundException, IllegalAccessException, InvocationTargetException { if (property.isAnnotationPresent(Include.class) && !property.isWritable()) property = new NoopWritableProperty(property.getName(), property.getType()); if (property.getType().isPrimitive()) codecRegistry.getPrimitivePropertyCodec(property.getType()).decodePrimitive(this, obj, property); else property.setObject(obj, readObject()); }