Class PojoMetadata

java.lang.Object
org.sql2o.reflection.PojoMetadata

public class PojoMetadata extends Object
Stores metadata for a POJO.
  • Field Details

    • throwOnMappingFailure

      public final boolean throwOnMappingFailure
  • Constructor Details

    • PojoMetadata

      public PojoMetadata(Class clazz, boolean caseSensitive, boolean autoDeriveColumnNames, Map<String,String> columnMappings, boolean throwOnMappingError)
  • Method Details

    • isCaseSensitive

      public boolean isCaseSensitive()
    • isAutoDeriveColumnNames

      public boolean isAutoDeriveColumnNames()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getObjectConstructor

      public ObjectConstructor getObjectConstructor()
    • getColumnMappings

      public Map<String,String> getColumnMappings()
    • getPropertyGetter

      public Getter getPropertyGetter(String propertyName)
    • getPropertyGetterIfExists

      public Getter getPropertyGetterIfExists(String propertyName)
    • getPropertySetter

      public Setter getPropertySetter(String propertyName)
    • getPropertySetterIfExists

      public Setter getPropertySetterIfExists(String propertyName)
    • getType

      public Class getType()
    • getValueOfProperty

      public Object getValueOfProperty(String propertyName, Object object)