SQLightable.Reflection
instead, by using
SQLiteHouse.getReflection(Class)
to fetch the one that the database class
has already generated, or by using
SQLightable.Reflection.reflect(Class)
to generate a new one.public static class SQLiteHouse.QueryContext<DBH extends SQLiteHouse>
extends java.lang.Object
SQLightable.Reflection
.Modifier and Type | Field and Description |
---|---|
SQLiteColumn |
antColumn
Deprecated.
The context field's column-defining annotation.
|
SQLiteTable |
antTable
Deprecated.
The schematic class's table-defining annotation.
|
boolean |
bColumnIsKey
Deprecated.
Indicates whether the column is annotated as a key.
|
java.lang.Class<? extends SQLightable> |
clsTable
Deprecated.
The schematic class providing this context.
|
java.lang.reflect.Field |
fldColumn
Deprecated.
The field of the schematic class in this context, if any.
|
DBH |
house
Deprecated.
A persistent reference back to a database portal.
|
Refractor |
lens
Deprecated.
The refractor appropriate for this column type.
|
java.lang.String |
sColumnName
Deprecated.
The name of the column.
|
java.lang.String |
sColumnSQLValue
Deprecated.
The value of this column in some instance, if set.
|
java.lang.String |
sTableName
Deprecated.
The name of the table.
|
Constructor and Description |
---|
QueryContext(DBH dbh)
Deprecated.
Constructs the instance and binds it back to a
SQLiteHouse . |
Modifier and Type | Method and Description |
---|---|
protected SQLiteHouse.QueryContext<DBH> |
clearColumnDef()
Deprecated.
Clears any and all contextual data pertaining to a table column.
|
SQLiteHouse.QueryContext<DBH> |
loadColumnDef(java.lang.reflect.Field fld)
Deprecated.
Loads contextual information pertaining to a column of the table
already set by
loadTableDef(java.lang.Class<SC>) . |
SQLiteHouse.QueryContext<DBH> |
loadColumnDef(java.lang.String sSoughtName)
Deprecated.
Loads contextual information pertaining to a column of the table set
by
loadTableDef(java.lang.Class<SC>) , by searching for that column by its name. |
<SC extends SQLightable> |
loadColumnValue(SC o)
Deprecated.
If the context is bound to a specific column, then this method will
try to discover the value of the field corresponding to that column
in the specified object instance.
|
<SC extends SQLightable> |
loadTableDef(java.lang.Class<SC> cls)
Deprecated.
Loads contextual information pertaining to the table defined by the
specified schematic class.
|
public DBH extends SQLiteHouse house
public java.lang.Class<? extends SQLightable> clsTable
public SQLiteTable antTable
public java.lang.String sTableName
public java.lang.reflect.Field fldColumn
public SQLiteColumn antColumn
public java.lang.String sColumnName
public boolean bColumnIsKey
public Refractor lens
public java.lang.String sColumnSQLValue
public QueryContext(DBH dbh)
SQLiteHouse
.dbh
- the helper instanceSQLiteHouse.getQueryContext()
public <SC extends SQLightable> SQLiteHouse.QueryContext<DBH> loadTableDef(java.lang.Class<SC> cls) throws SchematicException
SC
- the schematic classcls
- the schematic classSchematicException
- if the class isn't part of the schemapublic SQLiteHouse.QueryContext<DBH> loadColumnDef(java.lang.reflect.Field fld)
loadTableDef(java.lang.Class<SC>)
. This operation will clear the
value of any previously-analyzed column.fld
- the field to be set for contextpublic SQLiteHouse.QueryContext<DBH> loadColumnDef(java.lang.String sSoughtName)
loadTableDef(java.lang.Class<SC>)
, by searching for that column by its name.
This operation will clear the value of any previously-analyzed
column.sSoughtName
- the name of the column to be set for contextprotected SQLiteHouse.QueryContext<DBH> clearColumnDef()
public <SC extends SQLightable> SQLiteHouse.QueryContext<DBH> loadColumnValue(SC o) throws java.lang.IllegalStateException, java.lang.NullPointerException, SchematicException
SC
- the schematic classo
- the schematic object that contains the column fieldjava.lang.IllegalStateException
- if inadequate context has been loadedjava.lang.NullPointerException
- if the schematic object is nullSchematicException
- if something goes wrong while setting the
value