Style Intelligence v12.0

inetsoft.uql.erm
Class VpmCondition

java.lang.Object
  extended by inetsoft.uql.erm.VpmObject
      extended by inetsoft.uql.erm.VpmCondition
All Implemented Interfaces:
inetsoft.util.xml.XMLStorage.XMLFragment, inetsoft.util.XMLSerializable, Serializable, Cloneable, Comparable

public class VpmCondition
extends VpmObject

VpmCondition defines conditions attached to a physical table to filter out data.

See Also:
Serialized Form

Field Summary
static int PHYSICMODEL
           
static int TABLE
           
 
Constructor Summary
VpmCondition()
          Constructor.
VpmCondition(String name)
          Constructor.
 
Method Summary
 Object clone()
          Clone the object.
 String evaluate(String partition, String[] tables, String[] taliases, String[] columns, XDataSource source, VariableTable vars, Principal user)
          Check if the virtual private model should be applied.
 inetsoft.uql.jdbc.XFilterNode getCondition()
          Get the condition to be applied to filter out data.
 String getTable()
          Get the table or physical model to attach the vpm condition.
 int getType()
          Return the vpm condtion based on table or physical model.
protected  void parseAttributes(Element elem)
          Parse contents.
protected  void parseContents(Element elem)
          Parse contents.
 void setCondition(inetsoft.uql.jdbc.XFilterNode conds)
          Set the condition to be applied to filter out data.
 void setTable(String table)
          Set the table or physical model to attach the vpm condition.
 void setType(int type)
          Set the vpm condtion based on table or physical model.
protected  void writeAttributes(PrintWriter writer)
          Write attributes.
protected  void writeContents(PrintWriter writer)
          Write contents.
 
Methods inherited from class inetsoft.uql.erm.VpmObject
compareTo, createVpmObject, equals, getName, getScript, hashCode, parseXML, setName, setScript, toString, writeEnd, writeStart, writeXML
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TABLE

public static int TABLE

PHYSICMODEL

public static int PHYSICMODEL
Constructor Detail

VpmCondition

public VpmCondition()
Constructor.


VpmCondition

public VpmCondition(String name)
Constructor.

Parameters:
name - the specified name for the vpm condition.
Method Detail

getTable

public String getTable()
Get the table or physical model to attach the vpm condition.


setTable

public void setTable(String table)
Set the table or physical model to attach the vpm condition.


getType

public int getType()
Return the vpm condtion based on table or physical model.


setType

public void setType(int type)
Set the vpm condtion based on table or physical model.


getCondition

public inetsoft.uql.jdbc.XFilterNode getCondition()
Get the condition to be applied to filter out data.

Returns:
the conditions.

setCondition

public void setCondition(inetsoft.uql.jdbc.XFilterNode conds)
Set the condition to be applied to filter out data.

Parameters:
conds - the specified condition.

evaluate

public String evaluate(String partition,
                       String[] tables,
                       String[] taliases,
                       String[] columns,
                       XDataSource source,
                       VariableTable vars,
                       Principal user)
                throws Exception
Check if the virtual private model should be applied.

Parameters:
parition - the specified parition where vpm condition is attached.
tables - the specified query tables.
taliases - the specified query table aliases.
columns - the specified query columns.
source - the specified data source.
vars - the specified variable table.
user - the specified principal.
Returns:
the condition to filter out data.
Throws:
Exception

clone

public Object clone()
Clone the object.

Overrides:
clone in class VpmObject
Returns:
the cloned object.

writeContents

protected void writeContents(PrintWriter writer)
Write contents.

Overrides:
writeContents in class VpmObject
Parameters:
writer - the specified writer.

parseContents

protected void parseContents(Element elem)
                      throws Exception
Parse contents.

Overrides:
parseContents in class VpmObject
Parameters:
elem - the specified xml element.
Throws:
Exception

writeAttributes

protected void writeAttributes(PrintWriter writer)
Description copied from class: VpmObject
Write attributes.

Overrides:
writeAttributes in class VpmObject
Parameters:
writer - the specified writer.

parseAttributes

protected void parseAttributes(Element elem)
Description copied from class: VpmObject
Parse contents.

Overrides:
parseAttributes in class VpmObject
Parameters:
elem - the specified xml element.

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.