Package com.alvazan.orm.api.z8spi.conv

Examples of com.alvazan.orm.api.z8spi.conv.ByteArray


    columns.put(b, c);
  }

  public void addColumn(DboColumnToOneMeta colMeta, byte[] fullName, byte[] namePrefix, byte[] fk, byte[] value, Long timestamp) {
    TypedColumn c = new TypedColumn(colMeta, namePrefix, fk, value, timestamp);
    ByteArray b = new ByteArray(fullName);
    columns.put(b, c);
  }
View Full Code Here


    columns.put(b, c);
  }

  public void addColumn(DboColumnEmbedMeta colMeta, byte[] fullName, byte[] namePrefix, byte[] fk, byte[] value, Long timestamp) {
      TypedColumn c = new TypedColumn(colMeta, namePrefix, fk, value, timestamp);
      ByteArray b = new ByteArray(fullName);
      columns.put(b, c);
  }
View Full Code Here

  }

  public void addColumn(DboColumnMeta colMeta,
      byte[] columnName, byte[] value, Long timestamp) {
    TypedColumn c = new TypedColumn(colMeta, columnName, value, timestamp);
    ByteArray b = new ByteArray(columnName);
    columns.put(b, c);
  }
View Full Code Here

    byte[] nameBytes = StandardConverters.convertToBytes(name);
    removeColumn(nameBytes);
  }

  public void removeColumn(byte[] name) {
    ByteArray b = new ByteArray(name);
    columns.remove(b);
    columnsToBeRemoved.add(name);
  }
View Full Code Here

    columns.remove(b);
    columnsToBeRemoved.add(name);
  }
 
  public void addColumn(byte[] name, byte[] value, Long timestamp) {
    ByteArray b = new ByteArray(name);
    TypedColumn c = new TypedColumn(null, name, value, timestamp);
    columns.put(b, c);
  }
View Full Code Here

  }
 
  public void addColumn(String name, Object obj) {
    DboColumnMeta columnMeta = metaClass.getColumnMeta(name);
    byte[] nameBytes = StandardConverters.convertToBytes(name);
    ByteArray b = new ByteArray(nameBytes);
    if(columnMeta != null) {
      byte[] value = columnMeta.convertToStorage2(obj);
      TypedColumn c = new TypedColumn(columnMeta, nameBytes, value, null);
      columns.put(b, c);
      return;
View Full Code Here

  public void setRowKeyString(String key) {
    rowKey = metaClass.getIdColumnMeta().convertStringToType(key);
  }
 
  public TypedColumn getColumn(byte[] colName) {
    ByteArray b = new ByteArray(colName);
    return columns.get(b);
  }
View Full Code Here

    return columns.get(b);
  }

  public TypedColumn getColumn(String colName) {
    byte[] nameBytes = StandardConverters.convertToBytes(colName);
    ByteArray b = new ByteArray(nameBytes);
    TypedColumn col = columns.get(b);
    if (col == null) {
      DboColumnMeta meta = metaClass.getColumnMeta(colName);
      if (meta != null && meta instanceof DboColumnToOneMeta) {
        DboColumnToOneMeta toOneMeta = (DboColumnToOneMeta) meta;
View Full Code Here

        break;
      } else if(batchSize != null && batchSize.intValue() < counter)
        break;
     
      IndexColumnInfo rightResult = rightHolder.getValue();
      ByteArray pk = rightResult.getPrimaryKey(rightView);
      values.add(pk.getKey());
      rightListResults.add(rightResult);
      counter++;
    }
   
  }
View Full Code Here

        break;
      } else if(batchSize != null && batchSize.intValue() < counter)
        break;
     
      IndexColumnInfo rightResult = rightHolder.getValue();
      ByteArray pk = rightResult.getPrimaryKey(rightView);
      values.add(pk.getKey());
      rightListResults.add(rightResult);
      counter++;
    }
   
  }
View Full Code Here

TOP

Related Classes of com.alvazan.orm.api.z8spi.conv.ByteArray

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.