|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xj.anylogic.engine.connectivity.Insert
public abstract class Insert
Object performing row insertion to the database table
This object is only available in the AnyLogic Professional
execute(),
finish(),
Serialized Form| Constructor Summary | |
|---|---|
Insert(java.lang.String name,
Database database,
java.lang.String tableName,
java.lang.String[] columnNames)
Creates new Insert object for table with given name with names of
columns to fill specified |
|
Insert(java.lang.String name,
Database database,
java.lang.String tableName,
java.lang.String[] columnNames,
java.lang.String[] valueTexts)
Creates new Insert object for table with given name with names of
columns to fill specified |
|
| Method Summary | |
|---|---|
void |
destroy()
Releases resources acquired by this object Also destroys all not destroyed contributors associated with this object Doest nothing if object is already destroyed |
abstract void |
evaluateValues(java.lang.Object[] values)
This method should fill values array |
int |
execute()
Performs insertion of one row with current values (provided with evaluateValues(Object[]) method) |
void |
finish()
Resets this object (after multiple insertion operations) - releases resources. |
java.lang.String |
getName()
Returns the name of this object |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Insert(java.lang.String name,
Database database,
java.lang.String tableName,
java.lang.String[] columnNames)
Insert object for table with given name with names of
columns to fill specified
name - object name (decoration purpose)database - the Database objecttableName - the name of the table where new rows will be insertedcolumnNames - the array (ordered) of names of the columns being filled
in the new inserted rows
public Insert(java.lang.String name,
Database database,
java.lang.String tableName,
java.lang.String[] columnNames,
java.lang.String[] valueTexts)
Insert object for table with given name with names of
columns to fill specified
name - object name (decoration purpose)database - the Database objecttableName - the name of the table where new rows will be insertedcolumnNames - the array (ordered) of names of the columns being filled
in the new inserted rowsvalueTexts - texts representing values being inserted| Method Detail |
|---|
public abstract void evaluateValues(java.lang.Object[] values)
values array
values - array of the same length as in column names array passed to
the constructorpublic int execute()
evaluateValues(Object[]) method)
public void finish()
execute() operations completed.Database destroy and disconnect
public java.lang.String toString()
public final java.lang.String getName()
public final void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||