2014-02-12 02:37:31 +00:00
|
|
|
package org.servalproject.servaldna;
|
2013-01-23 04:10:19 +00:00
|
|
|
|
|
|
|
public abstract class AbstractJniResults implements IJniResults {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void startResultSet(int columns) {
|
|
|
|
putBlob(Integer.toString(columns).getBytes());
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void setColumnName(int i, String name) {
|
|
|
|
putBlob(name.getBytes());
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void putString(String value) {
|
|
|
|
putBlob((value != null) ? value.getBytes() : null);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public abstract void putBlob(byte[] value);
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void putLong(long value) {
|
|
|
|
putBlob(Long.toString(value).getBytes());
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void putDouble(double value) {
|
|
|
|
putBlob(Double.toString(value).getBytes());
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void totalRowCount(int rows) {
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|