Modifier and Type | Method and Description |
---|---|
OutputStream |
createBlob(Tuple tuple,
String fieldName)
Creates a blob for the given tuple and field.
|
Tuple |
createTuple()
Creates an empty tuple with the list of fields of the table format, including the primary key
fields.
|
TupleKey |
createTupleKey()
Creates an empty key with the list of fields of the table pk.
|
Tuple |
createUpdateTuple()
Creates an empty tuple with all the fields defined as a Ignore.
|
Table |
delete(TupleKey tupleKey)
Deletes an existing tuple given its key.
|
void |
deleteBlob(Tuple tuple,
String fieldName)
Deletes the content of a blob field.
|
int |
deleteTuples(Filter filter)
Deletes the tuples that matches a given filter
|
TupleIterable |
find()
EntryPoint to run queries over the table.
|
Tuple |
get(TupleKey key)
Retrieves a single tuple from a given key.
|
Tuple |
get(TupleKey key,
Projection projection)
Retrieves a single projected tuple from a given key.
|
InputStream |
getBlob(Tuple tuple,
String fieldName)
Provides access to the blob storage of the given tuple and field.
|
String |
getName()
Getter method for name property.
|
TableModel |
getTableModel()
Getter method for tableModel property.
|
boolean |
hasConstraint(Constraint constraint)
Returns if a given constraint exists
|
Table |
innerDelete(TupleKey tupleKey) |
Tuple |
innerGet(TupleKey tupleKey,
Projection projection) |
Table |
innerInsert(Tuple tuple,
boolean checkUnicity) |
Table |
innerUpdate(Tuple tuple) |
Table |
innerUpsert(Tuple tuple) |
Table |
insert(Tuple tuple)
Inserts a new tuple into the table.
|
Table |
truncate()
Truncates the table.
|
Table |
update(Tuple tuple)
Updates an existing tuple.
|
OutputStream |
updateBlob(Tuple tuple,
String fieldName)
Creates a new blob storage for an existing tuple and field.
|
Table |
upsert(Tuple tuple)
Updates or inserts a tuple.
|
public TableModel getTableModel()
Table
getTableModel
in interface Table
public String getName()
Table
public TupleIterable find()
Table
public Tuple get(TupleKey key)
Table
public Tuple get(TupleKey key, Projection projection)
Table
public Tuple innerGet(TupleKey tupleKey, Projection projection)
public TupleKey createTupleKey()
Table
createTupleKey
in interface Table
public Tuple createTuple()
Table
createTuple
in interface Table
public Tuple createUpdateTuple()
Table
createUpdateTuple
in interface Table
public Table insert(Tuple tuple)
Table
public Table update(Tuple tuple)
Table
public Table upsert(Tuple tuple)
Table
public Table delete(TupleKey tupleKey)
Table
public int deleteTuples(Filter filter)
Table
deleteTuples
in interface Table
filter
- Filter which defines the tuples to be deleted. Can be null to delete te complete tablepublic Table truncate()
Table
public OutputStream createBlob(Tuple tuple, String fieldName)
Table
createBlob
in interface Table
tuple
- Tuple for which the blob is createdfieldName
- Name of the blob field to be filled.public OutputStream updateBlob(Tuple tuple, String fieldName)
Table
updateBlob
in interface Table
tuple
- Tuple for which the blob is createdfieldName
- Name of the blob field to be filled.public InputStream getBlob(Tuple tuple, String fieldName)
Table
public void deleteBlob(Tuple tuple, String fieldName)
Table
deleteBlob
in interface Table
tuple
- Tuple to delete the blobfieldName
- blob field name to delete.public boolean hasConstraint(Constraint constraint)
Table
hasConstraint
in interface Table
constraint
- Constraint object to checkCopyright © 2020. All rights reserved.