input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public change type get change type return change type | method get change type |
public string to string return id bfinterpreter bf to string genes | method to sting |
public void cancel future cancel false | need remove from ejbtimer services timers |
public boolean add member final principal user if is member user return false else members add user return true | adds the specified member to the group |
public boolean remove member final principal user if is member user return false else members remove user return true | removes the specified member from the group |
public boolean is member final principal member return members contains member | returns true if the passed principal is a member of the group |
public object get session attribute string attribute return ejbinvocation current get session attribute attribute | http session web server ejb container |
protected void on chain return final ejbinvocation invocation throws exception | chain throw exception return |
protected object invoke timeout ejbobject id ejb object id method interface method object params session context session context throws exception ejbbucket bucket get ejbbucket ejb object id get ejbname get instance from bucket s pool extend ejbcontext ejb context null try ejb context bucket get ejbcontext ejb object id ejbinvocation invocation new ejbinvocation ejb object id bucket ejb context get ejbinstance interface method interface method params session context return invoke ejbinvocation invocation finally reuse ejb instance if ejb context null bucket reuse ejbcontext ejb context | invoke timeout method |
public void stop logger debug destroy ejb get ejbname module get module get name try pool clear don t close pool because of bucket reusing pool close catch exception e e print stack trace | destroy bucket invoke when container unload ejb |
public void stop logger debug destroy ejb get ejbname module get module get name try maybe close by jms connection get destination unregister message listener this pool clear pool close catch exception e e print stack trace | destroy bucket invoke when container unload ejb |
public void stop logger debug destroy ejb get ejbname module get module get name try pool clear pool close catch exception e e print stack trace | destroy bucket invoke when container unload ejb |
public void stop do nothing | destroy bucket invoke when container unload ejb |
public void set jmsmessage id string id throws jmsexception if id starts with messageid prefix throw new jmsexception the message id must start with id this message id id | sets the message id |
public string get jmsmessage id throws jmsexception return message id if this message id null return this message id get message id else throw new jmsexception message id not initialized | gets the message id |
public void set jmstimestamp long timestamp throws jmsexception this timestamp timestamp | sets the message timestamp |
public long get jmstimestamp throws jmsexception return timestamp | gets the message timestamp |
public void set jmscorrelation id string correlation id throws jmsexception this correlation id correlation id | sets the correlation id for the message |
public string get jmscorrelation id throws jmsexception return correlation id | gets the correlation id for the message |
public void set jmsreply to destination reply to throws jmsexception if reply to instanceof destination this reply to destination reply to else throw new jmsexception illegal destination type | sets the code destination code object to which a reply to this |
public void timeout final ejbtimer task ejb timer task throws ejbexception method time method null try for method timeout method ejb timer task get timeout methods time method timeout method logger info call timeout method timeout method of ejb ejb timer task get ejbobject id invoke timeout ejb timer task get ejbobject id timeout method new object ejb timer task ejb timer task get session context catch exception e logger error call timeout method time method throw exception e throw new ejbexception timed object callback exception e | timeout schedule service ejbtimer task |
public string get jmstype throws jmsexception return message type | gets the message type identifier supplied by the client when the message |
public void set jmstype string type throws jmsexception this message type type | sets the message type |
public void set jmsexpiration long expiration throws jmsexception if expiration 0 this expiration expiration else throw new jmsexception illegal message expiration | sets the messages expiration value |
public long get jmsexpiration throws jmsexception return expiration | gets the messages expiration value |
public void set jmspriority int priority throws jmsexception if priority 0 priority 10 this priority priority else throw new jmsexception invalid message default priority | sets the default priority level for this message |
public int get jmspriority throws jmsexception return priority | gets the message default priority level |
public void set text string string throws jmsexception if is body modifiable text string else throw new message not writeable exception text message is read only | set text message body |
public module reload module string name throws exception logger info reload module name module module modules get name if module null file dir module get module dir unload module name return load module dir return null | unload then re load |
public object invoke method component the component component id component id method method object args throws exception return super invoke method the component component id method args | transaction component invoker |
private string get string object value return value null null string value of value | convert value to string |
public component id get component id return component id | component id id |
public component get component by id component id component id throws component not found exception component not exported exception return get module get component component id | component component context component |
public void init servlet config config throws servlet exception do whatever we have to do to init velocity init velocity config now that velocity is initialized cache some config default content type runtime singleton get string content type default content type | performs initialization of this servlet |
protected template create template http servlet request request http servlet response response context velocity context throws exception string servlet path request get servlet path return velocity engine get template servlet path input encoding | create a valid template for velocity |
protected void set content type http servlet request request http servlet response response string content type default content type int index content type last index of 1 if index 0 index content type length content type index of charset index 1 append the character encoding which we d like to use string encoding output encoding system out println chose output encoding of encoding if default output encoding equals ignore case encoding content type charset encoding response set content type content type system out println response content type set to content type | sets the content type of the response defaulting to |
protected void process template template template map model http servlet response response throws ioexception template exception template process model response get writer | process the free marker template to the servlet response |
protected void set content type http servlet request request http servlet response response string content type default content type int index content type last index of 1 if index 0 index content type length content type index of charset index 1 append the character encoding which we d like to use string encoding web context loader get encoding system out println chose output encoding of encoding if default output encoding equals ignore case encoding content type charset encoding response set content type content type | sets the content type of the response defaulting to |
public void validate all throws validate exception | validate all parameters after parameter object inited |
protected void pre action action context action context page context page context action context get page context http servlet request request action context get servlet request request token page context set attribute j request token system current time millis | do something before invoke action method |
protected void post action action context action context page context page context action context get page context page context set attribute page view path page context get targe view page context set attribute j exception page context get business exception page context set attribute j parameter object action context get parameter object | do something after invocation action method |
public query ext create auto select by id native query class entity class string partition name return create temp named native query auto sql select entity class get name sqlgenerator build select sqlby id entity class entity class partition name | select all query by id |
public long next long id lock lock try long new pk do long past nano system nano time start nano long milli time past nano 1000000 long macro time past nano 100000 10 long pk 19 long max value new pk long parse long date format format new date start milli milli time macro time suffix while last pk new pk last pk new pk last pk return new pk finally lock unlock | long pk format 2006111423361344491 br |
public query ext create auto select by column native query class entity class string partition name string columns return create temp named native query auto sql select entity class get name sqlgenerator build select sqlby column entity class columns entity class partition name | select all query by specic column |
protected connection get connection throws sqlexception if connection null connection em get connection return connection | sqlquery connection mapped column connection |
public void costruisci casa int n throws non puoi costruire exception penuria exception if proprietario ha tutte di this throw new non puoi costruire exception devi possedere tutto il quartiere per poter costruire case if numcase n gioco max case throw new non puoi costruire exception non puoi costruire pi di gioco max case case else gioco get core get banca compra casa n throws penuria exception proprietario paga gioco costo casa n a gioco get core get banca numcase n | costuisce un numero variabile di case |
public void costruisci albergo throws penuria exception non puoi costruire exception if numcase gioco max case throw new non puoi costruire exception servono gioco max case case per costruire un albergo gioco get core get banca compra albergo proprietario paga gioco costo albergo a gioco get core get banca numcase | costruisce un albergo |
private void walk tree node t element list tree node t list list add element for tree node t data element get children walk data list | walks the tree in pre order style |
public void set parameter object object paramobj accept object paramobj accept class list new class paramobj get class paramobj get class get superclass | changes the requesting parameter list |
public boolean check boolean bool check parent name accept class list if bool papplet println error cannot load function name else if debug 1 papplet println loaded function name from parent to string return bool | default call to check if a function exists and to load this method |
public boolean check object paramobj set parameter object paramobj return check | checks if a function exists and to load this method |
public boolean check string cur name object cur parent set parameter object cur parent if check cur parent name accept class list parent cur parent name cur name return true return false | checks if a function exists and to load this method |
public boolean check string cur name return check parent cur name accept class list | checks if a function exists and to load this method |
public void invoke if accessible if function null int len function get parameter types length if len 0 invoke new object else if len 1 invoke new object accept object | call the loaded function if it was loadable |
public void invoke object params if accessible if function null try function invoke parent params catch invocation target exception e papplet println error function to string e papplet print e get target exception print stack trace papplet println maybe a bug in your code p catch illegal access exception e papplet println error name e | call the loaded function if it was loadable |
public boolean check return check parent name | default call to check if a variable exists and to load this field |
public boolean check object cur parent return check cur parent name | check if a variable exists and load this field |
public boolean check string cur name return check parent cur name | check if a variable exists and load this field |
public boolean check object cur parent string cur name accessible false if cur parent null papplet println error no parent return false if cur name papplet println error no name return false field fields cur parent get class get fields for int i 0 i fields length i 1 if fields i get name equals cur name if debug 2 papplet println checking variable fields i get name type fields i get type return set field cur parent cur name papplet println error no variable named cur name found return false | main call to check if a variable exists and to load this field |
public object get value if accessible if variable null try object result null result variable get parent return result catch illegal argument exception e papplet println error variable to string e papplet println e get cause catch illegal access exception e papplet println error name e papplet println warning name get returned null return null | returns the value of the loaded variable |
public object get return get value | returns the value of the loaded variable |
public object value return get value | returns the value of the loaded variable |
public boolean set value object new value if accessible if variable null try variable set parent new value return true catch illegal argument exception e papplet println error variable to string e papplet println e get cause catch illegal access exception e papplet println error name e return false | sets the value of the loaded variable to a new one |
public boolean set object new value return set value new value | sets the value of the loaded variable to a new one |
public boolean value object new value return set value new value | sets the value of the loaded variable to a new one |
public int add to windowmanager winman return winman add window this | kann dazu benutzt werden nicht ein umst ndige formulierungen wie br |
public int add to zui cur ui return add to windowmanager cur ui get by type window | kann dazu benutzt werden nicht ein umst ndige formulierungen wie br |
public int add to window win return win add component this | kann dazu benutzt werden nicht ein umst ndige formulierungen wie br |
public object execute string func string params return execute func new object params | executes the named function with a string as parameter on the server |
public object execute string func boolean params return execute func new object params | executes the named function with a boolean as parameter on the server |
public object execute string func int params return execute func new object params | executes the named function with an integer as parameter on the server |
public object execute string func float params return execute func new object params | executes the named function with a float as parameter on the server |
public object execute string func object param1 object param2 return execute func new object param1 param2 | executes the named function with two objects as parameter on the server |
public object execute string func object param1 object param2 object param3 return execute func new object param1 param2 param3 | executes the named function with three objects as parameter on the server |
public object execute string func object param1 object param2 object param3 object param4 return execute func new object param1 param2 param3 param4 | executes the named function with four objects as parameter on the server |
public boolean connect string sname string spasswd string time papplet str unix time stamp string token md5 md5 spasswd time username sname connected true sessionid object response execute handshake sname time token if response null string answers papplet split string response if answers 0 equals ok papplet println error connecting address refused cause answers 0 connected false else sessionid answers 1 return connected | connecting to a xml rpc python server at the given address as user |
public object stop return execute stop server true | executes a stop signal on the server |
public string ping string varname return ping varname false | returns a server site defined user specific variable |
public string ping string varname boolean global object response null object params null if global params new object varname prev global pingmsg else params new object varname response buildin global trigger ping params global if response null if string response equals ok return null else string answers papplet split string response if answers 0 equals changed if global prev global pingmsg answers 1 return answers 1 return null | returns a server site defined variable |
public void reset ping prev global pingmsg | reset the last requested global variable answer to |
public string set changed string varname string msg return set changed varname msg false | setting an user specific ping message with a new content |
public string set changed string varname string msg boolean global object response buildin global trigger set changed new object varname msg global if response null return string response return null | setting a global or user specific ping message with a new content |
public string set variable string varname string var return set variable varname var false | setting an user specific variable with a new content |
public string set variable string varname string var boolean global object response buildin global trigger set variable new object varname var global if response null return string response return null | setting a global or user specific variable with a new content |
public string get variable string varname return get variable varname false | getting an user specific variable from server |
public string get variable string varname boolean global object response buildin global trigger get variable new object varname global if response null return string response return null | getting a global or user specific variable from server |
protected ilaunch configuration get launch configuration return f launch configuration | the last launch config this tab was initialized from |
protected void set launch configuration ilaunch configuration config f launch configuration config | sets the java project currently specified by the |
protected string get resource base text return f resource base text get text trim | gets the path from the text box that is selected |
private void handle working dir browse button selected directory dialog dialog new directory dialog get shell dialog set message select the resource base directory launcher messages working directory block 7 string current working dir get resource base text if current working dir trim equals non nls 1 file path new file current working dir if path exists dialog set filter path current working dir end if end if string selected directory dialog open if selected directory null f resource base text set text selected directory end if end handle qwroking dir browse button selected | show a dialog that lets the user select a working directory |
public ipreference store get preference store create the preference store lazily if preference store null preference store new scoped preference store new instance scope get bundle get symbolic name return preference store | returns the preference store for this ui plug in |
private void handle working dir variables button selected string variable selection dialog dialog new string variable selection dialog get shell dialog open string variable text dialog get variable expression if variable text null f resource base text insert variable text | the working dir variables button has been selected |
public template store get template store if f store null f store new contribution template store get context type registry activator get default get preference store get key try f store load catch ioexception e activator get default get log log new status istatus error com halware nakedide eclipse core templates istatus ok e non nls 1 non nls 2 return f store | returns this plug ins template store |
public contribution context type registry get context type registry if f registry null create an configure the contexts available in the template editor f registry new contribution context type registry return f registry | returns this plug ins context type registry |
protected icompletion proposal create proposal template template template context context iregion region int relevance return new templ propl template context region get image template relevance | creates a new proposal |
protected string extract prefix itext viewer viewer int offset idocument document viewer get document int i offset if i document get length return non nls 1 try while i 0 char ch document get char i 1 if ch character is java identifier part ch break i return document get i offset i catch bad location exception e return non nls 1 | we watch for angular brackets since those are often part of xml |
public void set defaults ilaunch configuration working copy configuration if is include resource working block return launch utils set launch configuration resource base default configuration guess application project name configuration | defaults are empty |
protected int get relevance template template string prefix if template get name starts with prefix return 90 return 0 | cut out angular brackets for relevance sorting since the template name |
protected template context type get context type itext viewer viewer iregion region return get context type registry get context type get context type id | return the context type that is supported by this plug in |
protected image get image template template image registry registry get image registry image image registry get default image if image null image descriptor desc generic template registry image descriptor from plugin activator plugin id default image non nls 1 registry put default image desc image registry get default image return image | always return the default image |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.