Package com.google.code.or.io.util

Examples of com.google.code.or.io.util.XDeserializer.available()


    r.fieldLength = d.readLong(4);
    r.fieldType = d.readInt(1);
    r.fieldOptions = d.readInt(2);
    r.decimalPrecision = d.readInt(1);
    r.reserved = d.readInt(2);
    if(d.available() > 0) r.defaultValue = d.readLengthCodedString();
    return r;
  }
}
View Full Code Here


    final XDeserializer d = new XDeserializer(packet.getPacketBody());
    final ResultSetRowPacket r = new ResultSetRowPacket();
    r.length = packet.getLength();
    r.sequence = packet.getSequence();
    r.setColumns(new LinkedList<StringColumn>());
    while(d.available() > 0) {
      r.getColumns().add(d.readLengthCodedString());
    }
    return r;
  }
}
View Full Code Here

    r.packetMarker = d.readInt(1);
    r.affectedRows = d.readUnsignedLong();
    r.insertId = d.readUnsignedLong();
    r.serverStatus = d.readInt(2);
    r.warningCount = d.readInt(2);
    if(d.available() > 0) r.message = d.readFixedLengthString(d.available());
    return r;
  }
}
View Full Code Here

    r.packetMarker = d.readInt(1);
    r.affectedRows = d.readUnsignedLong();
    r.insertId = d.readUnsignedLong();
    r.serverStatus = d.readInt(2);
    r.warningCount = d.readInt(2);
    if(d.available() > 0) r.message = d.readFixedLengthString(d.available());
    return r;
  }
}
View Full Code Here

    r.sequence = packet.getSequence();
    r.packetMarker = d.readInt(1);
    r.errorCode = d.readInt(2);
    r.slash = d.readFixedLengthString(1);
    r.sqlState = d.readFixedLengthString(5);
    r.errorMessage = d.readFixedLengthString(d.available());
    return r;
  }

  public static ErrorPacket valueOf(int packetLength, int packetSequence, int packetMarker, XInputStream is)
  throws IOException {
View Full Code Here

    final XDeserializer d = new XDeserializer(packet.getPacketBody());
    final ResultSetHeaderPacket r = new ResultSetHeaderPacket();
    r.length = packet.getLength();
    r.sequence = packet.getSequence();
    r.fieldCount = d.readUnsignedLong();
    if(d.available() > 0) r.extra = d.readUnsignedLong();
    return r;
  }
}
View Full Code Here

    final XDeserializer d = new XDeserializer(packet.getPacketBody());
    final ResultSetHeaderPacket r = new ResultSetHeaderPacket();
    r.length = packet.getLength();
    r.sequence = packet.getSequence();
    r.fieldCount = d.readUnsignedLong();
    if(d.available() > 0) r.extra = d.readUnsignedLong();
    return r;
  }
}
View Full Code Here

    r.fieldLength = d.readLong(4);
    r.fieldType = d.readInt(1);
    r.fieldOptions = d.readInt(2);
    r.decimalPrecision = d.readInt(1);
    r.reserved = d.readInt(2);
    if(d.available() > 0) r.defaultValue = d.readLengthCodedString();
    return r;
  }
}
View Full Code Here

    final XDeserializer d = new XDeserializer(packet.getPacketBody());
    final ResultSetRowPacket r = new ResultSetRowPacket();
    r.length = packet.getLength();
    r.sequence = packet.getSequence();
    r.setColumns(new LinkedList<StringColumn>());
    while(d.available() > 0) {
      r.getColumns().add(d.readLengthCodedString());
    }
    return r;
  }
}
View Full Code Here

    r.packetMarker = d.readInt(1);
    r.affectedRows = d.readUnsignedLong();
    r.insertId = d.readUnsignedLong();
    r.serverStatus = d.readInt(2);
    r.warningCount = d.readInt(2);
    if(d.available() > 0) r.message = d.readFixedLengthString(d.available());
    return r;
  }
}
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.