test_class.declarator: wrapper = new SystemTime()
test_class.modifier: private
test_class.original_string: private AbstractWrapper wrapper = new SystemTime();
test_class.type: AbstractWrapper
test_class.var_name: wrapper
test_class.declarator: sm =  null
test_class.modifier: private static
test_class.original_string: private static StorageManager sm =  null;
test_class.type: StorageManager
test_class.var_name: sm
test_class.declarator: addressing = new AddressBean[] {new AddressBean("system-time")}
test_class.modifier: private
test_class.original_string: private AddressBean[] addressing = new AddressBean[] {new AddressBean("system-time")};
test_class.type: AddressBean[]
test_class.var_name: addressing
test_class.file: modules/x-gsn/src/main/java/org/openiot/gsn/beans/TestStreamSource.java
test_class.identifier: TestStreamSource
test_case.body: @Test
  	public void testGetSQLQuery() {
  		InputStream is = new InputStream();
  		StreamSource ss = new StreamSource();
  		ss.setAddressing(addressing);
  		ss.setAlias("my-stream");
  		ss.setRawHistorySize("10m");
  		ss.setInputStream(is);
  		assertTrue(ss.getSqlQuery().trim().equals("select * from wrapper"));
  		ss = new StreamSource();
  		ss.setAddressing(addressing);
  		ss.setAlias("my-stream");
  		ss.setRawHistorySize("10m");
  		ss.setSqlQuery(" ");
  		ss.setInputStream(is);
  		assertEquals(ss.getSqlQuery().trim(),"select * from wrapper");
  	}
