final class BufferType
extends java.lang.Object
RecordBuffer
type. It does not uniquely
identify an individual buffer, only the main characteristics of a buffer;
namely, its physical database, backing table name, and whether changes made
to records it holds can be undone.Modifier and Type | Field and Description |
---|---|
private Database |
database
Buffer's database
|
private int |
hashCode
Cached hash code
|
private java.lang.String |
table
Buffer's backing table name (uppercase)
|
private boolean |
undoable
Is buffer undoable?
|
Constructor and Description |
---|
BufferType(Database database,
java.lang.String table,
boolean undoable)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Test this object for equality (equivalence) with the given object.
|
(package private) Database |
getDatabase()
Get the database.
|
int |
hashCode()
Calculate a hash code for this object.
|
(package private) boolean |
isUndoable()
Get the undoable flag.
|
private final Database database
private final java.lang.String table
private final boolean undoable
private final int hashCode
BufferType(Database database, java.lang.String table, boolean undoable)
database
- Database.table
- Backing table name.undoable
- Undoable flag.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- Object to test.true
if this object is the same instance as the
given object, or it is considered equivalent to the given
object.Database getDatabase()
boolean isUndoable()