Examples of IDBObject


Examples of tosa.api.IDBObject

public class QueryExecutor {

  // TODO - AHK - Kill this/move it somewhere else

  public static IDBObject buildObject(IDBType type, ResultSet resultSet) throws SQLException {
    IDBObject obj = RuntimeBridge.createDBObject(type, false);
    IDBTable table = type.getTable();
    for (IDBColumn column : table.getColumns()) {
      Object resultObject = column.getColumnType().readFromResultSet(resultSet, table.getName() + "." + column.getName());
      obj.setColumnValue(column.getName(), resultObject);
    }
    return obj;
  }
View Full Code Here

Examples of tosa.api.IDBObject

  @Override
  public IType getIntrinsicTypeFromObject(Object object) {
    // TODO - AHK - This probably needs to work for the Transaction object as well
    if (object instanceof IDBObject) {
      IDBObject dbObj = (IDBObject) object;
      return dbObj.getIntrinsicType();
    } else {
      return null;
    }
  }
View Full Code Here

Examples of tosa.api.IDBObject

  }

  private class DBArrayPropertyAccessor implements IPropertyAccessor {
    @Override
    public Object getValue(Object ctx) {
      IDBObject dbObject = (IDBObject) ctx;
      return dbObject.getArray(_dbArray);
    }
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.