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;
 
 import java.util.List;
 import java.util.Set;
 

Author(s):
modified by jflute (originated in S2Dao)
 
 public interface TnBeanMetaData {
 
     // ===================================================================================
     //                                                                          Basic Info
     //                                                                          ==========
     
Get the type of bean.

Returns:
The type of bean. (NotNull)
 
     Class<?> getBeanClass();

    
Get the DB meta of bean.

Returns:
The instance of DB meta. (NullAllowed: but if it's DBFlute entity, NotNull)
 
     DBMeta getDBMeta();

    
Get the table name of the bean.

Returns:
The name of table. (NotNull: if it's not entity, this value is 'df:Unknown')
 
     String getTableName();
 
     // ===================================================================================
     //                                                                       Property Type
     //                                                                       =============
     
Get the list of property type.

Returns:
The list of property type. (NotNull)
 
Get the property type by the key as case insensitive.

Parameters:
propertyName The name of property. (NotNull)
Returns:
The type of property. (NullAllowed)
 
     TnPropertyType getPropertyType(String propertyName);

    
Does it has the property type by the key as case insensitive.

Parameters:
propertyName The name of property. (NotNull)
Returns:
The determination, true or false.
 
     boolean hasPropertyType(String propertyName);
 
 
 
     boolean hasPropertyTypeByColumnName(String columnName);
 
     boolean hasPropertyTypeByAliasName(String aliasName);
 
 
     // ===================================================================================
     //                                                                     Optimistic Lock
     //                                                                     ===============
 
 
     boolean hasVersionNoPropertyType();
 
 
 
     boolean hasTimestampPropertyType();
 
     // ===================================================================================
    //                                                              Relation Property Type
    //                                                              ======================
    // ===================================================================================
    //                                                                         Primary Key
    //                                                                         ===========
    int getPrimaryKeySize();
    String getPrimaryKeyDbName(int index);
    // ===================================================================================
    //                                                                 Modified Properties
    //                                                                 ===================
New to GrepCode? Check out our FAQ X