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.accessory;
The handler of derived type for (Specify)DerivedReferrer.

Author(s):
jflute
Since:
1.0.5J (2014/06/18 Wednesday)
public interface DerivedTypeHandler {

    
Find the mapping type of the derived column.

Parameters:
derivingInfo The information of deriving sub-query. (NotNull)
Returns:
The mapping type to find value type. (NotNull)
    Class<?> findMappingType(HpDerivingSubQueryInfo derivingInfo);

    
Convert the selected value to derived map value. e.g. to Option

Parameters:
derivingInfo The information of deriving sub-query. (NotNull)
selectedValue The selected value from database. (NullAllowed)
Returns:
The converted value. (NullAllowed)
    Object convertToMapValue(HpDerivingSubQueryInfo derivingInfoObject selectedValue);
New to GrepCode? Check out our FAQ X