public String getQuotedSchema() { return schema == null ? null : schema.toString(); }
public String getQuotedName() { return name == null ? null : name.toString(); }
public NameParts(Identifier catalogName, Identifier schemaName, Identifier objectName) { if ( objectName == null ) { throw new IllegalArgumentException( "Name cannot be null" ); } this.catalogName = catalogName; this.schemaName = schemaName; this.objectName = objectName; StringBuilder buff = new StringBuilder(); if ( catalogName != null ) { buff.append( catalogName.toString() ).append( '.' ); } if ( schemaName != null ) { buff.append( schemaName.toString() ).append( '.' ); } buff.append( objectName.toString() ); qualifiedText = buff.toString(); }
public Sequence createSequence(Identifier logicalName, int initialValue, int increment) { if ( sequences.containsKey( logicalName ) ) { throw new HibernateException( "Sequence was already registered with that name [" + logicalName.toString() + "]" ); } final Identifier physicalName = physicalNamingStrategy.toPhysicalSequenceName( logicalName, jdbcEnvironment ); Sequence sequence = new Sequence( this.physicalName.getCatalog(), this.physicalName.getSchema(), physicalName, initialValue, increment ); sequences.put( logicalName, sequence ); return sequence; }
Table table = namespace.locateTable( logicalName ); if ( table != null ) { throw new DuplicateMappingException( DuplicateMappingException.Type.TABLE, logicalName.toString() );