public abstract class GenOrmRecord
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
GenOrmRecord(java.lang.String tableName) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Deletes this record
|
boolean |
equals(java.lang.Object obj)
Equality is based on the table name and values of the primary keys only
|
boolean |
flush()
Flush any changes made to this record.
|
boolean |
flushIfNonTransaction()
If there is a connection on the thread this will do nothing.
|
java.util.List<GenOrmField> |
getDirtyFields()
Returns all fields that have been modified
|
GenOrmField |
getField(java.lang.String columnName)
Returns the field specified field
|
abstract java.lang.String |
getFieldEscapeString()
Returns the plugin used to create the SQL for this set of generated objects.
|
java.util.Iterator<GenOrmField> |
getFieldIterator()
Returns an iterator of the
GenOrmFields that
are associated with this record. |
java.util.List<GenOrmField> |
getFields()
Returns a read only list of the fields that are associated with this record.
|
abstract java.util.List<GenOrmRecordKey> |
getForeignKeys()
Returns a list of foreign keys for this record
|
abstract GenOrmConnection |
getGenOrmConnection()
This returns the GenOrmConnection object that is specific to the generated
code.
|
org.slf4j.Logger |
getLogger() |
GenOrmRecordKey |
getRecordKey() |
java.lang.String |
getTableName()
Returns the name of the table this record is from
|
int |
hashCode()
Returns the combined hash code of all primary keys of this record
|
boolean |
isDeleted()
Returns if the record has been deleted by a previous call to
delete() |
boolean |
isDirty()
Returns if this record has been modified
|
boolean |
isIgnored()
Identifies if this record is ignored or not.
|
boolean |
isNew()
Identifies this record as a new record that needs to be added to the database
|
abstract void |
setCTS()
This method is called when a new record is created.
|
void |
setDirty()
Forces this record to be dirty which will cause all values to be commited
to the database upon commit of the transaction
|
void |
setFieldDirty(GenOrmField field)
Marks the specified field as dirty for this record so it will be updated with
the next flush.
|
void |
setIgnored(boolean ignore)
Sets this record to be ignored.
|
abstract void |
setMTS()
This method is called whenever a modification is made to this record.
|
public GenOrmRecordKey getRecordKey()
public org.slf4j.Logger getLogger()
public java.lang.String getTableName()
public java.util.Iterator<GenOrmField> getFieldIterator()
GenOrmFields that
are associated with this record.public java.util.List<GenOrmField> getFields()
public GenOrmField getField(java.lang.String columnName)
public java.util.List<GenOrmField> getDirtyFields()
public boolean isNew()
public abstract void setMTS()
public abstract void setCTS()
public abstract GenOrmConnection getGenOrmConnection()
public abstract java.lang.String getFieldEscapeString()
public void delete()
public boolean isDeleted()
delete()public boolean isDirty()
public void setFieldDirty(GenOrmField field)
field - public void setDirty()
public void setIgnored(boolean ignore)
public boolean isIgnored()
public abstract java.util.List<GenOrmRecordKey> getForeignKeys()
public boolean flushIfNonTransaction()
public boolean flush()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object