Package org.hibernate.metamodel.relational

Examples of org.hibernate.metamodel.relational.Size


    return null;
  }

  @Override
  public Size getSize() {
    return new Size(
        columnValues.getPrecision(),
        columnValues.getScale(),
        columnValues.getLength(),
        Size.LobMultiplier.NONE
    );
View Full Code Here


    return null;
  }

  @Override
  public Size getSize() {
    return new Size(
        Helper.getIntValue( columnElement.getPrecision(), -1 ),
        Helper.getIntValue( columnElement.getScale(), -1 ),
        Helper.getLongValue( columnElement.getLength(), -1 ),
        Size.LobMultiplier.NONE
    );
View Full Code Here

  HbmColumnRelationalState(XMLManyToOneElement manyToOne,
               HbmSimpleValueRelationalStateContainer container) {
    this.container = container;
    this.explicitColumnName = manyToOne.getName();
    this.size = new Size();
    this.isNullable = !MappingHelper.getBooleanValue( manyToOne.isNotNull(), false );
    this.isUnique = manyToOne.isUnique();
    this.checkCondition = null;
    this.defaultColumnValue = null;
    this.sqlType = null;
View Full Code Here

      throw new IllegalArgumentException(
          "This method should not be called with non-empty version.getColumnElement()"
      );
    }
    // TODO: should set default
    this.size = new Size();
    this.isNullable = false;
    this.isUnique = false;
    this.checkCondition = null;
    this.defaultColumnValue = null;
    this.sqlType = null;
View Full Code Here

  HbmColumnRelationalState(XMLTimestamp timestamp,
               HbmSimpleValueRelationalStateContainer container) {
    this.container = container;
    this.explicitColumnName = timestamp.getColumn();
    // TODO: should set default
    this.size = new Size();
    this.isNullable = false;
    this.isUnique = true; // well, it should hopefully be unique...
    this.checkCondition = null;
    this.defaultColumnValue = null;
    this.sqlType = null;
View Full Code Here

    return size;
  }

  protected static Size createSize(String length, String scale, String precision) {
    // TODO: should this set defaults if length, scale, precision is not specified?
    Size size = new Size();
    if ( length != null ) {
      size.setLength( Integer.parseInt( length ) );
    }
    if ( scale != null ) {
      size.setScale( Integer.parseInt( scale ) );
    }
    if ( precision != null ) {
      size.setPrecision( Integer.parseInt( precision ) );
    }
    // TODO: is there an attribute for lobMultiplier?
    return size;
  }
View Full Code Here

  public Set<String> getIndexes() {
    return indexes;
  }

  private Size createSize(int length, int scale, int precision) {
    Size size = new Size();
    size.setLength( length );
    size.setScale( scale );
    size.setPrecision( precision );
    return size;
  }
View Full Code Here

    return null;
  }

  @Override
  public Size getSize() {
    return new Size(
        columnValues.getPrecision(),
        columnValues.getScale(),
        columnValues.getLength(),
        Size.LobMultiplier.NONE
    );
View Full Code Here

  HbmColumnRelationalState(XMLManyToOneElement manyToOne,
               HbmSimpleValueRelationalStateContainer container) {
    this.container = container;
    this.explicitColumnName = manyToOne.getName();
    this.size = new Size();
    this.isNullable = !MappingHelper.getBooleanValue( manyToOne.isNotNull(), false );
    this.isUnique = manyToOne.isUnique();
    this.checkCondition = null;
    this.defaultColumnValue = null;
    this.sqlType = null;
View Full Code Here

      throw new IllegalArgumentException(
          "This method should not be called with non-empty version.getColumnElement()"
      );
    }
    // TODO: should set default
    this.size = new Size();
    this.isNullable = false;
    this.isUnique = false;
    this.checkCondition = null;
    this.defaultColumnValue = null;
    this.sqlType = null;
View Full Code Here

TOP

Related Classes of org.hibernate.metamodel.relational.Size

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.