| Modifier and Type | Method and Description |
|---|---|
| public <O extends UpdatableRecord | |
| public @NotNull Table | |
| public int | Returns: 1 if the record was stored to the database. 0
if storing was not necessary and
Settings#isInsertUnchangedRecords() is set to false.Store this record to the database using an |
| public int | |
| public int | Returns: 1 if the record was stored to the database. 0
if storing was not necessary.Store parts of this record to the database using an |
| public R | original()
Redeclares org. |
| public <O extends UpdatableRecord | parent(ForeignKey<R, O> key)
Get a table expression representing the parent of this record, given a foreign key. |
| fetchParent | back to summary |
|---|---|
| public <O extends UpdatableRecord Fetch a parent record of this record, given a foreign key.
This returns a parent record referenced by this record through a given
foreign key, as if fetching from
A separate roundtrip is created by this operation. It is
often much better to include parent records using ordinary
| |
| getTable | back to summary |
|---|---|
| public @NotNull Table The table from which this record was read.
| |
| insert | back to summary |
|---|---|
| public int insert() throws DataAccessException Store this record to the database using an
If you want to enforce re-insertion this record's values, regardless if
the values in this record were changed, you can explicitly set the
changed flags for all values with
| |
| insert | back to summary |
|---|---|
| public int insert(Field<?>... fields) throws DataAccessException
Deprecated as a consequence of Store parts of this record to the database using an
| |
| insert | back to summary |
|---|---|
| public int insert(Collection<? extends Field<?>> fields) throws DataAccessException Store parts of this record to the database using an
| |
| original | back to summary |
|---|---|
| public R original() Redeclares org. Doc from org. Get this record containing the original values as fetched from the database. Record values can be freely modified after having fetched a record from the database. Every record also references the originally fetched values. This method returns a new record containing those original values. | |
| parent | back to summary |
|---|---|
| public <O extends UpdatableRecord Get a table expression representing the parent of this record, given a foreign key. | |