|
||||||||||
| 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.AbstractStoreRecordRenamable
public abstract class AbstractStoreRecordRenamable
Not all records can be renamed, but records of this type can be. For example, records that have indirect names (liek a Lane, whose name is derived from its Link) cannot be renamed directly, you must rename the link and the Lane will inherit that.
| Field Summary |
|---|
| Fields inherited from interface com.azalient.api.a.tables.IRecord |
|---|
DELETED, KEY_SEP, KEY_SEP_CHAR |
| Constructor Summary | |
|---|---|
AbstractStoreRecordRenamable(IStore aStore,
String aName)
Create a record that can be renamed |
|
| Method Summary | |
|---|---|
boolean |
canRename()
Returns true if this record can be renamed. |
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 newName)
Rename this record, if that is possible. |
IStore |
store()
The store to which this record belongs. |
void |
store(IStore s)
Return a reference to the store |
String |
toString()
|
| 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 |
| 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 AbstractStoreRecordRenamable(IStore aStore,
String aName)
aStore - The reference to a store is used to rehash the object in the store
if it is renamed, but this store reference is optional - sometimes, objects of this type may be added to
an array list rather than a store, in which case no rehashing is necessary.aName - The initial name of the object which should be something that can be
changed, not something that depends on other objects, like a turn depending
on its constituent links.| Method Detail |
|---|
public IStore store()
StoreRecordRW
store in interface StoreRecordRWpublic 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 IRecordpublic String toString()
toString in class AbstractRecordRpublic boolean canRename()
StoreRecordRW
canRename in interface StoreRecordRWpublic void rename(String newName)
StoreRecordRWStoreRecordRW.canRename()
rename in interface StoreRecordRWpublic String indirectName()
public void store(IStore s)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||