本文整理汇总了Java中com.j256.ormlite.support.DatabaseResults.getString方法的典型用法代码示例。如果您正苦于以下问题:Java DatabaseResults.getString方法的具体用法?Java DatabaseResults.getString怎么用?Java DatabaseResults.getString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.j256.ormlite.support.DatabaseResults
的用法示例。
在下文中一共展示了DatabaseResults.getString方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: mapRow
import com.j256.ormlite.support.DatabaseResults; //导入方法依赖的package包/类
public String[] mapRow(DatabaseResults paramDatabaseResults)
{
int i = paramDatabaseResults.getColumnCount();
String[] arrayOfString = new String[i];
for (int j = 0; j < i; j++)
arrayOfString[j] = paramDatabaseResults.getString(j);
return arrayOfString;
}
示例2: mapRow
import com.j256.ormlite.support.DatabaseResults; //导入方法依赖的package包/类
@Override
public String[] mapRow(DatabaseResults results) throws SQLException {
int columnN = results.getColumnCount();
String[] result = new String[columnN];
for (int colC = 0; colC < columnN; colC++) {
result[colC] = results.getString(colC);
}
return result;
}
示例3: mapRow
import com.j256.ormlite.support.DatabaseResults; //导入方法依赖的package包/类
@Override
public Foo mapRow(DatabaseResults databaseResults) throws SQLException {
Foo foo = new Foo();
String[] columnNames = databaseResults.getColumnNames();
for (int i = 0; i < columnNames.length; i++) {
if (columnNames[i].equalsIgnoreCase(Foo.ID_COLUMN_NAME)) {
foo.id = databaseResults.getInt(i);
} else if (columnNames[i].equalsIgnoreCase(Foo.VAL_COLUMN_NAME)) {
foo.val = databaseResults.getInt(i);
} else if (columnNames[i].equalsIgnoreCase(Foo.STRING_COLUMN_NAME)) {
foo.stringField = databaseResults.getString(i);
}
}
return foo;
}
示例4: resultToSqlArg
import com.j256.ormlite.support.DatabaseResults; //导入方法依赖的package包/类
public Object resultToSqlArg(FieldType paramFieldType, DatabaseResults paramDatabaseResults, int paramInt)
{
return paramDatabaseResults.getString(paramInt);
}
示例5: resultToSqlArg
import com.j256.ormlite.support.DatabaseResults; //导入方法依赖的package包/类
@Override
public Object resultToSqlArg(FieldType fieldType, DatabaseResults results, int columnPos) throws SQLException {
return results.getString(columnPos);
}
示例6: resultToSqlArg
import com.j256.ormlite.support.DatabaseResults; //导入方法依赖的package包/类
@Override
public Object resultToSqlArg(FieldType fieldType, DatabaseResults results, int columnPos) throws SQLException {
return results.getString(columnPos);
}