congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Namespace$Name.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.hibernate.boot.model.relational.Namespace$Name
constructor

Best Java code snippets using org.hibernate.boot.model.relational.Namespace$Name.<init> (Showing top 10 results out of 315)

origin: hibernate/hibernate-orm

public Namespace locateNamespace(Identifier catalogName, Identifier schemaName) {
  if ( catalogName == null && schemaName == null ) {
    return getDefaultNamespace();
  }
  final Namespace.Name name = new Namespace.Name( catalogName, schemaName );
  Namespace namespace = namespaceMap.get( name );
  if ( namespace == null ) {
    namespace = makeNamespace( name );
  }
  return namespace;
}
origin: hibernate/hibernate-orm

public Namespace adjustDefaultNamespace(Identifier catalogName, Identifier schemaName) {
  final Namespace.Name name = new Namespace.Name( catalogName, schemaName );
  if ( implicitNamespace.getName().equals( name ) ) {
    return implicitNamespace;
  }
  Namespace namespace = namespaceMap.get( name );
  if ( namespace == null ) {
    namespace = makeNamespace( name );
  }
  implicitNamespace = namespace;
  return implicitNamespace;
}
origin: hibernate/hibernate-orm

fks.add( new ForeignKeyInformationImpl( new Identifier( "objectId2id_2", false ), new ArrayList<>() ) );
Mockito.when( informationExtractor.getForeignKeys( Mockito.any() ) ).thenReturn( fks );
Name schemaName = new Name( new Identifier( "-", false ), new Identifier( "-", false ) );
QualifiedTableName tableName = new QualifiedTableName( schemaName, new Identifier( "-", false ) );
TableInformation tableInformation = new TableInformationImpl( informationExtractor, identifierHelper, tableName, false, null );
origin: hibernate/hibernate-orm

foreignKey.setReferencedTable( new Table( "table2" ) );
Name schemaName = new Name( new Identifier( "-", false ), new Identifier( "-", false ) );
InformationExtractor informationExtractor = Mockito.mock( InformationExtractor.class );
IdentifierHelper identifierHelper = new IdentifierHelperImpl();
origin: hibernate/hibernate-orm

foreignKey.setReferencedTable( new Table( "table2" ) );
Name schemaName = new Name( new Identifier( "-", false ), new Identifier( "-", false ) );
InformationExtractor informationExtractor = Mockito.mock( InformationExtractor.class );
IdentifierHelper identifierHelper = new IdentifierHelperImpl();
origin: hibernate/hibernate-orm

fks.add( new ForeignKeyInformationImpl( new Identifier( "objectId2id", false ), new ArrayList<>() ) );
Mockito.when( informationExtractor.getForeignKeys( Mockito.any() ) ).thenReturn( fks );
Name schemaName = new Name( new Identifier( "-", false ), new Identifier( "-", false ) );
QualifiedTableName tableName = new QualifiedTableName( schemaName, new Identifier( "-", false ) );
TableInformation tableInformation = new TableInformationImpl( informationExtractor, identifierHelper, tableName, false, null );
origin: hibernate/hibernate-orm

@Test
public void testQualifiedNameSeparator() throws Exception {
  Namespace.Name namespaceName = new Namespace.Name(
      Identifier.toIdentifier( "DB1" ),
      Identifier.toIdentifier( "PUBLIC" )
  );
  String expectedName = null;
  for ( Namespace namespace : metadata().getDatabase().getNamespaces() ) {
    if ( !namespace.getName().equals( namespaceName ) ) {
      continue;
    }
    assertEquals( 1, namespace.getTables().size() );
    expectedName = metadata().getDatabase().getJdbcEnvironment().getQualifiedObjectNameFormatter().format(
        namespace.getTables().iterator().next().getQualifiedTableName(),
        getDialect()
    );
  }
  assertNotNull( expectedName );
  SingleTableEntityPersister persister = (SingleTableEntityPersister) sessionFactory().getEntityPersister( Box.class.getName() );
  assertEquals( expectedName, persister.getTableName() );
}
origin: hibernate/hibernate-orm

public Namespace(PhysicalNamingStrategy physicalNamingStrategy, JdbcEnvironment jdbcEnvironment, Name name) {
  this.physicalNamingStrategy = physicalNamingStrategy;
  this.jdbcEnvironment = jdbcEnvironment;
  this.name = name;
  this.physicalName = new Name(
      physicalNamingStrategy
          .toPhysicalCatalogName( name.getCatalog(), jdbcEnvironment ),
      physicalNamingStrategy
          .toPhysicalSchemaName( name.getSchema(), jdbcEnvironment )
  );
  log.debugf(
      "Created database namespace [logicalName=%s, physicalName=%s]",
      name.toString(),
      physicalName.toString()
  );
}
origin: hibernate/hibernate-orm

  private ColumnInformation getColumnInformation(String tableName, String columnName) {
    Name schemaName = new Name( new Identifier( "-", false ), new Identifier( "-", false ) );
    TableInformation containingTableInformation = new TableInformationImpl( null, null,
        new QualifiedTableName( schemaName, new Identifier( tableName, false ) ), false, null );
    Identifier columnIdentifier = new Identifier( columnName, false );
    int typeCode = 0;
    String typeName = null;
    int columnSize = 0;
    int decimalDigits = 0;
    TruthValue nullable = null;
    ColumnInformationImpl columnInformation = new ColumnInformationImpl( containingTableInformation, columnIdentifier, typeCode, typeName, columnSize,
        decimalDigits, nullable );
    return columnInformation;
  }
}
origin: hibernate/hibernate-orm

public Database(MetadataBuildingOptions buildingOptions, JdbcEnvironment jdbcEnvironment) {
  this.serviceRegistry = buildingOptions.getServiceRegistry();
  this.jdbcEnvironment = jdbcEnvironment;
  this.physicalNamingStrategy = buildingOptions.getPhysicalNamingStrategy();
  this.dialect = determineDialect( buildingOptions );
  this.implicitNamespace = makeNamespace(
      new Namespace.Name(
          toIdentifier( buildingOptions.getMappingDefaults().getImplicitCatalogName() ),
          toIdentifier( buildingOptions.getMappingDefaults().getImplicitSchemaName() )
      )
  );
}
org.hibernate.boot.model.relationalNamespace$Name<init>

Popular methods of Namespace$Name

  • getCatalog
  • getSchema
  • equals
  • hashCode
  • toString

Popular in Java

  • Start an intent from android
  • compareTo (BigDecimal)
  • requestLocationUpdates (LocationManager)
  • getApplicationContext (Context)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top Sublime Text plugins
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