Tabnine Logo
IndexOrUniqueKeySecondPass.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.hibernate.cfg.IndexOrUniqueKeySecondPass
constructor

Best Java code snippets using org.hibernate.cfg.IndexOrUniqueKeySecondPass.<init> (Showing top 15 results out of 315)

origin: hibernate/hibernate-orm

public static void addIndexes(Table hibTable, Index[] indexes, MetadataBuildingContext buildingContext) {
  for (Index index : indexes) {
    //no need to handle inSecondPass here since it is only called from EntityBinder
    buildingContext.getMetadataCollector().addSecondPass(
        new IndexOrUniqueKeySecondPass( hibTable, index.name(), index.columnNames(), buildingContext )
    );
  }
}
origin: hibernate/hibernate-orm

void addIndex(String indexName, boolean inSecondPass) {
  IndexOrUniqueKeySecondPass secondPass = new IndexOrUniqueKeySecondPass( indexName, this, context, false );
  if ( inSecondPass ) {
    secondPass.doSecondPass( context.getMetadataCollector().getEntityBindingMap() );
  }
  else {
    context.getMetadataCollector().addSecondPass( secondPass );
  }
}
origin: hibernate/hibernate-orm

void addUniqueKey(String uniqueKeyName, boolean inSecondPass) {
  IndexOrUniqueKeySecondPass secondPass = new IndexOrUniqueKeySecondPass( uniqueKeyName, this, context, true );
  if ( inSecondPass ) {
    secondPass.doSecondPass( context.getMetadataCollector().getEntityBindingMap() );
  }
  else {
    context.getMetadataCollector().addSecondPass( secondPass );
  }
}
origin: org.hibernate/hibernate-annotations

void addIndex(String indexName, boolean inSecondPass) {
  IndexOrUniqueKeySecondPass secondPass = new IndexOrUniqueKeySecondPass( indexName, this, mappings, false );
  if ( inSecondPass ) {
    secondPass.doSecondPass( mappings.getClasses() );
  }
  else {
    mappings.addSecondPass(
        secondPass
    );
  }
}
origin: org.hibernate/hibernate-annotations

public static void addIndexes(Table hibTable, Index[] indexes, ExtendedMappings mappings) {
  for (Index index : indexes) {
    //no need to handle inSecondPass here since it is only called from EntityBinder
    mappings.addSecondPass(
        new IndexOrUniqueKeySecondPass( hibTable, index.name(), index.columnNames(), mappings )
    );
  }
}
origin: org.hibernate/hibernate-annotations

void addUniqueKey(String uniqueKeyName, boolean inSecondPass) {
  IndexOrUniqueKeySecondPass secondPass = new IndexOrUniqueKeySecondPass( uniqueKeyName, this, mappings, true );
  if ( inSecondPass ) {
    secondPass.doSecondPass( mappings.getClasses() );
  }
  else {
    mappings.addSecondPass(
        secondPass
    );
  }
}
origin: org.hibernate/com.springsource.org.hibernate

public static void addIndexes(Table hibTable, Index[] indexes, Mappings mappings) {
  for (Index index : indexes) {
    //no need to handle inSecondPass here since it is only called from EntityBinder
    mappings.addSecondPass(
        new IndexOrUniqueKeySecondPass( hibTable, index.name(), index.columnNames(), mappings )
    );
  }
}
origin: org.hibernate/com.springsource.org.hibernate

void addIndex(String indexName, boolean inSecondPass) {
  IndexOrUniqueKeySecondPass secondPass = new IndexOrUniqueKeySecondPass( indexName, this, mappings, false );
  if ( inSecondPass ) {
    secondPass.doSecondPass( mappings.getClasses() );
  }
  else {
    mappings.addSecondPass(
        secondPass
    );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

void addIndex(String indexName, boolean inSecondPass) {
  IndexOrUniqueKeySecondPass secondPass = new IndexOrUniqueKeySecondPass( indexName, this, mappings, false );
  if ( inSecondPass ) {
    secondPass.doSecondPass( mappings.getClasses() );
  }
  else {
    mappings.addSecondPass(
        secondPass
    );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

public static void addIndexes(Table hibTable, Index[] indexes, Mappings mappings) {
  for (Index index : indexes) {
    //no need to handle inSecondPass here since it is only called from EntityBinder
    mappings.addSecondPass(
        new IndexOrUniqueKeySecondPass( hibTable, index.name(), index.columnNames(), mappings )
    );
  }
}
origin: org.hibernate/com.springsource.org.hibernate

void addUniqueKey(String uniqueKeyName, boolean inSecondPass) {
  IndexOrUniqueKeySecondPass secondPass = new IndexOrUniqueKeySecondPass( uniqueKeyName, this, mappings, true );
  if ( inSecondPass ) {
    secondPass.doSecondPass( mappings.getClasses() );
  }
  else {
    mappings.addSecondPass(
        secondPass
    );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

void addUniqueKey(String uniqueKeyName, boolean inSecondPass) {
  IndexOrUniqueKeySecondPass secondPass = new IndexOrUniqueKeySecondPass( uniqueKeyName, this, mappings, true );
  if ( inSecondPass ) {
    secondPass.doSecondPass( mappings.getClasses() );
  }
  else {
    mappings.addSecondPass(
        secondPass
    );
  }
}
origin: org.hibernate.orm/hibernate-core

public static void addIndexes(MappedTable hibTable, Index[] indexes, MetadataBuildingContext buildingContext) {
  for (Index index : indexes) {
    //no need to handle inSecondPass here since it is only called from EntityBinder
    buildingContext.getMetadataCollector().addSecondPass(
        new IndexOrUniqueKeySecondPass( hibTable, index.name(), index.columnNames(), buildingContext )
    );
  }
}
origin: org.hibernate.orm/hibernate-core

void addIndex(String indexName, boolean inSecondPass) {
  IndexOrUniqueKeySecondPass secondPass = new IndexOrUniqueKeySecondPass( indexName, this, context, false );
  if ( inSecondPass ) {
    secondPass.doSecondPass( context.getMetadataCollector().getEntityBindingMap() );
  }
  else {
    context.getMetadataCollector().addSecondPass( secondPass );
  }
}
origin: org.hibernate.orm/hibernate-core

void addUniqueKey(String uniqueKeyName, boolean inSecondPass) {
  IndexOrUniqueKeySecondPass secondPass = new IndexOrUniqueKeySecondPass( uniqueKeyName, this, context, true );
  if ( inSecondPass ) {
    secondPass.doSecondPass( context.getMetadataCollector().getEntityBindingMap() );
  }
  else {
    context.getMetadataCollector().addSecondPass( secondPass );
  }
}
org.hibernate.cfgIndexOrUniqueKeySecondPass<init>

Javadoc

Build an index

Popular methods of IndexOrUniqueKeySecondPass

  • addConstraintToColumn
  • doSecondPass
  • addConstraintToColumns

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onRequestPermissionsResult (Fragment)
  • addToBackStack (FragmentTransaction)
  • notifyDataSetChanged (ArrayAdapter)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now