input
stringlengths
10
828
output
stringlengths
5
107
public void close in transaction false if close statement st close closed true
normally you do not need this use service factory
public boolean table exists not null string table name throws query exception result set rs null try rs st con con get meta data get tables null null table name null return rs next catch sqlexception e l log severe failed to open meta data to find table table name e reset l throw new query exception failed to open meta...
looks up the database meta data to determine if the table exists
public int get result size not null string sql throws paging exception string sql sql replace sql substring sql index of select 7 sql index of from 1 count 1 result set rs null try rs st st execute query sql if rs next return rs get int 1 catch sqlexception e l log severe failed to retrieve query size sql e reset l thr...
get the total size of the query size for the given sql
private void load application throws model generation exception file application new file where application file if application exists document doc try doc document builder factory new instance new document builder parse application catch exception e throw new model generation exception the application file is not pars...
adds if exists the application
private void add lazy throws model generation exception try int lazy attributes doc lazy true get length attributes doc set lazy true get length add child element doc has lazy lazy 0 true false system out println model name has lazy lazy attributes catch xpath expression exception e throw new model generation exception...
add has lazy true false to the model
private void upgrade files throws model generation exception document upgrade doc new document null upgrades for string file finder upgrade files node tag node upgrade doc create element upgrade tag node set text content file upgrade doc get first child append child tag node all models get first child append child all ...
finds upgrade files in the upgrade directory and adds them to the
public void init page mode int result count throws paging exception if mode mode page throw new paging exception invalid mode to set paging data mode if this result count 1 throw new paging exception this page is already initialized this result count result count this position 0
the service sets page parameters after retrieving the data with a first
public void init scroll mode throws paging exception if mode scroll throw new paging exception invalid mode to set paging data mode this position 0
the service sets page parameters for scroll mode
public date birth return birth
create date time of this page object
public long age return new date get time birth get time
time in milliseconds after the initialization of this page object
public void terminate super terminate api stop
shut down the engine
public j term object2term object obj i object to term translator api get translation get object to term converter obj get class j term term translator create term from object obj if debug system out println obj2term obj get class term get class return term
translates a java object to its prolog equivalent
public object lookup bean string bean name if debug system out println lookup bean bean name return mgr lookup bean bean name
look up a bean in the bsfmanager
public void register bean string bean name object bean if debug system out println register bean bean name mgr register bean bean name bean
register a bean with the bsfmanager
public void unregister bean string bean name throws bsfexception if debug system out println unregister bean bean name mgr unregister bean bean name
unregister a previously registered bean
public void declare bean bsfdeclared bean bean throws bsfexception if debug system out println declare bean bean name register bean bean name bean bean
declare a bean with the bsfmanager
public void undeclare bean bsfdeclared bean bean throws bsfexception if debug system out println undeclare bean bean name unregister bean bean name
undeclare a previously registered bean
public object eval string source int line no int column no object oscript throws bsfexception string script oscript to string if debug system out println jlog bsfengine eval script map result api query script if result null throw new bsfexception bsfexception reason execution error error while eval ing prolog expressio...
this is used by an application to evaluate a string containing some expression
public void set magnification float m enumeration e magnification m e objects elements while e has more elements a animation object e next element update magnification
sets the maginfication of the environment
public void add object a animation object ao int pos max objects size for pos 0 pos max pos if a animation object objects element at pos get level ao get level break objects insert element at ao pos named objects put ao get name ao
add an code a animation object code
public void draw graphics g enumeration e draw path float mag environment get magnification g set color path colour e path elements while e has more elements point p int px py p point e next element px math round p x mag py math round p y mag g draw line px py px py e shapes view elements while e has more elements a an...
draw the current view of the object in the code graphics code environment
public rectangle get bounds enumeration e shapes view elements rectangle r null while e has more elements a animation shape as a animation shape e next element if r null r new rectangle as get bounds else r add as get bounds if r null r new rectangle return r
returns the bounding rectangle for this object in the current view
public j term copy j variable registry vars new j variable registry return copy vars
public member function which creates a copy of this term
public int get shape view a animation shape s int i for i 0 i shapes length i if shapes i contains s return i return view
get the view containing the given shape
public string get identity string id object to string int pos id last index of 1 if pos 0 pos id length pos id length 6 if pos 0 pos 0 return id substring pos
get an unique indentifying name
public void set rotation float r int v rotation r for v 0 v shapes length v enumeration e shapes v elements while e has more elements a animation shape e next element update rotation
adjust the rotation of the object to the given angle in radians
public void subtract compound term j compound term ct enumeration e ct terms elements while e has more elements remove term j term e next element
removes all code j terms code in given code j compound term code
public j term get unified base j compound term input goal j unified vector unified j variable vars variables duplicate variables j compound term rule goal we assume that the predicate name and arity already unify rule goal head duplicate arguments vars if rule goal unify input goal unified if all variables input goal r...
test if rule head will unify
public j term get clause j clause goal cg j predicate h int next rule j compound term ct j term t if match h return null ct h get arguments while next rule cg get next rule number rules size if t j rule rules element at next rule get unified base ct cg unified null return t return null
construct dynamic rule based on name arity and vector of rules
public boolean retract unify rule j rule rule j unified vector v int i sz rules size j predicate h rule get head j predicate terms b rule get base j rule src rule if match rule return false for i 0 i sz i src rule j rule rules element at i if h unify arguments src rule get head get arguments v b unify src rule get base...
attempts to retract a rule from the rule definition
public boolean prove j predicate terms goal j variable vector vars j user goal ug goals create goals stack proved create proved stack proved push ug new j user goal goal consult database vars new j variable vector goal register variables vars goal add goals ug vars get variables goals return internal prove
initiate a proof of the provided goal
public void set fail unknown predicate boolean fp boolean old fup fail unknown predicate fail unknown predicate fp if state changed null old fup fail unknown predicate state changed broadcast event new j prolog service event
set the behaviour for unknown predicates
public void update window menu enumeration e kb windows elements while e has more elements update window menu g consult window e next element get menu bar
recreates the dynamic window menu for all registered windows
public i predicate create predicate j compound term cterm new j compound term int i for i 0 i arity i cterm add term new j variable return create predicate cterm
public interface for generating the real prolog term objects
public p packet parse p token pt p packet pak pak parse term false pt tokenizer get next token if pt instanceof p eof pak null pt instanceof p name p name pt get token equals return pak else throw new syntax error exception expected at pt get position pt get line pt get char pos
performs the next parsing operation returning one packet at a time
protected p packet finalize packet stack stack paks p packet last if paks empty return null last p packet paks peek if last instanceof p operator p operator last verify completion return p packet paks first element
internal method which produces a final packet representing the given stack of packets
public void set focus browser set focus
passing the focus request to the viewers control
public void stop bundle context context throws exception save plugin preferences data null super stop context plugin null
this method is called when the plug in is stopped
public boolean is member searched return member searched
standard accessor returns whether the dmsmember related to the user from
public void set mbx target java lang string new mbx target mbx target new mbx target
standard accessor updates the user target
public void set member org epoline phoenix dms dmsmember new member member new member
standard accessor updates the dmsmember related to the user from the addressee
public void set member searched boolean new member searched member searched new member searched
standard accessor updates whether the dmsmember related to the user from
public void set user target java lang string new user target user target new user target
standard accessor updates the user target
public uid open jdist session string the user string the pwd throws service not available exception jdist exception try non epo code 04 04 2005 log traces line s 69 70 if session open string my msg a session is already open non epo code 04 04 2005 log error traces line s 73 throw new jdist exception my msg return open ...
enables to open an import manager oriented session with the j dist
public void close jdist session uid the uid throws service not available exception jdist exception try non epo code 04 04 2005 log traces line s 123 124 check session the uid close jdist session the uid 0 catch jdist exception je session open false non epo code 04 04 2005 log error exception line s 129 throw je finally...
enables to close a session opened by an import manager client
public msg addressee dist to team string the team id msg addressee my msg addressee new msg addressee my msg addressee set mbx target the team id my msg addressee set user target return my msg addressee
distribution of the message to the team no user
private void close jdist session uid the uid int the nth time throws jdist exception service not available exception try proxy close jdist session the uid session open false catch faulty service exception fse non epo code 04 04 2005 log error exception line s 246 discard jdist proxy session open false throw new service...
enables to close a session opened by an import manager client without any
private void discard jdist proxy non epo code 04 04 2005 log error traces line s 322 discard service proxy proxy null
discard the j dist proxy and set it to null
private string build rmi url string the url check the syntax of the url and build the right rmi url string my rmi url null int my idx the url last index of if my idx 1 the registry name is not included in the url use the default one my rmi url the url default server rminame else the registry name is included in the url...
build the rmi url format host port registry name
private void open session with error non epo code 04 04 2005 log info traces line s 82 83 uid my session uid null try non epo code 04 04 2005 log info traces line s 86 87 my session uid delegate open jdist session wrong user wrong pwd non epo code 04 04 2005 log info traces line s 89 90 catch service not available exce...
open a session with j dist that will generate an error wrong user
public void create statement throws jdist exception try set statement get connection create statement catch sqlexception se non epo code 04 04 2005 log warn exception line s 106 throw new jdist exception jdist exception err db sql se get message
create a statement object for sending sql statements to the database
public void set auto commit boolean the auto commit throws jdist exception try get connection set auto commit the auto commit catch sqlexception se non epo code 04 04 2005 log warn exception line s 121 throw new jdist exception jdist exception err db sql se get message
update the auto commit mode of the connection
public void destroy object the object try connection the object close catch sqlexception se non epo code 04 04 2005 log warn exception line s 110
close the connection
private string check get property properties the prop obj string the prop name throws jdist exception string my value the prop obj get property the prop name if my value null my value trim equals string my error msg missing mandatory field in the properties file the prop name non epo code 04 04 2005 log warn traces lin...
check of a mandatory parameter in a properties file
public boolean is valid object the object try if the object null non epo code 04 04 2005 log info traces line s 130 131 return false else return connection the object is closed catch sqlexception se non epo code 04 04 2005 log warn exception line s 137 return false
check whether a connection is valid
public void return connection connection the connection super check in the connection
free a connection
public connection get connection return connection
standard accessor returns the current connection
public void set admin jini service admin the admin admin the admin
binds the service to the jini service admin from jsfadministrable
public client new client int the num long the time1 string the user string the pwd long the time2 string the mode boolean the open flag int the rmi service client my c new client this client the num the time1 the user the pwd the time2 the mode the open flag the rmi service return my c
create a new client with the parameters defined in the parameter file
public void close jdist session uid the uid throws jdist exception faulty service exception try get callback close jdist session the uid catch remote exception e throw new faulty service exception e get message
enables to close a session opened by an import manager client
public uid open jdist session string the user string the password throws jdist exception faulty service exception uid my uid null try my uid get callback open jdist session the user the password catch remote exception e throw new faulty service exception e get message return my uid
enables to open an import manager oriented session with the j dist
public statement get statement return statement
standard accessor returns the current statement
public object get admin throws remote exception return admin
returns an object that implements whatever administration interfaces
public long get current load throws faulty service exception try return get callback get current load catch remote exception re throw new faulty service exception re get message
implementation mandatory if load balancing is required from load balancing proxy interface
private jdist service interface get callback return callback
standard accessor returns the callback service interface
private void set callback jdist service interface callback this callback callback
standard accessor sets the callback service interface
private backend user get backend user return backend user
standard accessor return the backend user
public string get service details throws faulty service exception try return get callback get service details catch remote exception re throw new faulty service exception re get message
return the service details in xml
private void set backend user backend user user backend user user
standard accessor sets the backend user
public service status get status throws faulty service exception try return get callback get status catch remote exception re throw new faulty service exception re get message
return the status of the service
public void notify link up throws jdist exception manipulate status status up null
invoke the method manipulate status char the status with
public long get total hits throws faulty service exception try return get callback get total hits catch remote exception re throw new faulty service exception re get message
return the number of times the service is called
public dmspoller get dms poller return dms poller
standard accessor returns the dms poller
public char get status return status
standard accessor returns the dms link status
public dmsalgo get algo by key string the key throws dms link exception non epo code 04 04 2005 log traces line s 61 62 dmsalgo my algo new dmsalgo my algo set key the key try my algo get by key catch dms link exception de non epo code 04 04 2005 log warn exception line s 69 throw new dms link exception get algo by key...
retrieval of an algorithm dmsalgo by key
public char retrieve status char my status try my status manipulate status get status null if logger is debug enabled logger debug status my status catch jdist exception je exception is logged in the manipulate status method should never happen non epo code 04 04 2005 log warn exception line s 200 return my status
retrieve the status of the dms link
public dmsdocctl get docctl by index1 string the index throws dms link exception non epo code 04 04 2005 log traces line s 86 87 dmsdocctl my docctl new dmsdocctl my docctl set dct code the index try my docctl get by index1 catch dms link exception de non epo code 04 04 2005 log warn exception line s 94 throw new dms l...
retrieval of a docctl dmsdocctl by index
public void set dms poller dmspoller new dms poller dms poller new dms poller
standard accessor updates the dms poller
public void set connection connection new value this connection new value
standard accessor sets the connection
public dmsdoskey get doskey by index1 string the index throws dms link exception non epo code 04 04 2005 log traces line s 110 111 dmsdoskey my doskey new dmsdoskey my doskey set dke number the index try my doskey get by index1 catch dms link exception de non epo code 04 04 2005 log warn exception line s 118 throw new ...
retrieval of a doskey dmsdoskey by index
public void add message jdist message the message throws jdist exception manipulate msg list add message the message null
add a message to jdist msg list
public jdist message get first message flagged thread the caller throws jdist exception return manipulate msg list get message null the caller
retrieve the first message from the jdist msg list
public dmsmember get member by key string the key throws dms link exception non epo code 04 04 2005 log traces line s 135 136 dmsmember my member new dmsmember my member set key the key try my member get by key catch dms link exception de non epo code 04 04 2005 log warn exception line s 143 throw new dms link exceptio...
retrieval of a member dmsmember by key
public int get nb msgs2be processed return nb msgs2be processed
standard accessor returns the number of messages to be processed
public int get nb successfully processed msgs return nb successfully processed msgs
standard accessor returns the number of messages successfully processed
public int get nb unsuccessfully processed msgs return nb unsuccessfully processed msgs
standard accessor returns the number of messages unsuccessfully processed
public long get ts last updated msg return ts last updated msg
standard accessor returns the timestamp when the message has been last updated
public dmspackage get package by index1 string the index throws dms link exception non epo code 04 04 2005 log traces line s 161 162 dmspackage my package new dmspackage my package set pck pxi the index try my package get by index1 catch dms link exception de non epo code 04 04 2005 log warn exception line s 168 throw ...
retrieval of a package dmspackage by index
public void remove message jdist message the message throws jdist exception manipulate msg list remove message the message null
remove a message from the jdist msg list
public string get app num return app num
standard accessor returns the application number
public string get app type return app type
standard accessor returns the application type
public dmsuser get user by key string the key throws dms link exception non epo code 04 04 2005 log traces line s 243 244 dmsuser my user new dmsuser my user set key the key try my user get by key catch dms link exception de non epo code 04 04 2005 log warn exception line s 251 throw new dms link exception get user by ...
retrieval of a user dmsuser by key
public string get doc code return doc code
standard accessor returns the doc code
public string get error msg return error msg
standard accessor returns the possible error message
public string get msg txt return msg txt
standard accessor returns the message text
public int get access rights return access rights
standard accessor returns the access rights
public string get pxi doc id return pxi doc id
standard accessor returns the package identifier
public int get session mode return session mode
standard accessor returns the session mode
public jdist sys param get sys param return sys param
standard accessor returns the jdist sys param j dist global parameters
public long get update ts return update ts
standard accessor returns the last update timestamp