public interface Table extends DataCollection
Title: Dataspace Framework
Description: Table collection interface.
Copyright: Copyright (c) 2011
Company: StreamScape Technologies
Modifier and Type | Method and Description |
---|---|
void |
clear()
Purges the table.
|
void |
clear(boolean force)
Purges all rows from the table.
|
boolean |
containsPrimarykey(java.lang.String key)
Check if the table contains specified column as a primary key.
|
void |
delete(int rowId)
Not implemented.
|
void |
delete(java.lang.String selector)
Deletes rows from the table which match specified selector.
|
void |
deleteAll()
Removes all rows from the table.
|
void |
drainFromQueue(java.util.Queue queue)
Loads collection with data from provided Queue and
purges provided queue.
|
void |
fromMap(java.util.Map map)
Loads collection with data from provided Map
|
void |
fromQueue(java.util.Queue queue)
Loads collection with data from provided Queue
|
void |
fromRowSet(RowSet rowSet)
Loads collection with data from provided RowSet
|
Row |
getRow(java.lang.String rowId)
Not implemented.
|
boolean |
hasForeignKey()
Returns true if table has foreign keys defined.
|
boolean |
hasPrimaryKey()
Returns true if table has primary key defined.
|
void |
insert(java.lang.Object[] rowData)
Insert specified row into the table.
|
void |
insert(Row row)
Insert specified row into the table.
|
void |
insert(RowArray rowArray)
Inserts all rows from the row array into the table.
|
void |
insert(RowSet rowSet)
Inserts all rows from the row set into the table.
|
void |
insertAll(java.lang.String select)
Inserts all rows which are returned as a result of provided
query.
|
void |
insertAll(Table table)
Inserts all rows from specified table into
the current table.
|
boolean |
isEmpty()
Returns true if there are no rows in the table.
|
java.util.Set |
primaryKeySet()
Returns set of columns which primary key consists of.
|
RowSet |
rowSet()
Returns set of rows which table consists of.
|
RowSet |
select(java.lang.String whereClause)
Performs a query against the table.
|
long |
size()
Returns number of rows in the table.
|
java.util.Map |
toMap()
Converts existing collection data into Map.
|
Map |
toMapCollection()
Creates new transient map collection and loads it with the
data from current collection.
|
java.util.Queue |
toQueue()
Converts existing collection data into Map.
|
Queue |
toQueueCollection()
Creates new transient queue collection and loads it with the
data from current collection.
|
RowSet |
toRowSet()
Converts existing collection data into RowSet.
|
Table |
toTableCollection()
Creates new transient table collection and loads it with the
data from current collection.
|
void |
update(int rowId,
Row row)
Not implemented.
|
void |
update(java.lang.String rowId,
java.lang.Object[] rowData)
Not implemented.
|
void |
update(java.lang.String selector,
Row row)
Updated all rows in the table which match specified selector
with the data specified in the SDORow.
|
void |
upsert(java.lang.Object[] rowData)
Inserts or updates row.
|
void |
upsert(Row row)
Inserts or updates row.
|
getCollectionName, getCollectionType, getMemoryModel, listTriggers
long size()
void clear()
void deleteAll()
void clear(boolean force)
boolean isEmpty()
boolean hasPrimaryKey()
boolean hasForeignKey()
boolean containsPrimarykey(java.lang.String key)
key
- Column name for check.java.util.Set primaryKeySet()
RowSet rowSet()
Row getRow(java.lang.String rowId)
RowSet select(java.lang.String whereClause)
whereClause
- Query specification without 'where' keyword.
E.g. "someprop = 1 and anotherprop = 'String'".void insert(java.lang.Object[] rowData)
rowData
- void insert(Row row)
row
- SDRow to be inserted.void insert(RowArray rowArray)
rowArray
- Array of rows to be inserted.void insert(RowSet rowSet)
rowSet
- SDORowSet to be inserted.void insertAll(Table table)
table
- Table to be inserted.void insertAll(java.lang.String select)
select
- Query Specification which result should be
inserted into the table.void update(int rowId, Row row)
void update(java.lang.String rowId, java.lang.Object[] rowData)
void update(java.lang.String selector, Row row)
selector
- Query Specification for rows matching.row
- SDORow which contains data for matched
rows update.void delete(java.lang.String selector)
selector
- Query Specification for match.void delete(int rowId)
void upsert(Row row)
row
- row to insert/updatevoid upsert(java.lang.Object[] rowData)
rowData
- row data to insert/updateRowSet toRowSet()
java.util.Map toMap()
java.util.Queue toQueue()
void fromRowSet(RowSet rowSet)
rowSet
- RowSet to load data fromvoid fromQueue(java.util.Queue queue)
queue
- Queue to load data fromvoid drainFromQueue(java.util.Queue queue)
queue
- Queue to load data fromvoid fromMap(java.util.Map map)
map
- Map to load data fromTable toTableCollection()
Map toMapCollection()
Queue toQueueCollection()
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.