input
stringlengths
10
828
output
stringlengths
5
107
public boolean check settings changed return settings changed
check if the settings have changed
public int compare weather data entity v1 weather data entity v2 return new integer v1 get wind speed compare to new integer v2 get wind speed
enables the jtable with the weather data to sort by wind speed
private void initialize data provider this data generator new data provider weather bin this data generator set data collector new random data generator this data generator set storage manager new xml storage
initializes the data provider with its default settings
private void initialize timer action listener listener new action listener public void action performed action event e refresh cities this timer new timer 5000 listener this timer start refresh cities
initializes the timer object on this form used to perform updates of
private void initialize compass chart create the plot compass plot new compass plot new default value dataset 45 setup the properties compass plot set series needle 0 8 compass plot set series paint 0 color blue compass plot set series outline paint 0 color blue create the chart panel chart panel compass panel new chart panel new jfree chart compass plot compass panel set preferred size new java awt dimension 150 100 add the chart to the panel j panel compass set layout new flow layout j panel compass add compass panel
initializes the compass chart used to display information about the wind
public persistence manager jdo get persistence manager return null
return the associated persistence manager if there is one
public void jdo copy fields object other int field numbers
copy field values from another instance of the same class
public void set price double new price price new price
insert the methods description here
public void set stock int new stock stock new stock
insert the methods description here
public string to string return id name t t t price price t t stock stock
insert the methods description here
public void jdo make dirty string field name
explicitly mark this instance and this field dirty
public object jdo get object id return null
return a copy of the jdo identity associated with this instance
public object jdo get transactional object id return null
return a copy of the jdo identity associated with this instance
public boolean jdo is dirty return false
tests whether this object is dirty
public boolean jdo is transactional return false
tests whether this object is transactional
public boolean jdo is persistent return false
tests whether this object is persistent
public void set class class cls
set the class of the candidate instances of the query
public boolean jdo is new return false
tests whether this object has been newly made persistent
public void set candidates extent pcs
set the candidate extent to query
public persistence manager get persistence manager make an ojb persistance broker jdomanager persistence broker broker null persistence manager broker new jdomanager try broker broker factory create persistence broker repository xml system out println broker made catch ioexception e e print stack trace catch parser configuration exception e e print stack trace catch saxexception e e print stack trace jdomanager manager new jdomanager manager set ojbpersistence broker broker manager set persistence manager factory this return manager
get an instance of persistence manager from this factory
public void set candidates collection pcs
set the candidate collection to query
public boolean jdo is deleted return false
tests whether this object has been deleted
public void close broker close factory release instance broker jdofactory get persistence manager factory release instance broker
override to clean up properly
public persistence manager get persistence manager string userid string password return null
get an instance of persistence manager from this factory
public void set filter string filter
set the filter for the query
public void set connection user name string user name
set the user name for the data store connection
public void begin pmanager get ojbpersistence broker begin transaction
begin a transaction
public void commit pmanager get ojbpersistence broker commit transaction
commit the current transaction
public string get connection user name return null
get the user name for the data store connection
public void declare parameters string parameters
declare the list of parameters query execution
public boolean get nontransactional read return false
if true allows persistent instances to be read without
public void set connection password string password
set the password for the data store connection
public boolean get nontransactional write return false
if true allows persistent instances to be written without
public void declare variables string variables
declare the unbound variables to be used in the query
public void set connection url string url
set the url for the data store connection
public boolean get retain values return false
if true at commit time instances retain their field values
public boolean get optimistic return false
optimistic transactions do not hold data store locks until commit time
public string get connection url return null
get the url for the data store connection
public transaction current transaction jdotransaction trans new jdotransaction this return trans
return the transaction instance associated with a persistence manager
public void set ordering string ordering
set the ordering specification for the result collection
public synchronization get synchronization return null
the user specified synchronization instance for this transaction instance
public void jdo copy key fields to object id persistence capable pc object oid
copy fields from the persistence capable instance to the object id instance
public persistence manager get persistence manager return null
the tranansaction instance is always associated with exactly one
public void set connection driver name string driver name
set the driver name for the data store connection
public void set ignore cache boolean ignore cache
set the ignore cache option
public string get connection driver name return null
get the driver name for the data store connection
public void set connection factory name string connection factory name
set the name for the data store connection factory
public boolean get ignore cache return false
get the ignore cache option setting
public string get connection factory name return null
get the name for the data store connection factory
public void set connection factory object connection factory
set the data store connection factory
public object get connection factory return null
get the data store connection factory
public object execute return manager get ojbpersistence broker get collection by query this
execute the query and return the filtered collection
public void set connection factory2 name string connection factory name
set the name for the second data store connection factory
public string get connection factory2 name return null
get the name for the second data store connection factory
public object execute object p1 return null
execute the query and return the filtered collection
public void set connection factory2 object connection factory
set the second data store connection factory
public object get connection factory2 return null
get the second data store connection factory
public object execute object p1 object p2 return null
execute the query and return the filtered collection
public object execute return null
execute the query and return the filtered collection
public object execute object p1 object p2 object p3 return null
execute the query and return the filtered collection
public object execute with map map parameters return null
execute the query and return the filtered collection
public boolean get multithreaded return false
get the default multithreaded setting for all persistence manager instances
public object execute with array object parameters return null
execute the query and return the filtered collection
public void set optimistic boolean flag
set the default optimistic setting for all persistence manager instances
public void close object query result
close a query result and release any resources associated with it
public void set retain values boolean flag
set the default retain values setting for all persistence manager instances
public void close all
close all query results associated with this query instance and release all
public void set nontransactional read boolean flag
set the default nontransactional read setting for all persistence manager instances
public void set nontransactional write boolean flag
set the default nontransactional write setting for all persistence manager instances
public query new query return null
create a new query with no elements
public query new query object compiled return null
create a new query using elements from another query
public int get max pool return 0
get the max pool setting for the persistence manager
public void set max pool int max pool
set the max pool setting for the persistence manager
public query new query string language object query return null
create a new query using the specified language
public int get min pool return 0
get the min pool setting for the persistence manager
public query new query class cls query by criteria2 cri new query by criteria2 cls null cri set broker this return cri
create a new query specifying the class of the candidate instances
public void set min pool int min pool
set the min pool setting for the persistence manager
public int get ms wait return 0
get the ms wait setting for the persistence manager
public void set ms wait int ms wait
set the ms wait setting for the persistence manager
public query new query class cls extent cln return null
create a new query with the class of the candidate instances and
public properties get properties return null
return non configurable properties of this persistence manager factory
public collection supported options return null
the application can determine from the results of this
public query new query class cls collection cln return null
create a new query with the class of the candidate instances and
public query new query class cls string filter return null
create a new query with the class of the candidate instances and filter
public query new query class cls collection cln string filter return null
create a new query with the class of the candidate instances
public query new query class cls extent cln string filter return null
create a new query with the class of the candidate instances
public extent get extent class persistence capable class boolean subclasses return null
the persistence manager manages a collection of instances in the data
public object new scoinstance class type object owner string field name return null
create a new instance of a second class object which tracks changes made
public object get object by id object oid boolean validate ojb broker query query query new ojb broker query query by example oid return broker get object by query query
this method locates a persistent instance in the cache of instances
public object get object id object pc return null
the object id returned by this method represents the jdo identity of
public object get transactional object id object pc return null
the object id returned by this method represents the jdo identity of
public void make persistent object pc broker store pc
make the transient instance persistent in this persistence manager
public void delete persistent object pc broker delete pc
delete the persistent instance from the data store
public void make transient object pc
make an instance transient removing it from management by this
public void make transient all object pcs
make an array of instances transient removing them from management by this
public void make transient all collection pcs
make a collection of instances transient removing them from management by this
public object get user object return null
the application can manage the persistence manager instances
public class get object id class class cls return null
return the class that implements the jdo identity for the
public big integer get to vertex return to vertex
metgod for getting stating point of the edge
public big integer get from vertex return from vertex
method for getting starting point of an edge