Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  *  Copyright 2009-2014 Pavel Ponec
  *
  *  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.ujorm.orm.ao;

Values list to control how the DLL (Data Definition Language) statements will be used to a defining data structure modification. The default value is CREATE_OR_UPDATE_DDL.

Author(s):
Pavel Ponec
See also:
org.ujorm.orm.metaModel.MetaParams
CREATE_OR_UPDATE_DDL Default value
public enum Orm2ddlPolicy {

    
Framework is expected to match the DDL structure with the ORM model and do not make any validation.

See also:
WARNING
    DO_NOTHING,
    
The policy makes no change in the database, however it logs a message in case missing a table, index, or column in the connected database - unlike option DO_NOTHING which make no log.

See also:
DO_NOTHING
    WARNING,
    
Create full DDL structure in condition that the the database structure was not found.
    CREATE_DDL,
    
Create or update full DDL structure. It is the DEFAULT value.
    CREATE_OR_UPDATE_DDL,
    
Throw the IllegalStateException in case missing a table, index, or column in the connected database.
    VALIDATE,
    
The value is defined from a parent. The hierarchy from the parent to a child is:
  • Meta Parameters
  • Database
  • Table
In case the parent ROOT is undefined, then the .CREATE_OR_UPDATE_DDL will be used.

    INHERITED,
    ;
New to GrepCode? Check out our FAQ X