net.sourceforge.floggy.persistence
Interface Nameable


Deprecated. use the configuration file to set the RecordStore's name

public interface Nameable

An interface that helps the developer to define the name of the RecordStore for each Persistable class. This interface is optional, the weaver will implement it if the developer don't. The value returned by the getRecordStoreName method must be the same to all instances created otherwise each instance will be saved in a different RecordStore.

public class Order implements Persistable, Nameable {
  ...
 public String getRecordStoreName() {
  return "Order";
 }
}

Since:
1.2.0

Method Summary
 String getRecordStoreName()
          Deprecated. use the configuration file to set the RecordStore's name
 

Method Detail

getRecordStoreName

String getRecordStoreName()
Deprecated. use the configuration file to set the RecordStore's name

It is used to retrieve the name of the RecordStore where the class will be stored.

Returns:
the name of the RecordStore.


Copyright © 2006-2011 Floggy Open Source Group. All Rights Reserved.