| |
|
| java.lang.Object com.flexive.shared.content.FxPK
All known Subclasses: com.flexive.shared.value.ReferencedContent,
FxPK | public class FxPK implements Serializable,Comparable<FxPK>(Code) | | Primary key for FxContents
author: Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) |
Field Summary | |
final public static int | LIVE | final public static int | MAX | final public static int | NEW_ID | protected long | id | protected int | version |
Constructor Summary | |
public | FxPK(long id, int version) | public | FxPK(long id) | public | FxPK() |
MAX | final public static int MAX(Code) | | Constant to select the maximum available version
|
NEW_ID | final public static int NEW_ID(Code) | | Id to use for new instances (flags them as new)
|
version | protected int version(Code) | | |
FxPK | public FxPK(long id, int version)(Code) | | Ctor
Parameters: id - id Parameters: version - version |
FxPK | public FxPK(long id)(Code) | | Ctor, version is initialized with MAX
Parameters: id - id See Also: FxPK.MAX |
FxPK | public FxPK()(Code) | | Constructor for new FxContents
|
createNewPK | public static FxPK createNewPK()(Code) | | Create a new primary key
a new primary key |
fromObject | public static FxPK fromObject(Object value)(Code) | | Extract a PK from the given object. Useful for scripting or JSF-related
calls where the actual value type may vary.
Current, following types for value are supported:
Parameters: value - the value to be interpreted as an FxPK obejct the primary key |
getId | public long getId()(Code) | | Getter for the id
id |
getStorageMode | public TypeStorageMode getStorageMode()(Code) | | Get the storage mode for this primary key.
This method is reserved for future uses when different storage modes will be implemented!
storage mode |
getVersion | public int getVersion()(Code) | | Getter for the version.
Can be an arbitrary number or a constant for maximum or live version
version See Also: FxPK.MAX See Also: FxPK.LIVE |
hashCode | public int hashCode()(Code) | | |
isDistinctVersion | public boolean isDistinctVersion()(Code) | | Does this primary key point to a distinct version or is it something like maximum or live version?
distinct version |
isNew | public boolean isNew()(Code) | | Is this primary key for a new FxContent?
if this primary key is for a new FxContent |
|
|
|