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.s2dao.metadata;
The factory of bean meta data.

Author(s):
modified by jflute (originated in S2Dao)
public interface TnBeanMetaDataFactory {

    
Create the bean meta data as relation nest level 0.

Parameters:
beanClass The type of bean. (NotNull)
Returns:
The created bean meta data (or cached instance). (NotNull)
    TnBeanMetaData createBeanMetaData(Class<?> beanClass);

    
Create the bean meta data for relation.

Parameters:
beanClass The type of bean. (NotNull)
relationNestLevel The nest level of relation. (NotMinus)
Returns:
The created bean meta data (or cached instance). (NotNull)
    TnBeanMetaData createBeanMetaData(Class<?> beanClassint relationNestLevel);

    
Create the bean meta data for relation with specified database meta data.
Other methods also use meta data but you can specify your own meta data by this.

Parameters:
dbMetaData The meta data of database. (NotNull)
beanClass The type of bean. (NotNull)
relationNestLevel The nest level of relation. (NotMinus)
Returns:
The created bean meta data (or cached instance). (NotNull)
    TnBeanMetaData createBeanMetaData(DatabaseMetaData dbMetaDataClass<?> beanClassint relationNestLevel);

    
Get the factory for relation optional object.
Basically always return the same instance.

Returns:
The instance of factory. (NotNull)
New to GrepCode? Check out our FAQ X