use of java.beans.Transient in project MantaroBot by Mantaro.
the class PlayerData method marryDate.
@Transient
public String marryDate() {
if (getMarriedSince() == null)
return null;
SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyy", Locale.getDefault());
final Date date = new Date(getMarriedSince());
return sdf.format(date);
}
use of java.beans.Transient in project coprhd-controller by CoprHD.
the class DataObjectType method isColumnField.
public static boolean isColumnField(String className, PropertyDescriptor pd) {
if (pd.getName().equals("class")) {
return false;
}
Method readMethod = pd.getReadMethod();
Method writeMethod = pd.getWriteMethod();
if (readMethod == null || writeMethod == null) {
_log.info("{}.{} no getter or setter method, skip", className, pd.getName());
return false;
}
// Skip Transient Properties
if (readMethod.isAnnotationPresent(Transient.class) || writeMethod.isAnnotationPresent(Transient.class)) {
_log.info("{}.{} has Transient annotation, skip", className, pd.getName());
return false;
}
return true;
}
Aggregations