Examples of DbType


Examples of com.avaje.ebean.config.dbplatform.DbType

  public DbDdlSyntax getDdlSyntax() {
    return ddlSyntax;
  }

  public String getColumnDefn(BeanProperty p) {
    DbType dbType = getDbType(p);
    return p.renderDbType(dbType);
  }
View Full Code Here

Examples of com.avaje.ebean.config.dbplatform.DbType

    InheritInfo inheritInfo = descriptor.getInheritInfo();
    if (inheritInfo != null && inheritInfo.isRoot()) {
      String discColumn = inheritInfo.getDiscriminatorColumn();
      int discType = inheritInfo.getDiscriminatorType();
      int discLength = inheritInfo.getDiscriminatorLength();
      DbType dbType = ctx.getDbTypeMap().get(discType);
      String discDbType = dbType.renderType(discLength, 0);

      writeColumnName(discColumn, null);
      ctx.write(discDbType);
      ctx.write(" not null,");
      ctx.writeNewLine();
View Full Code Here

Examples of com.dci.intellij.dbn.object.DBType

        DBDataType dataType = argument.getDataType();

        argumentTypeLabel.setForeground(UIUtil.getInactiveTextColor());
        if (dataType.isDeclared()) {
            DBType declaredType = dataType.getDeclaredType();
            argumentTypeLabel.setIcon(declaredType.getIcon());
            argumentTypeLabel.setText(declaredType.getName());

            typeAttributesPanel.setLayout(new BoxLayout(typeAttributesPanel, BoxLayout.Y_AXIS));
            List<DBTypeAttribute> attributes = declaredType.getAttributes();
            for (DBTypeAttribute attribute : attributes) {
                addAttributePanel(attribute);
            }

        } else {
View Full Code Here

Examples of com.dci.intellij.dbn.object.DBType

        // bind input variables
        int parameterIndex = 1;
        for (DBArgument argument : getArguments()) {
            if (argument.isInput()) {
                DBDataType dataType = argument.getDataType();
                DBType type = dataType.getDeclaredType();
                if (dataType.isDeclared()) {
                    List<DBTypeAttribute> attributes = type.getAttributes();
                    for (DBTypeAttribute attribute : attributes) {
                        String stringValue = executionInput.getInputValue(argument, attribute);
                        setParameterValue(callableStatement, parameterIndex, attribute.getDataType(), stringValue);
                        parameterIndex++;
                    }
View Full Code Here

Examples of com.dci.intellij.dbn.object.DBType

    }

    @Override
    public int compareTo(@NotNull Object o) {
        if (o instanceof DBType) {
            DBType type = (DBType) o;
            if (getParentObject().equals(type.getParentObject())) {
                if ((type.isCollection() && this.isCollection()) ||
                        (!type.isCollection() && !this.isCollection())) return super.compareTo(o); else
                return type.isCollection() ? -1 : 1;
            }
        }
        return super.compareTo(o);
    }
View Full Code Here

Examples of com.dci.intellij.dbn.object.DBType

    public String getValue() {
        return dataType.getQualifiedName();
    }

    public Icon getIcon() {
        DBType declaredType = dataType.getDeclaredType();
        return declaredType == null ? null : declaredType.getIcon();
    }
View Full Code Here

Examples of com.dci.intellij.dbn.object.DBType

    @Override
    protected List<DBObjectNavigationList> createNavigationLists() {
        List<DBObjectNavigationList> objectNavigationLists = super.createNavigationLists();

        DBType superType = getSuperType();
        if (superType != null) {
            objectNavigationLists.add(new DBObjectNavigationListImpl<DBType>("Super Type", superType));
        }
        if (subTypes != null && subTypes.size() > 0) {
            objectNavigationLists.add(new DBObjectNavigationListImpl<DBType>("Sub Types", subTypes.getObjects()));
View Full Code Here

Examples of com.dci.intellij.dbn.object.DBType

    protected void initLists() {
        DBObjectListContainer childObjects = initChildObjects();
        constraints = childObjects.createSubcontentObjectList(DBObjectType.CONSTRAINT, this, CONSTRAINTS_LOADER, getDataset(), DBObjectRelationType.CONSTRAINT_COLUMN, false);
        indexes = childObjects.createSubcontentObjectList(DBObjectType.INDEX, this, INDEXES_LOADER, getDataset(), DBObjectRelationType.INDEX_COLUMN, false);

        DBType declaredType = dataType.getDeclaredType();
        if (declaredType != null) {
            DBObjectListContainer typeChildObjects = declaredType.getChildObjects();
            if (typeChildObjects != null) {
                DBObjectList typeAttributes = typeChildObjects.getObjectList(DBObjectType.TYPE_ATTRIBUTE);
                childObjects.addObjectList(typeAttributes);
            }
        }
View Full Code Here

Examples of com.founder.fix.bpmn2extensions.coreconfig.DBType

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setDbtype(DBType newDbtype) {
    DBType oldDbtype = dbtype;
    dbtype = newDbtype == null ? DBTYPE_EDEFAULT : newDbtype;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, CoreconfigPackage.DATA_BASE__DBTYPE, oldDbtype, dbtype));
  }
View Full Code Here

Examples of com.taobao.tddl.interact.rule.bean.DBType

      String weightStr = dsAndWeight.length == 2 ? dsAndWeight[1] : null;

      // ������group����һ����ʵdataSource�����������group����
      // ���dataSource������ �������һ��dataSource������Ϊ׼
      DataSource dataSource = fetcher.getDataSource(dsKey);
      DBType fetcherDbType = fetcher.getDataSourceDBType(dsKey);
      // dbType = fetcherDbType == null ? dbType : fetcherDbType;
      DataSourceWrapper dsw = new DataSourceWrapper(dsKey, weightStr,
          dataSource, fetcherDbType, i);
      dss.add(dsw);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.