test_case.class_method_signature: TestStreamSource.testGetSQLQuery()
test_case.full_signature: @Test public void testGetSQLQuery()
test_case.identifier: testGetSQLQuery
test_case.invocations: setAddressing setAlias setRawHistorySize setInputStream assertTrue equals trim getSqlQuery setAddressing setAlias setRawHistorySize setSqlQuery setInputStream assertEquals trim getSqlQuery
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetSQLQuery()
focal_class.declarator: serialVersionUID = 5222853537667420098L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = 5222853537667420098L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.declarator: DEFAULT_QUERY = "select * from wrapper"
focal_class.modifier: public static final
focal_class.original_string: public static final String DEFAULT_QUERY = "select * from wrapper";
focal_class.type: String
focal_class.var_name: DEFAULT_QUERY
focal_class.declarator: logger             = Logger.getLogger( StreamSource.class )
focal_class.modifier: private static final transient
focal_class.original_string: private static final transient Logger logger             = Logger.getLogger( StreamSource.class );
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: alias
focal_class.modifier: private
focal_class.original_string: private String                        alias;
focal_class.type: String
focal_class.var_name: alias
focal_class.declarator: samplingRate
focal_class.modifier: private
focal_class.original_string: private float                        samplingRate       ;
focal_class.type: float
focal_class.var_name: samplingRate
focal_class.declarator: rawHistorySize = null
focal_class.modifier: private
focal_class.original_string: private String                        rawHistorySize = null;
focal_class.type: String
focal_class.var_name: rawHistorySize
focal_class.declarator: rawSlideValue = null
focal_class.modifier: private
focal_class.original_string: private String                        rawSlideValue = null;
focal_class.type: String
focal_class.var_name: rawSlideValue
focal_class.declarator: disconnectedBufferSize
focal_class.modifier: private
focal_class.original_string: private int                           disconnectedBufferSize;
focal_class.type: int
focal_class.var_name: disconnectedBufferSize
focal_class.declarator: sqlQuery
focal_class.modifier: private
focal_class.original_string: private String                        sqlQuery;
focal_class.type: String
focal_class.var_name: sqlQuery
focal_class.declarator: uid
focal_class.modifier: protected
focal_class.original_string: protected  int         uid        ;
focal_class.type: int
focal_class.var_name: uid
focal_class.declarator: uidS
focal_class.modifier: protected
focal_class.original_string: protected  StringBuilder         uidS    ;
focal_class.type: StringBuilder
focal_class.var_name: uidS
focal_class.declarator: dateFormats        = new String [ ] { "yyyy/MM/dd 'at' HH:mm:ss z" , "h:mm:ss a" , "h:mm a" }
focal_class.modifier: private static final
focal_class.original_string: private static final String [ ]       dateFormats        = new String [ ] { "yyyy/MM/dd 'at' HH:mm:ss z" , "h:mm:ss a" , "h:mm a" };
focal_class.type: String [ ]
focal_class.var_name: dateFormats
focal_class.declarator: startDate
focal_class.modifier: private transient
focal_class.original_string: private transient Date                startDate;
focal_class.type: Date
focal_class.var_name: startDate
focal_class.declarator: endDate
focal_class.modifier: private transient
focal_class.original_string: private transient Date                endDate;
focal_class.type: Date
focal_class.var_name: endDate
focal_class.declarator: EMPTY_ADDRESS_BEAN = new AddressBean[] {}
focal_class.modifier: public static final
focal_class.original_string: public static final AddressBean[] EMPTY_ADDRESS_BEAN = new AddressBean[] {};
focal_class.type: AddressBean[]
focal_class.var_name: EMPTY_ADDRESS_BEAN
focal_class.declarator: addressing []        = EMPTY_ADDRESS_BEAN
focal_class.modifier: private
focal_class.original_string: private AddressBean      addressing []        = EMPTY_ADDRESS_BEAN;
focal_class.type: AddressBean
focal_class.var_name: addressing
focal_class.declarator: wrapper
focal_class.modifier: private transient
focal_class.original_string: private transient AbstractWrapper      wrapper;
focal_class.type: AbstractWrapper
focal_class.var_name: wrapper
focal_class.declarator: inputStream
focal_class.modifier: private
focal_class.original_string: private InputStream inputStream ;
focal_class.type: InputStream
focal_class.var_name: inputStream
focal_class.declarator: activeAddressBean
focal_class.modifier: private
focal_class.original_string: private AddressBean activeAddressBean;
focal_class.type: AddressBean
focal_class.var_name: activeAddressBean
focal_class.declarator: queryRewriter
focal_class.modifier: private transient
focal_class.original_string: private transient QueryRewriter queryRewriter;
focal_class.type: QueryRewriter
focal_class.var_name: queryRewriter
focal_class.declarator: isStorageCountBased  = false
focal_class.modifier: private transient
focal_class.original_string: private transient boolean isStorageCountBased  = false;
focal_class.type: boolean
focal_class.var_name: isStorageCountBased
focal_class.declarator: windowingType = DEFAULT_WINDOW_TYPE
focal_class.modifier: private
focal_class.original_string: private WindowType windowingType = DEFAULT_WINDOW_TYPE;
focal_class.type: WindowType
focal_class.var_name: windowingType
focal_class.declarator: STORAGE_SIZE_NOT_SET = -1
focal_class.modifier: public static final
focal_class.original_string: public static final long   STORAGE_SIZE_NOT_SET = -1;
focal_class.type: long
focal_class.var_name: STORAGE_SIZE_NOT_SET
focal_class.declarator: DEFAULT_SLIDE_VALUE = 1
focal_class.modifier: public static final
focal_class.original_string: public static final long   DEFAULT_SLIDE_VALUE = 1;
focal_class.type: long
focal_class.var_name: DEFAULT_SLIDE_VALUE
focal_class.declarator: DEFAULT_WINDOW_TYPE = WindowType.TUPLE_BASED_SLIDE_ON_EACH_TUPLE
focal_class.modifier: public static final
focal_class.original_string: public static final WindowType   DEFAULT_WINDOW_TYPE = WindowType.TUPLE_BASED_SLIDE_ON_EACH_TUPLE;
focal_class.type: WindowType
focal_class.var_name: DEFAULT_WINDOW_TYPE
focal_class.declarator: parsedStorageSize    = STORAGE_SIZE_NOT_SET
focal_class.modifier: private transient
focal_class.original_string: private transient long     parsedStorageSize    = STORAGE_SIZE_NOT_SET;
focal_class.type: long
focal_class.var_name: parsedStorageSize
focal_class.declarator: parsedSlideValue    = DEFAULT_SLIDE_VALUE
focal_class.modifier: private transient
focal_class.original_string: private transient long     parsedSlideValue    = DEFAULT_SLIDE_VALUE;
focal_class.type: long
focal_class.var_name: parsedSlideValue
focal_class.declarator: isValidated = false
focal_class.modifier: private transient
focal_class.original_string: private transient boolean isValidated = false;
focal_class.type: boolean
focal_class.var_name: isValidated
focal_class.declarator: validationResult = false
focal_class.modifier: private transient
focal_class.original_string: private transient boolean validationResult = false;
focal_class.type: boolean
focal_class.var_name: validationResult
focal_class.declarator: cachedSqlQuery = null
focal_class.modifier: private
focal_class.original_string: private StringBuilder cachedSqlQuery = null;
focal_class.type: StringBuilder
focal_class.var_name: cachedSqlQuery
focal_class.file: modules/x-gsn/src/main/java/org/openiot/gsn/beans/StreamSource.java
focal_class.identifier: StreamSource
focal_class.interfaces: implements Serializable
focal_class.class_method_signature: StreamSource.StreamSource()
focal_class.full_signature: public  StreamSource()
focal_class.identifier: StreamSource
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  StreamSource()
focal_class.class_method_signature: StreamSource.getRawHistorySize()
focal_class.full_signature: public String getRawHistorySize()
focal_class.identifier: getRawHistorySize
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getRawHistorySize()
focal_class.class_method_signature: StreamSource.setRawHistorySize(String rawHistorySize)
focal_class.full_signature: public StreamSource setRawHistorySize(String rawHistorySize)
focal_class.identifier: setRawHistorySize
focal_class.modifiers: public
focal_class.parameters: (String rawHistorySize)
focal_class.return: StreamSource
focal_class.signature: StreamSource setRawHistorySize(String rawHistorySize)
focal_class.class_method_signature: StreamSource.setRawSlideValue(String rawSlideValue)
focal_class.full_signature: public StreamSource setRawSlideValue(String rawSlideValue)
focal_class.identifier: setRawSlideValue
focal_class.modifiers: public
focal_class.parameters: (String rawSlideValue)
focal_class.return: StreamSource
focal_class.signature: StreamSource setRawSlideValue(String rawSlideValue)
focal_class.class_method_signature: StreamSource.setAddressing(AddressBean[] addressing)
focal_class.full_signature: public StreamSource setAddressing(AddressBean[] addressing)
focal_class.identifier: setAddressing
focal_class.modifiers: public
focal_class.parameters: (AddressBean[] addressing)
focal_class.return: StreamSource
focal_class.signature: StreamSource setAddressing(AddressBean[] addressing)
focal_class.class_method_signature: StreamSource.setAlias(String alias)
focal_class.full_signature: public StreamSource setAlias(String alias)
focal_class.identifier: setAlias
focal_class.modifiers: public
focal_class.parameters: (String alias)
focal_class.return: StreamSource
focal_class.signature: StreamSource setAlias(String alias)
focal_class.class_method_signature: StreamSource.setSqlQuery(String sqlQuery)
focal_class.full_signature: public StreamSource setSqlQuery(String sqlQuery)
focal_class.identifier: setSqlQuery
focal_class.modifiers: public
focal_class.parameters: (String sqlQuery)
focal_class.return: StreamSource
focal_class.signature: StreamSource setSqlQuery(String sqlQuery)
focal_class.class_method_signature: StreamSource.getAddressing( )
focal_class.full_signature: public AddressBean [] getAddressing( )
focal_class.identifier: getAddressing
focal_class.modifiers: public
focal_class.parameters: ( )
focal_class.return: AddressBean []
focal_class.signature: AddressBean [] getAddressing( )
focal_class.class_method_signature: StreamSource.getAlias( )
focal_class.full_signature: public CharSequence getAlias( )
focal_class.identifier: getAlias
focal_class.modifiers: public
focal_class.parameters: ( )
focal_class.return: CharSequence
focal_class.signature: CharSequence getAlias( )
focal_class.class_method_signature: StreamSource.getInputStream()
focal_class.full_signature: public InputStream getInputStream()
focal_class.identifier: getInputStream
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: InputStream
focal_class.signature: InputStream getInputStream()
focal_class.class_method_signature: StreamSource.getDisconnectedBufferSize( )
focal_class.full_signature: public int getDisconnectedBufferSize( )
focal_class.identifier: getDisconnectedBufferSize
focal_class.modifiers: public
focal_class.parameters: ( )
focal_class.return: int
focal_class.signature: int getDisconnectedBufferSize( )
focal_class.class_method_signature: StreamSource.setDisconnectedBufferSize(int disconnectedBufferSize)
focal_class.full_signature: public void setDisconnectedBufferSize(int disconnectedBufferSize)
focal_class.identifier: setDisconnectedBufferSize
focal_class.modifiers: public
focal_class.parameters: (int disconnectedBufferSize)
focal_class.return: void
focal_class.signature: void setDisconnectedBufferSize(int disconnectedBufferSize)
focal_class.class_method_signature: StreamSource.getSamplingRate( )
focal_class.full_signature: public float getSamplingRate( )
focal_class.identifier: getSamplingRate
focal_class.modifiers: public
focal_class.parameters: ( )
focal_class.return: float
focal_class.signature: float getSamplingRate( )
focal_class.class_method_signature: StreamSource.setSamplingRate(float newRate )
focal_class.full_signature: public void setSamplingRate(float newRate )
focal_class.identifier: setSamplingRate
focal_class.modifiers: public
focal_class.parameters: (float newRate )
focal_class.return: void
focal_class.signature: void setSamplingRate(float newRate )
focal_class.class_method_signature: StreamSource.getStorageSize( )
focal_class.full_signature: public String getStorageSize( )
focal_class.identifier: getStorageSize
focal_class.modifiers: public
focal_class.parameters: ( )
focal_class.return: String
focal_class.signature: String getStorageSize( )
focal_class.class_method_signature: StreamSource.getSlideValue()
focal_class.full_signature: public String getSlideValue()
focal_class.identifier: getSlideValue
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getSlideValue()
focal_class.class_method_signature: StreamSource.getSqlQuery( )
focal_class.full_signature: public String getSqlQuery( )
focal_class.identifier: getSqlQuery
focal_class.modifiers: public
focal_class.parameters: ( )
focal_class.return: String
focal_class.signature: String getSqlQuery( )
focal_class.class_method_signature: StreamSource.setWrapper( AbstractWrapper wrapper  )
focal_class.full_signature: public void setWrapper( AbstractWrapper wrapper  )
focal_class.identifier: setWrapper
focal_class.modifiers: public
focal_class.parameters: ( AbstractWrapper wrapper  )
focal_class.return: void
focal_class.signature: void setWrapper( AbstractWrapper wrapper  )
focal_class.class_method_signature: StreamSource.getWrapper( )
focal_class.full_signature: public AbstractWrapper getWrapper( )
focal_class.identifier: getWrapper
focal_class.modifiers: public
focal_class.parameters: ( )
focal_class.return: AbstractWrapper
focal_class.signature: AbstractWrapper getWrapper( )
focal_class.class_method_signature: StreamSource.validate( )
focal_class.full_signature: public boolean validate( )
focal_class.identifier: validate
focal_class.modifiers: public
focal_class.parameters: ( )
focal_class.return: boolean
focal_class.signature: boolean validate( )
focal_class.class_method_signature: StreamSource.isStorageCountBased( )
focal_class.full_signature: public boolean isStorageCountBased( )
focal_class.identifier: isStorageCountBased
focal_class.modifiers: public
focal_class.parameters: ( )
focal_class.return: boolean
focal_class.signature: boolean isStorageCountBased( )
focal_class.class_method_signature: StreamSource.getParsedStorageSize( )
focal_class.full_signature: public long getParsedStorageSize( )
focal_class.identifier: getParsedStorageSize
focal_class.modifiers: public
focal_class.parameters: ( )
focal_class.return: long
focal_class.signature: long getParsedStorageSize( )
focal_class.class_method_signature: StreamSource.getWindowingType()
focal_class.full_signature: public WindowType getWindowingType()
focal_class.identifier: getWindowingType
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: WindowType
focal_class.signature: WindowType getWindowingType()
focal_class.class_method_signature: StreamSource.getParsedSlideValue()
focal_class.full_signature: public long getParsedSlideValue()
focal_class.identifier: getParsedSlideValue
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getParsedSlideValue()
focal_class.class_method_signature: StreamSource.windowSlided()
focal_class.full_signature: public boolean windowSlided()
focal_class.identifier: windowSlided
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean windowSlided()
focal_class.class_method_signature: StreamSource.setQueryRewriter(QueryRewriter rewriter)
focal_class.full_signature: public void setQueryRewriter(QueryRewriter rewriter)
focal_class.identifier: setQueryRewriter
focal_class.modifiers: public
focal_class.parameters: (QueryRewriter rewriter)
focal_class.return: void
focal_class.signature: void setQueryRewriter(QueryRewriter rewriter)
focal_class.class_method_signature: StreamSource.getQueryRewriter()
focal_class.full_signature: public QueryRewriter getQueryRewriter()
focal_class.identifier: getQueryRewriter
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: QueryRewriter
focal_class.signature: QueryRewriter getQueryRewriter()
focal_class.class_method_signature: StreamSource.rewrite(String query)
focal_class.full_signature: public StringBuilder rewrite(String query)
focal_class.identifier: rewrite
focal_class.modifiers: public
focal_class.parameters: (String query)
focal_class.return: StringBuilder
focal_class.signature: StringBuilder rewrite(String query)
focal_class.class_method_signature: StreamSource.getUIDStr()
focal_class.full_signature: public StringBuilder getUIDStr()
focal_class.identifier: getUIDStr
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: StringBuilder
focal_class.signature: StringBuilder getUIDStr()
focal_class.class_method_signature: StreamSource.hashCode()
focal_class.full_signature: public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: StreamSource.toSql()
focal_class.full_signature: public StringBuilder toSql()
focal_class.identifier: toSql
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: StringBuilder
focal_class.signature: StringBuilder toSql()
focal_class.class_method_signature: StreamSource.setInputStream(InputStream is)
focal_class.full_signature: public StreamSource setInputStream(InputStream is)
focal_class.identifier: setInputStream
focal_class.modifiers: public
focal_class.parameters: (InputStream is)
focal_class.return: StreamSource
focal_class.signature: StreamSource setInputStream(InputStream is)
focal_class.class_method_signature: StreamSource.getActiveAddressBean()
focal_class.full_signature: public AddressBean getActiveAddressBean()
focal_class.identifier: getActiveAddressBean
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: AddressBean
focal_class.signature: AddressBean getActiveAddressBean()
focal_class.class_method_signature: StreamSource.toString()
focal_class.full_signature: public String toString()
focal_class.identifier: toString
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_method.body: public String getSqlQuery ( ) {
      if (sqlQuery==null || sqlQuery.trim( ).length( ) == 0 ) sqlQuery = DEFAULT_QUERY;
      return sqlQuery;
    }
focal_method.class_method_signature: StreamSource.getSqlQuery( )
focal_method.full_signature: public String getSqlQuery( )
focal_method.identifier: getSqlQuery
focal_method.invocations: length trim
focal_method.modifiers: public
focal_method.parameters: ( )
focal_method.return: String
focal_method.signature: String getSqlQuery( )