com.flexive.shared.structure
Class FxFlatStorageMapping

java.lang.Object
  extended by com.flexive.shared.structure.FxFlatStorageMapping
All Implemented Interfaces:
java.io.Serializable

public class FxFlatStorageMapping
extends java.lang.Object
implements java.io.Serializable

Storage information about an assignment in a flat storage

Author:
Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)
See Also:
Serialized Form

Constructor Summary
FxFlatStorageMapping(long assignmentId, long groupAssignmentId, java.lang.String storage, java.lang.String column, int level)
          Ctor
 
Method Summary
 long getAssignmentId()
          Get the assignment id
 java.lang.String getColumn()
          Get the column name
 long getGroupAssignmentId()
           
 int getLevel()
          Get the nesting level
 java.lang.String getStorage()
          Get the storage name
 boolean isGroupStorageMode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FxFlatStorageMapping

public FxFlatStorageMapping(long assignmentId,
                            long groupAssignmentId,
                            java.lang.String storage,
                            java.lang.String column,
                            int level)
Ctor

Parameters:
assignmentId - id of the assignment
groupAssignmentId - the group assignment when the assignment is in "group storage" mode, otherwise -1
storage - storage name
column - column name
level - nesting level
Method Detail

getAssignmentId

public long getAssignmentId()
Get the assignment id

Returns:
assignment id

getStorage

public java.lang.String getStorage()
Get the storage name

Returns:
storage name

getColumn

public java.lang.String getColumn()
Get the column name

Returns:
column name

getLevel

public int getLevel()
Get the nesting level

Returns:
nesting level

getGroupAssignmentId

public long getGroupAssignmentId()
Returns:
the group assignment used for "group storage", -1 if the mapping is in normal flat storage

isGroupStorageMode

public boolean isGroupStorageMode()