Package org.hibernate.metamodel.source.binder

Examples of org.hibernate.metamodel.source.binder.TableSource


  }

  @Override
  public TableSource getPrimaryTable() {
    if ( JaxbJoinedSubclassElement.class.isInstance( entityElement() ) ) {
      return new TableSource() {
        @Override
        public String getExplicitSchemaName() {
          return ( (JaxbJoinedSubclassElement) entityElement() ).getSchema();
        }

        @Override
        public String getExplicitCatalogName() {
          return ( (JaxbJoinedSubclassElement) entityElement() ).getCatalog();
        }

        @Override
        public String getExplicitTableName() {
          return ( (JaxbJoinedSubclassElement) entityElement() ).getTable();
        }

        @Override
        public String getLogicalName() {
          // logical name for the primary table is null
          return null;
        }
      };
    }
    else if ( JaxbUnionSubclassElement.class.isInstance( entityElement() ) ) {
      return new TableSource() {
        @Override
        public String getExplicitSchemaName() {
          return ( (JaxbUnionSubclassElement) entityElement() ).getSchema();
        }
View Full Code Here


    return new Caching( region, accessType, cacheLazyProps );
  }

  @Override
  public TableSource getPrimaryTable() {
    return new TableSource() {
      @Override
      public String getExplicitSchemaName() {
        return entityElement().getSchema();
      }
View Full Code Here

  }

  @Override
  public TableSource getPrimaryTable() {
    if ( XMLJoinedSubclassElement.class.isInstance( entityElement() ) ) {
      return new TableSource() {
        @Override
        public String getExplicitSchemaName() {
          return ( (XMLJoinedSubclassElement) entityElement() ).getSchema();
        }

        @Override
        public String getExplicitCatalogName() {
          return ( (XMLJoinedSubclassElement) entityElement() ).getCatalog();
        }

        @Override
        public String getExplicitTableName() {
          return ( (XMLJoinedSubclassElement) entityElement() ).getTable();
        }

        @Override
        public String getLogicalName() {
          // logical name for the primary table is null
          return null;
        }
      };
    }
    else if ( XMLUnionSubclassElement.class.isInstance( entityElement() ) ) {
      return new TableSource() {
        @Override
        public String getExplicitSchemaName() {
          return ( (XMLUnionSubclassElement) entityElement() ).getSchema();
        }
View Full Code Here

    return new Caching( region, accessType, cacheLazyProps );
  }

  @Override
  public TableSource getPrimaryTable() {
    return new TableSource() {
      @Override
      public String getExplicitSchemaName() {
        return entityElement().getSchema();
      }
View Full Code Here

  }

  @Override
  public TableSource getPrimaryTable() {
    if ( JaxbJoinedSubclassElement.class.isInstance( entityElement() ) ) {
      return new TableSource() {
        @Override
        public String getExplicitSchemaName() {
          return ( (JaxbJoinedSubclassElement) entityElement() ).getSchema();
        }

        @Override
        public String getExplicitCatalogName() {
          return ( (JaxbJoinedSubclassElement) entityElement() ).getCatalog();
        }

        @Override
        public String getExplicitTableName() {
          return ( (JaxbJoinedSubclassElement) entityElement() ).getTable();
        }

        @Override
        public String getLogicalName() {
          // logical name for the primary table is null
          return null;
        }
      };
    }
    else if ( JaxbUnionSubclassElement.class.isInstance( entityElement() ) ) {
      return new TableSource() {
        @Override
        public String getExplicitSchemaName() {
          return ( (JaxbUnionSubclassElement) entityElement() ).getSchema();
        }
View Full Code Here

    return new Caching( region, accessType, cacheLazyProps );
  }

  @Override
  public TableSource getPrimaryTable() {
    return new TableSource() {
      @Override
      public String getExplicitSchemaName() {
        return entityElement().getSchema();
      }
View Full Code Here

    return new Caching( region, accessType, cacheLazyProps );
  }

  @Override
  public TableSource getPrimaryTable() {
    return new TableSource() {
      @Override
      public String getExplicitSchemaName() {
        return entityElement().getSchema();
      }
View Full Code Here

  }

  @Override
  public TableSource getPrimaryTable() {
    if ( XMLJoinedSubclassElement.class.isInstance( entityElement() ) ) {
      return new TableSource() {
        @Override
        public String getExplicitSchemaName() {
          return ( (XMLJoinedSubclassElement) entityElement() ).getSchema();
        }

        @Override
        public String getExplicitCatalogName() {
          return ( (XMLJoinedSubclassElement) entityElement() ).getCatalog();
        }

        @Override
        public String getExplicitTableName() {
          return ( (XMLJoinedSubclassElement) entityElement() ).getTable();
        }

        @Override
        public String getLogicalName() {
          // logical name for the primary table is null
          return null;
        }
      };
    }
    else if ( XMLUnionSubclassElement.class.isInstance( entityElement() ) ) {
      return new TableSource() {
        @Override
        public String getExplicitSchemaName() {
          return ( (XMLUnionSubclassElement) entityElement() ).getSchema();
        }
View Full Code Here

TOP

Related Classes of org.hibernate.metamodel.source.binder.TableSource

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.