public class DBDataLoader extends java.lang.Object implements DataLoader
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DBDATA_LOADER_VERSION |
static VersionENV |
VERSION |
Constructor and Description |
---|
DBDataLoader(DataBase db,
java.lang.String sql)
Creates a new instance of DBDataResult
|
Modifier and Type | Method and Description |
---|---|
void |
abort()
abort the result
|
void |
close()
close the result
|
DataBase |
getDB()
return the current database
|
long |
getRequiredTransNr()
The required transaction for this request.
|
DataResultScroller |
getResults()
get the result
|
java.lang.String |
getSQL()
return the SQL
|
static DBDataLoader |
make(VirtualDB layer,
DBClass rootClass,
long[] rows)
Select all data for fetched rows.
|
void |
setRequiredTransNr(long transNr)
When the minimum transaction nr is known then set it so a deleted record can get the correct transaction.
|
java.lang.String |
toString() |
public static final java.lang.String DBDATA_LOADER_VERSION
public static final VersionENV VERSION
public DBDataLoader(DataBase db, java.lang.String sql)
db
- the databasesql
- the SQL@CheckReturnValue @Nonnull public static DBDataLoader make(VirtualDB layer, DBClass rootClass, long[] rows) throws java.lang.Exception
layer
- The layerrootClass
- the root classrows
- the rows to load.java.lang.Exception
- a serious problempublic void setRequiredTransNr(long transNr)
setRequiredTransNr
in interface DataLoader
transNr
- the transaction@CheckReturnValue public long getRequiredTransNr()
getRequiredTransNr
in interface DataLoader
public DataBase getDB()
public java.lang.String getSQL()
@CheckReturnValue @Nonnull public java.lang.String toString()
toString
in class java.lang.Object
@CheckReturnValue @Nonnull public DataResultScroller getResults() throws java.lang.Exception
getResults
in interface DataLoader
java.lang.Exception
- a serious problempublic void abort()
abort
in interface DataLoader
public void close() throws java.sql.SQLException
close
in interface DataLoader
java.sql.SQLException
- a serious problemstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.