|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.sde.sdk.client.SeStreamOp com.esri.sde.sdk.client.SeInsert
public class SeInsert
Used to insert data into tables/layers and rows in an ArcSDE instance.
A typical SeInsert operation sequence is:
1) Create a new SeInsert object.
2) Initialize an insert operation into a table.
3) Call getRowToSet()
and set the column values of the returned
SeRow
object.
4) Execute the insert operation for each new row.
5) If stream buffering is enabled, call SeStreamOp.flushBufferedWrites()
to
flush the stream and transmit the data to the ArcSDE server.
6) Close the insert object to release the resources held on the ArcSDE
server and client.
SeRow
Constructor Summary | |
---|---|
SeInsert(SeConnection conn)
Creates an SeInsert object given an SeConnection. |
Method Summary | |
---|---|
void |
cancel(boolean reset)
Cancels the current insert operation. |
void |
close()
Closes this insert object and releases it back to the stream pool. |
int |
getNumColumns()
Returns the number of columns on the query. |
SeRow |
getRowToSet()
Returns a row object to set for this write operation. |
void |
intoTable(java.lang.String table,
java.lang.String[] columns)
Prepares the SeInsert object to insert data into the specified ArcSDE table or layer. |
SeObjectId |
lastInsertedRasterId()
Returns the most recently inserted Raster_ID. |
SeObjectId |
lastInsertedRowId()
Returns the row id for the row most recently having an INSERT executed on this stream operation. |
void |
setWriteMode(boolean buffered)
Turns buffering on or off for insert operations. |
Methods inherited from class com.esri.sde.sdk.client.SeStreamOp |
---|
describeColumn, equivalenceRows, execute, flushBufferedWrites, inProgress, setDynamicParameters, setLogfile, setRowLocking, setState, unequivalenceRows |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SeInsert(SeConnection conn) throws SeException
SeException
Method Detail |
---|
public void intoTable(java.lang.String table, java.lang.String[] columns) throws SeException
SeException
public int getNumColumns() throws SeException
SeException
public SeRow getRowToSet()
public SeObjectId lastInsertedRasterId() throws SeException
SeException
public SeObjectId lastInsertedRowId() throws SeException
SeException
public void setWriteMode(boolean buffered) throws SeException
SeException
public void cancel(boolean reset) throws SeException
cancel
in class SeStreamOp
SeException
public void close() throws SeException
close
in class SeStreamOp
SeException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |