Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright 2014-2015 the original author or authors.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *     http://www.apache.org/licenses/LICENSE-2.0
  *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 * either express or implied. See the License for the specific language
 * governing permissions and limitations under the License.
 */
package org.dbflute.dbmeta.property;
The interface of finder for property method.

Author(s):
jflute
Since:
1.0.5G (2014/05/20 Tuesday)
public interface PropertyMethodFinder {

    
Find the read method for the property.

Parameters:
beanType The type of bean that declares the method. (NotNull)
propertyName The name of property to find the method. (NotNull)
propertyType The type of property. (NotNull)
Returns:
The found method. (NullAllowed: when not found)
    Method findReadMethod(Class<?> beanTypeString propertyNameClass<?> propertyType);

    
Find the write method for the property.

Parameters:
beanType The type of bean that declares the method. (NotNull)
propertyName The name of property to find the method. (NotNull)
propertyType The type of property. (NotNull)
Returns:
The found method. (NullAllowed: when not found)
    Method findWriteMethod(Class<?> beanTypeString propertyNameClass<?> propertyType);
    // not use, converting to optional is implemented in row creators
    ///**
    // * Convert the value to property access type.
    // * @param propertyName The name of property. (NotNull)
    // * @param propertyAccessType The class type to access the property. (NotNull)
    // * @param value The value to be converted to property type, e.g. native type or optional. (NullAllowed: if null, returns null)
    // * @return The converted value or plain value. (NullAllowed: when the value is null)
    // */
    //Object convertToPropertyAccessType(String propertyName, Class<?> propertyAccessType, Object value);
New to GrepCode? Check out our FAQ X