com.fnklabs.draenei.orm.FieldMetadata Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fnklabs-draenei Show documentation
Show all versions of fnklabs-draenei Show documentation
ORM for Cassandra but with distributed cache and analytics utils from package
package com.fnklabs.draenei.orm;
import java.beans.PropertyDescriptor;
import java.lang.reflect.Method;
class FieldMetadata {
private PropertyDescriptor propertyDescriptor;
private Class type;
private String name;
private Method readMethod;
private Method writeMethod;
public FieldMetadata(PropertyDescriptor propertyDescriptor, Class type, String name) {
this.propertyDescriptor = propertyDescriptor;
readMethod = propertyDescriptor.getReadMethod();
writeMethod = propertyDescriptor.getWriteMethod();
this.type = type;
this.name = name;
}
public Method getReadMethod() {
return readMethod;
}
public Method getWriteMethod() {
return writeMethod;
}
private PropertyDescriptor getPropertyDescriptor() {
return propertyDescriptor;
}
public Class getType() {
return type;
}
public String getName() {
return name;
}
}