Codota Logo
XMLContext$Default.getCatalog
Code IndexAdd Codota to your IDE (free)

How to use
getCatalog
method
in
org.hibernate.cfg.annotations.reflection.XMLContext$Default

Best Java code snippets using org.hibernate.cfg.annotations.reflection.XMLContext$Default.getCatalog (Showing top 20 results out of 315)

  • Common ways to obtain XMLContext$Default
private void myMethod () {
XMLContext$Default x =
  • Codota Iconnew Default()
  • Codota IconXMLContext xMLContext;String className;xMLContext.getDefault(className)
  • Codota IconXMLContext xMLContext;xMLContext.getDefault(null)
  • Smart code suggestions by Codota
}
origin: hibernate/hibernate-orm

defaults.put( "catalog", xmlDefaults.getCatalog() );
defaults.put( "delimited-identifier", xmlDefaults.getDelimitedIdentifier() );
defaults.put( "cascade-persist", xmlDefaults.getCascadePersist() );
origin: hibernate/hibernate-orm

copyStringAttribute( annotation, element, "name", false );
copyStringAttribute( annotation, element, "catalog", false );
if ( StringHelper.isNotEmpty( defaults.getCatalog() )
    && StringHelper.isEmpty( (String) annotation.valueOf( "catalog" ) ) ) {
  annotation.setValue( "catalog", defaults.getCatalog() );
origin: hibernate/hibernate-orm

private void getCollectionTable(List<Annotation> annotationList, Element element, XMLContext.Default defaults) {
  Element subelement = element != null ? element.element( "collection-table" ) : null;
  if ( subelement != null ) {
    AnnotationDescriptor annotation = new AnnotationDescriptor( CollectionTable.class );
    copyStringAttribute( annotation, subelement, "name", false );
    copyStringAttribute( annotation, subelement, "catalog", false );
    if ( StringHelper.isNotEmpty( defaults.getCatalog() )
        && StringHelper.isEmpty( (String) annotation.valueOf( "catalog" ) ) ) {
      annotation.setValue( "catalog", defaults.getCatalog() );
    }
    copyStringAttribute( annotation, subelement, "schema", false );
    if ( StringHelper.isNotEmpty( defaults.getSchema() )
        && StringHelper.isEmpty( (String) annotation.valueOf( "schema" ) ) ) {
      annotation.setValue( "schema", defaults.getSchema() );
    }
    JoinColumn[] joinColumns = getJoinColumns( subelement, false );
    if ( joinColumns.length > 0 ) {
      annotation.setValue( "joinColumns", joinColumns );
    }
    buildUniqueConstraints( annotation, subelement );
    buildIndex( annotation, subelement );
    annotationList.add( AnnotationFactory.create( annotation ) );
  }
}
origin: hibernate/hibernate-orm

public static TableGenerator buildTableGeneratorAnnotation(Element element, XMLContext.Default defaults) {
  AnnotationDescriptor ad = new AnnotationDescriptor( TableGenerator.class );
  copyStringAttribute( ad, element, "name", false );
  copyStringAttribute( ad, element, "table", false );
  copyStringAttribute( ad, element, "catalog", false );
  copyStringAttribute( ad, element, "schema", false );
  copyStringAttribute( ad, element, "pk-column-name", false );
  copyStringAttribute( ad, element, "value-column-name", false );
  copyStringAttribute( ad, element, "pk-column-value", false );
  copyIntegerAttribute( ad, element, "initial-value" );
  copyIntegerAttribute( ad, element, "allocation-size" );
  buildUniqueConstraints( ad, element );
  if ( StringHelper.isEmpty( (String) ad.valueOf( "schema" ) )
      && StringHelper.isNotEmpty( defaults.getSchema() ) ) {
    ad.setValue( "schema", defaults.getSchema() );
  }
  if ( StringHelper.isEmpty( (String) ad.valueOf( "catalog" ) )
      && StringHelper.isNotEmpty( defaults.getCatalog() ) ) {
    ad.setValue( "catalog", defaults.getCatalog() );
  }
  return AnnotationFactory.create( ad );
}
origin: hibernate/hibernate-orm

final Class<JoinTable> annotationType = JoinTable.class;
if ( defaultToJoinTable
    && ( StringHelper.isNotEmpty( defaults.getCatalog() )
    || StringHelper.isNotEmpty( defaults.getSchema() ) ) ) {
  AnnotationDescriptor ad = new AnnotationDescriptor( annotationType );
      && StringHelper.isNotEmpty( defaults.getCatalog() ) ) {
    ad.setValue( "catalog", defaults.getCatalog() );
origin: hibernate/hibernate-orm

if ( subelement == null ) {
  if ( StringHelper.isNotEmpty( defaults.getCatalog() )
      || StringHelper.isNotEmpty( defaults.getSchema() ) ) {
    AnnotationDescriptor annotation = new AnnotationDescriptor( Table.class );
        && StringHelper.isNotEmpty( defaults.getCatalog() ) ) {
      annotation.setValue( "catalog", defaults.getCatalog() );
  copyStringAttribute( annotation, subelement, "name", false );
  copyStringAttribute( annotation, subelement, "catalog", false );
  if ( StringHelper.isNotEmpty( defaults.getCatalog() )
      && StringHelper.isEmpty( (String) annotation.valueOf( "catalog" ) ) ) {
    annotation.setValue( "catalog", defaults.getCatalog() );
origin: hibernate/hibernate-orm

TableGenerator tableAnn = getPhysicalAnnotation( TableGenerator.class );
if ( StringHelper.isNotEmpty( defaults.getSchema() )
    || StringHelper.isNotEmpty( defaults.getCatalog() ) ) {
  AnnotationDescriptor annotation = new AnnotationDescriptor( TableGenerator.class );
  annotation.setValue( "name", tableAnn.name() );
  annotation.setValue( "catalog", tableAnn.table() );
  if ( StringHelper.isEmpty( (String) annotation.valueOf( "catalog" ) )
      && StringHelper.isNotEmpty( defaults.getCatalog() ) ) {
    annotation.setValue( "catalog", defaults.getCatalog() );
origin: org.hibernate/hibernate-annotations

public static TableGenerator buildTableGeneratorAnnotation(Element element, XMLContext.Default defaults) {
  AnnotationDescriptor ad = new AnnotationDescriptor( TableGenerator.class );
  copyStringAttribute( ad, element, "name", false );
  copyStringAttribute( ad, element, "table", false );
  copyStringAttribute( ad, element, "catalog", false );
  copyStringAttribute( ad, element, "schema", false );
  copyStringAttribute( ad, element, "pk-column-name", false );
  copyStringAttribute( ad, element, "value-column-name", false );
  copyStringAttribute( ad, element, "pk-column-value", false );
  copyIntegerAttribute( ad, element, "initial-value" );
  copyIntegerAttribute( ad, element, "allocation-size" );
  buildUniqueConstraints( ad, element );
  if ( StringHelper.isEmpty( (String) ad.valueOf( "schema" ) )
      && StringHelper.isNotEmpty( defaults.getSchema() ) ) {
    ad.setValue( "schema", defaults.getSchema() );
  }
  if ( StringHelper.isEmpty( (String) ad.valueOf( "catalog" ) )
      && StringHelper.isNotEmpty( defaults.getCatalog() ) ) {
    ad.setValue( "catalog", defaults.getCatalog() );
  }
  return AnnotationFactory.create( ad );
}
origin: org.hibernate/hibernate-annotations

private void getJoinTable(List<Annotation> annotationList, Element tree, XMLContext.Default defaults) {
  Element subelement = tree == null ? null : tree.element( "join-table" );
  final Class<JoinTable> annotationType = JoinTable.class;
  if ( subelement != null ) {
    //ignore java annotation, an element is defined
    AnnotationDescriptor annotation = new AnnotationDescriptor( annotationType );
    copyStringAttribute( annotation, subelement, "name", false );
    copyStringAttribute( annotation, subelement, "catalog", false );
    if ( StringHelper.isNotEmpty( defaults.getCatalog() )
        && StringHelper.isEmpty( (String) annotation.valueOf( "catalog" ) ) ) {
      annotation.setValue( "catalog", defaults.getCatalog() );
    }
    copyStringAttribute( annotation, subelement, "schema", false );
    if ( StringHelper.isNotEmpty( defaults.getSchema() )
        && StringHelper.isEmpty( (String) annotation.valueOf( "schema" ) ) ) {
      annotation.setValue( "schema", defaults.getSchema() );
    }
    buildUniqueConstraints( annotation, subelement );
    annotation.setValue( "joinColumns", getJoinColumns( subelement, false ) );
    annotation.setValue( "inverseJoinColumns", getJoinColumns( subelement, true ) );
    annotationList.add( AnnotationFactory.create( annotation ) );
  }
}
origin: org.hibernate/hibernate-annotations

private void overridesDefaultInSecondaryTable(
    SecondaryTable secTableAnn, XMLContext.Default defaults, List<SecondaryTable> secondaryTables
) {
  if ( secTableAnn != null ) {
    //handle default values
    if ( StringHelper.isNotEmpty( defaults.getCatalog() )
        || StringHelper.isNotEmpty( defaults.getSchema() ) ) {
      AnnotationDescriptor annotation = new AnnotationDescriptor( SecondaryTable.class );
      annotation.setValue( "name", secTableAnn.name() );
      annotation.setValue( "schema", secTableAnn.schema() );
      annotation.setValue( "catalog", secTableAnn.catalog() );
      annotation.setValue( "uniqueConstraints", secTableAnn.uniqueConstraints() );
      annotation.setValue( "pkJoinColumns", secTableAnn.pkJoinColumns() );
      if ( StringHelper.isEmpty( (String) annotation.valueOf( "schema" ) )
          && StringHelper.isNotEmpty( defaults.getSchema() ) ) {
        annotation.setValue( "schema", defaults.getSchema() );
      }
      if ( StringHelper.isEmpty( (String) annotation.valueOf( "catalog" ) )
          && StringHelper.isNotEmpty( defaults.getCatalog() ) ) {
        annotation.setValue( "catalog", defaults.getCatalog() );
      }
      secondaryTables.add( (SecondaryTable) AnnotationFactory.create( annotation ) );
    }
    else {
      secondaryTables.add( secTableAnn );
    }
  }
}
origin: org.hibernate/hibernate-annotations

TableGenerator tableAnn = getJavaAnnotation( TableGenerator.class );
if ( StringHelper.isNotEmpty( defaults.getSchema() )
    || StringHelper.isNotEmpty( defaults.getCatalog() ) ) {
  AnnotationDescriptor annotation = new AnnotationDescriptor( TableGenerator.class );
  annotation.setValue( "name", tableAnn.name() );
  annotation.setValue( "catalog", tableAnn.table() );
  if ( StringHelper.isEmpty( (String) annotation.valueOf( "catalog" ) )
      && StringHelper.isNotEmpty( defaults.getCatalog() ) ) {
    annotation.setValue( "catalog", defaults.getCatalog() );
origin: org.hibernate/hibernate-annotations

copyStringAttribute( annotation, element, "name", false );
copyStringAttribute( annotation, element, "catalog", false );
if ( StringHelper.isNotEmpty( defaults.getCatalog() )
    && StringHelper.isEmpty( (String) annotation.valueOf( "catalog" ) ) ) {
  annotation.setValue( "catalog", defaults.getCatalog() );
origin: hibernate/hibernate-orm

private void overridesDefaultInSecondaryTable(
    SecondaryTable secTableAnn, XMLContext.Default defaults, List<SecondaryTable> secondaryTables
) {
  if ( secTableAnn != null ) {
    //handle default values
    if ( StringHelper.isNotEmpty( defaults.getCatalog() )
        || StringHelper.isNotEmpty( defaults.getSchema() ) ) {
      AnnotationDescriptor annotation = new AnnotationDescriptor( SecondaryTable.class );
      annotation.setValue( "name", secTableAnn.name() );
      annotation.setValue( "schema", secTableAnn.schema() );
      annotation.setValue( "catalog", secTableAnn.catalog() );
      annotation.setValue( "uniqueConstraints", secTableAnn.uniqueConstraints() );
      annotation.setValue( "pkJoinColumns", secTableAnn.pkJoinColumns() );
      if ( StringHelper.isEmpty( (String) annotation.valueOf( "schema" ) )
          && StringHelper.isNotEmpty( defaults.getSchema() ) ) {
        annotation.setValue( "schema", defaults.getSchema() );
      }
      if ( StringHelper.isEmpty( (String) annotation.valueOf( "catalog" ) )
          && StringHelper.isNotEmpty( defaults.getCatalog() ) ) {
        annotation.setValue( "catalog", defaults.getCatalog() );
      }
      secondaryTables.add( AnnotationFactory.create( annotation ) );
    }
    else {
      secondaryTables.add( secTableAnn );
    }
  }
}
private static void buildIndex(AnnotationDescriptor annotation, Element element){
origin: org.hibernate/hibernate-annotations

final Class<JoinTable> annotationType = JoinTable.class;
if ( defaultToJoinTable
    && ( StringHelper.isNotEmpty( defaults.getCatalog() )
    || StringHelper.isNotEmpty( defaults.getSchema() ) ) ) {
  AnnotationDescriptor ad = new AnnotationDescriptor( annotationType );
      && StringHelper.isNotEmpty( defaults.getCatalog() ) ) {
    ad.setValue( "catalog", defaults.getCatalog() );
origin: hibernate/hibernate-orm

private JoinTable buildJoinTable(Element tree, XMLContext.Default defaults) {
  Element subelement = tree == null ? null : tree.element( "join-table" );
  final Class<JoinTable> annotationType = JoinTable.class;
  if ( subelement == null ) {
    return null;
  }
  //ignore java annotation, an element is defined
  AnnotationDescriptor annotation = new AnnotationDescriptor( annotationType );
  copyStringAttribute( annotation, subelement, "name", false );
  copyStringAttribute( annotation, subelement, "catalog", false );
  if ( StringHelper.isNotEmpty( defaults.getCatalog() )
      && StringHelper.isEmpty( (String) annotation.valueOf( "catalog" ) ) ) {
    annotation.setValue( "catalog", defaults.getCatalog() );
  }
  copyStringAttribute( annotation, subelement, "schema", false );
  if ( StringHelper.isNotEmpty( defaults.getSchema() )
      && StringHelper.isEmpty( (String) annotation.valueOf( "schema" ) ) ) {
    annotation.setValue( "schema", defaults.getSchema() );
  }
  buildUniqueConstraints( annotation, subelement );
  buildIndex( annotation, subelement );
  annotation.setValue( "joinColumns", getJoinColumns( subelement, false ) );
  annotation.setValue( "inverseJoinColumns", getJoinColumns( subelement, true ) );
  return AnnotationFactory.create( annotation );
}
origin: org.hibernate/hibernate-annotations

if ( subelement == null ) {
  if ( StringHelper.isNotEmpty( defaults.getCatalog() )
      || StringHelper.isNotEmpty( defaults.getSchema() ) ) {
    AnnotationDescriptor annotation = new AnnotationDescriptor( Table.class );
        && StringHelper.isNotEmpty( defaults.getCatalog() ) ) {
      annotation.setValue( "catalog", defaults.getCatalog() );
  copyStringAttribute( annotation, subelement, "name", false );
  copyStringAttribute( annotation, subelement, "catalog", false );
  if ( StringHelper.isNotEmpty( defaults.getCatalog() )
      && StringHelper.isEmpty( (String) annotation.valueOf( "catalog" ) ) ) {
    annotation.setValue( "catalog", defaults.getCatalog() );
origin: hibernate/hibernate-orm

public void override(Default globalDefault) {
  if ( globalDefault != null ) {
    if ( globalDefault.getAccess() != null ) {
      access = globalDefault.getAccess();
    }
    if ( globalDefault.getPackageName() != null ) {
      packageName = globalDefault.getPackageName();
    }
    if ( globalDefault.getSchema() != null ) {
      schema = globalDefault.getSchema();
    }
    if ( globalDefault.getCatalog() != null ) {
      catalog = globalDefault.getCatalog();
    }
    if ( globalDefault.getDelimitedIdentifier() != null ) {
      delimitedIdentifier = globalDefault.getDelimitedIdentifier();
    }
    if ( globalDefault.getMetadataComplete() != null ) {
      metadataComplete = globalDefault.getMetadataComplete();
    }
    //TODO fix that in stone if cascade-persist is set already?
    if ( globalDefault.getCascadePersist() != null ) cascadePersist = globalDefault.getCascadePersist();
  }
}
origin: org.hibernate/com.springsource.org.hibernate

public void override(Default globalDefault) {
  if ( globalDefault != null ) {
    if ( globalDefault.getAccess() != null ) access = globalDefault.getAccess();
    if ( globalDefault.getPackageName() != null ) packageName = globalDefault.getPackageName();
    if ( globalDefault.getSchema() != null ) schema = globalDefault.getSchema();
    if ( globalDefault.getCatalog() != null ) catalog = globalDefault.getCatalog();
    if ( globalDefault.getDelimitedIdentifier() != null ) delimitedIdentifier = globalDefault.getDelimitedIdentifier();
    if ( globalDefault.getMetadataComplete() != null ) {
      metadataComplete = globalDefault.getMetadataComplete();
    }
    //TODO fix that in stone if cascade-persist is set already?
    if ( globalDefault.getCascadePersist() != null ) cascadePersist = globalDefault.getCascadePersist();
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

public void override(Default globalDefault) {
  if ( globalDefault != null ) {
    if ( globalDefault.getAccess() != null ) access = globalDefault.getAccess();
    if ( globalDefault.getPackageName() != null ) packageName = globalDefault.getPackageName();
    if ( globalDefault.getSchema() != null ) schema = globalDefault.getSchema();
    if ( globalDefault.getCatalog() != null ) catalog = globalDefault.getCatalog();
    if ( globalDefault.getDelimitedIdentifier() != null ) delimitedIdentifier = globalDefault.getDelimitedIdentifier();
    if ( globalDefault.getMetadataComplete() != null ) {
      metadataComplete = globalDefault.getMetadataComplete();
    }
    //TODO fix that in stone if cascade-persist is set already?
    if ( globalDefault.getCascadePersist() != null ) cascadePersist = globalDefault.getCascadePersist();
  }
}
origin: org.hibernate/hibernate-annotations

public void override(Default globalDefault) {
  if ( globalDefault != null ) {
    if ( globalDefault.getAccess() != null ) access = globalDefault.getAccess();
    if ( globalDefault.getPackageName() != null ) packageName = globalDefault.getPackageName();
    if ( globalDefault.getSchema() != null ) schema = globalDefault.getSchema();
    if ( globalDefault.getCatalog() != null ) catalog = globalDefault.getCatalog();
    if ( globalDefault.getDelimitedIdentifier() != null ) delimitedIdentifier = globalDefault.getDelimitedIdentifier();
    if ( globalDefault.getMetadataComplete() != null ) {
      metadataComplete = globalDefault.getMetadataComplete();
    }
    //TODO fix that in stone if cascade-persist is set already?
    if ( globalDefault.getCascadePersist() != null ) cascadePersist = globalDefault.getCascadePersist();
  }
}
org.hibernate.cfg.annotations.reflectionXMLContext$DefaultgetCatalog

Popular methods of XMLContext$Default

  • <init>
  • canUseJavaAnnotations
  • getAccess
  • getCascadePersist
  • getDelimitedIdentifier
  • getMetadataComplete
  • getPackageName
  • getSchema
  • override
  • setAccess
  • setCascadePersist
  • setCatalog
  • setCascadePersist,
  • setCatalog,
  • setDelimitedIdentifiers,
  • setMetadataComplete,
  • setPackageName,
  • setSchema

Popular in Java

  • Reading from database using SQL prepared statement
  • setScale (BigDecimal)
  • findViewById (Activity)
  • getSystemService (Context)
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
  • Table (org.hibernate.mapping)
    A relational table
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now