|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.azalient.api.file.record.TypeObject
com.azalient.api.file.record.ReaderUtilities
com.azalient.api.file.record.AbstractRecordR
com.azalient.api.file.record.AbstractRecordRW
com.azalient.api.file.record.AbstractStoreRecordIndirectName
public abstract class AbstractStoreRecordIndirectName
An abstract implementation of the RecordRW interface, creating a read-write record whose name is derived indirectly, often from other objects. For example, the name of a lane is derived from the name of the link to which it belongs and its index in that links array of lanes.
| Field Summary |
|---|
| Fields inherited from interface com.azalient.api.a.tables.IRecord |
|---|
DELETED, KEY_SEP, KEY_SEP_CHAR |
| Constructor Summary | |
|---|---|
AbstractStoreRecordIndirectName(IStore aStore)
Create a record with an indirect name. |
|
| Method Summary | |
|---|---|
boolean |
canRename()
Returns true if this record can be renamed. |
abstract String |
indirectName()
|
String |
name()
This is a string representation of the key field(s), used as a key for looking up the object in the Store. |
void |
rename(String s)
Rename this record, if that is possible. |
IStore |
store()
The store to which this record belongs. |
| Methods inherited from class com.azalient.api.file.record.AbstractRecordRW |
|---|
extraGet, extraGetB, extraGetD, extraGetI, extraGetS, extraGetT, get, isVolatile, set |
| Methods inherited from class com.azalient.api.file.record.AbstractRecordR |
|---|
extraCols, extraSet, finished, isApplicable, isEditable, toString |
| Methods inherited from class com.azalient.api.file.record.TypeObject |
|---|
b, c, d, equals, equals, equalsEW, f, i, keyString, keyString, nameFromKeyString, rowKeysFromKeyString, s, t, t |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.azalient.api.file.RecordR |
|---|
extraSet, finished, isApplicable, isEditable, set |
| Methods inherited from interface com.azalient.api.file.RecordW |
|---|
extraCols, extraGet, extraGetB, extraGetD, extraGetI, extraGetS, extraGetT, get, isVolatile |
| Constructor Detail |
|---|
public AbstractStoreRecordIndirectName(IStore aStore)
indirectName()
| Method Detail |
|---|
public IStore store()
StoreRecordRW
store in interface StoreRecordRWpublic abstract String indirectName()
public final boolean canRename()
StoreRecordRW
canRename in interface StoreRecordRWpublic final void rename(String s)
StoreRecordRWStoreRecordRW.canRename()
rename in interface StoreRecordRWpublic final String name()
IRecordTypeObject.keyString(Object[])
If there are multiple key fields, the get() function should not return the concatenated name, but the name function must be defined in the object so that the lookup function can use it.
name in interface IRecord
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||