Package com.draagon.meta.manager.db.defs

Examples of com.draagon.meta.manager.db.defs.ViewDef


    }
   
    if ( def instanceof ViewDef ) {

      // Check if the view exists and is valid
      ViewDef view = (ViewDef) def;
      if ( !dd.checkView( c, view ) ) {
     
        // If not, then auto create it or throw a not found exception
        if ( shouldAutoCreate() ) {
          log.info( "VALIDATION - CREATING VIEW " + def );
View Full Code Here


  /** Get the table mapping */
  protected ObjectMapping getViewMapping( MetaClass mc ) {

    // Create the view definition
    ViewDef v = new ViewDef( NameDef.parseName( getViewRef( mc )));
   
    // Add the SQL if it exists
    String sql = getViewSQL( mc );
    if ( sql != null ) {
      v.setSQL( sql );
    }
   
    // Create the mapping
    ObjectMappingDB mapping = new ObjectMappingDB( v );
   
View Full Code Here

TOP

Related Classes of com.draagon.meta.manager.db.defs.ViewDef

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.