Package gw.lang.reflect

Examples of gw.lang.reflect.IType


  public Map<String,IType> getColumnMap() {
    HashMap<String, IType> cols = new HashMap<String, IType>();
    if (hasSpecificColumns()) {
      for (SQLParsedElement col : _selectList.getChildren()) {
        IDBColumnType type = col.getDBType();
        IType gosuType = type == null ? JavaTypes.OBJECT() : type.getGosuType();
        if (col instanceof ColumnReference) {
          cols.put(((ColumnReference) col).getName(), gosuType);
        } else if (col instanceof DerivedColumn) {
          cols.put(((DerivedColumn) col).getName(), gosuType);
        }
View Full Code Here


      } else {
        return null;
      }
    }

    IType rVal = null;
    if (TransactionType.TYPE_NAME.equals(relativeName)) {
      // TODO - AHK - Turn that into a type reference
      rVal = new TransactionType(databaseImpl, this).getTypeReference();
    } else if (DatabaseAccessType.TYPE_NAME.equals(relativeName)) {
      rVal = new DatabaseAccessType(databaseImpl, this).getTypeReference();
View Full Code Here

      for (DatabaseImpl value : values) {
        if (value.getDdlFile().equals(iFile)) {
          Collection<DBTableImpl> allTables = value.getAllTables();
          for (DBTableImpl table : allTables) {
            String tableTypeName = value.getNamespace() + "." + table.getName();
            IType type = TypeSystem.getByFullNameIfValid(tableTypeName);
            if (type != null) {
              typesForFile.add(type);
            }
          }
        }
View Full Code Here

  DBArrayPropertyInfo(ITypeInfo container, IDBArray dbArray) {
    super(container);
    _dbArray = dbArray;
    String namespace = getOwnersType().getNamespace();
    IType fkType = TypeSystem.getByFullName(namespace + "." + dbArray.getTargetTable().getName());
    _type = TypeSystem.get(EntityCollection.class).getGenericType().getParameterizedType(fkType);
  }
View Full Code Here

TOP

Related Classes of gw.lang.reflect.IType

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.