org.qriterium.dogma
Class DogmaLib

java.lang.Object
  extended by org.qriterium.dogma.DogmaLib

public class DogmaLib
extends java.lang.Object

Library for usable methods.


Constructor Summary
DogmaLib()
           
 
Method Summary
static java.lang.String canonize(boolean _person, java.lang.String _rawname)
          Canonizes the given name
static java.lang.String canonize(java.lang.String _rawname)
          Canonizes the given name
static java.lang.String dateToTimestampString(java.util.Date d)
          Returns a Timestamp - string from the given date.
static java.lang.String fixUri(java.lang.String uri)
          Fixes the input uri to better match the URI - standards.
static java.lang.String getSQLSearchQuery(java.lang.String[] colNames, java.lang.String[][] searchTable)
          Makes SQL SELECT-query from String-array, which values represents boolean search constraints.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DogmaLib

public DogmaLib()
Method Detail

getSQLSearchQuery

public static java.lang.String getSQLSearchQuery(java.lang.String[] colNames,
                                                 java.lang.String[][] searchTable)
Makes SQL SELECT-query from String-array, which values represents boolean search constraints. It is assumed, that each search-String in array starts with "comparator"-String (which can be be for instance "<=" or "!"). The rest of the search-String is handled as comparison value.

Parameters:
colNames - attribute names
searchTable - search array
Returns:
SQL query

canonize

public static java.lang.String canonize(java.lang.String _rawname)
Canonizes the given name


canonize

public static java.lang.String canonize(boolean _person,
                                        java.lang.String _rawname)
Canonizes the given name


fixUri

public static java.lang.String fixUri(java.lang.String uri)
Fixes the input uri to better match the URI - standards.

Parameters:
uri -
Returns:

dateToTimestampString

public static java.lang.String dateToTimestampString(java.util.Date d)
Returns a Timestamp - string from the given date.

Parameters:
d -
Returns: