public class DataTableInserting extends Object
| Modifier and Type | Field and Description |
|---|---|
protected WeakHashMap<String,Integer> |
firstIndexCache |
protected CloseableSet |
tableListeners |
| Constructor and Description |
|---|
DataTableInserting() |
DataTableInserting(DataTable dt) |
DataTableInserting(DataTable dt,
Object[] values) |
| Modifier and Type | Method and Description |
|---|---|
int |
firstIndex(String columnName)
Поиск индекса колонки по названию.
|
DataTableInserting |
fixed()
Указывает что данная строка будет зафиксирована
|
DataTableInserting |
fixed(boolean fix)
Указывает что данная строка будет зафиксирована - отмечена как state = fixed
|
DataRow |
getDataRow() |
DataTable |
getTable()
Указывает таблицу в которую производится вставка
|
Object[] |
getValues()
Указывает вставляемые данные
|
DataRow |
go()
Производит вставку строки
|
DataTableInserting |
insert(Object... vals)
Вставка строки
|
boolean |
isFixed()
Указывает что данная строка будет отмечена как state = fixed
|
DataTableInserting |
set(int columnIndex,
Object value) |
DataTableInserting |
set(String columnName,
Object value) |
void |
setDataRow(DataRow dataRow) |
void |
setFixed(boolean fixed)
Указывает что данная строка будет зафиксирована - отмечена как state = fixed
|
void |
setTable(DataTable table)
Указывает таблицу в которую производится вставка
|
void |
setValues(Object[] values)
Указывает вставляемые данные
|
DataTableInserting |
values(Object... values)
Указывает вставляемые данные
|
protected final WeakHashMap<String,Integer> firstIndexCache
protected final CloseableSet tableListeners
public DataTableInserting()
public DataTableInserting(DataTable dt)
public int firstIndex(String columnName)
Поиск производится с уччетом настроек регистра (JdbcColumn/DataColumn)
columnName - Имя колонкиpublic DataTableInserting set(int columnIndex, Object value)
public DataTableInserting set(String columnName, Object value)
public DataTable getTable()
public void setTable(DataTable table)
table - таблицаpublic Object[] getValues()
public void setValues(Object[] values)
values - данные строкиpublic DataTableInserting values(Object... values)
values - данные строкиpublic boolean isFixed()
public void setFixed(boolean fixed)
fixed - true - будет зафиксированаpublic DataTableInserting fixed(boolean fix)
fix - true - будет зафиксированаpublic DataTableInserting fixed()
public DataRow getDataRow()
public void setDataRow(DataRow dataRow)
public DataRow go()
public DataTableInserting insert(Object... vals)
vals - значенияCopyright © 2019. All rights reserved.