How to get class name and method name within a class method?
Hi,
In a java class, is it possible to get its class name and the class method?
Please advise.
Thank you.
I mean whether there's any built-in command that will
return the class name instead of code it ourself, for
easier maintenance.
Possible?
this.getClass().getName();
Similar Messages
-
How to get the Calendar and Holiday Name from ALBPM engine
Hi,
I want to fetch the Calendar Name and Holiday Name that are defined in ALBPM studio/engine.
How to fetch these through fuego ?
BibhuHi,
Thanks for your help.
I have executed the code but it did not give me the calendar name as fetchAll() gives me an array.
I could not find any such method which will give me the Calendar Name.
The above code give the following result:
Total Calendar Count: 2 (OK, since I have two calendar in my workspace)
Calendar Name : fuego.components.CalendarRule@677770 (Want the Calendar Name not this format)
Calendar Name: fuego.components.CalendarRule@d293b7
Bibhu -
How to get the constraintlist and column name in a table?
Hi,
can anyone please tell me how to get the constraint type ,and it's imposed on columns names in a table.
Thanks,
DeekayDeekay wrote:
can anyone please tell me how to get the constraint type ,and it's imposed on columns names in a table.To get constraint type:
select constraint_type from user_constraints where constraint_name = 'YOUR CONSTRAINT NAME';To get constraint columns:
SELECT column_name from user_cons_columns where constraint_name = 'YOUR CONSTRAINT NAME';SY. -
How to get truck no and transporter name from header.text(vf03) to webi rep
Hi
making a stock received details bill wise with webi (bo 3.1)
so require a truck no and transporter name along with consignor detail and bill wise detail.
picking data from vbrk and vbrp tables.
pls assist in this
Thanks and Regards
Ritu Raj
BI/BO ConsultantThanks M
Yes It is Sales and Distribution process and we are using ODBC Connectivity through database client for the connection parameter in the Universe designed to the R/3 ECC.
So we dont have
a) DS
b) BW
c) Data Connector
So Universe is basically on the relational Data
base where by linking VBRK,VBRP and various Master tables.
(OLTP level universe)
So the quesion remain as it is bcos we cant access functional module READ_TEXT in the R/3
Pls suggest for the following Alternatives
a)Using Crystal Reports
b)Use BW (Currently it is not there,but soon be Implemented)
What do you think?
Bcos we dont want to refresh z table which could be developed from given functional module before running our report.
Regards
Ritu Raj -
How to get back artist and album name
I have bought or imported all of my music through itunes. However, when I updated to itunes 10, most of my artist and album information was lost. When I try to get the information, I get the message that itunes cannot get the information for items not purchased or imported through itunes???? How do I fix this?
What's the exact message? The phrase you typed doesn't ring any bells.
-
How to get the class name and field name dynamically
Hi
I have a class (ex: Contract) the fields (ex : a,b,c) .i need to get the class name and field name dynamically
ex
if( validation file for the field Contract.a){
return contract.a;
}else if(validation file for the field Contract.b){
return contract.b;
how to pass the field name and object dynamically
Please help me .............
Thanks in Advance..
Edited by: 849614 on Aug 11, 2011 6:49 AMYoungWinston wrote:
maheshguruswamy wrote:
Agreed, but IMO, i still feel its best if there is no tie in between consumer class level details and the database it talks to. A service layer is needed in between them.Sounds like you've done a bit of this before. Me, I've either been a modeller/DBA, doling out data, or a nuts and bolts programmer (and actually more toolmaker than apps, but did a bit of that too).
Do you know of a good book about the "middle ground" (ie, these service layers)? I understand it empirically, but haven't had a lot of exposure to it.
Winston
Edited by: YoungWinston on Aug 11, 2011 10:34 PM
PS: Apologies. Edited my previous post, presumably while you were composing your reply, when I finally realized what '.filed' meant.Most of my work is in web development, never been a DBA :) . The biggest 'concern' in my shop is 'separation of concerns'. The UI group reports up to a different IT head, the DB group reports up to a different IT head and so on. The looser the coupling between these systems, the lesser the project costs (Integration, QA etc) are. Martin Fowler's books contain good information about separation of concerns in an enterprise environment. The two books which i recommend are
[url http://www.amazon.com/Patterns-Enterprise-Application-Architecture-Martin/dp/0321127420]Enterprise Application Architecture and
[url http://www.amazon.com/Enterprise-Integration-Patterns-Designing-Deploying/dp/0321200683/ref=pd_sim_b_1]Enterprise Integration Patterns -
How to get customer number and name from the SD document
Hi All,
Can you please let me know how to get Customer Number and Name from the SD Document?
Thanks a lot....
AnilHi,
It will be displayed in the SD (BIlling document) itself, you clikc on the VF03. The customer name and number will also appear in the SO document also Tcode VA03
regards,
radhika
Edited by: kolipara radhika on Jul 10, 2009 5:32 AM -
I lost all of my artist names and album names for my iTunes library. They are all now on one album. How can I get the album and artist names back?
I have a script called ExportImport for this task, but it only runs in Windows.
In principle something similar should be possible in AppleScript, but I don't currently have access to a Mac to write it myself.
tt2 -
How to get the column name and table name from xml file
I have one XML file, I generated xsd file from that xml file but the problem is i dont know table name and column name. So my question is how can I retrieve the data from that xml file?
Here's an example using binary XML storage (instead of Object-Relational storage as described in the article).
begin
dbms_xmlschema.registerSchema(
schemaURL => 'my_schema.xsd'
, schemaDoc => xmltype(bfilename('TEST_DIR','my_schema.xsd'), nls_charset_id('AL32UTF8'))
, local => true
, genTypes => false
, genTables => true
, enableHierarchy => dbms_xmlschema.ENABLE_HIERARCHY_CONTENTS
, options => dbms_xmlschema.REGISTER_BINARYXML
end;
genTables => true : means that a default schema-based XMLType table will be created during registration.
enableHierarchy => dbms_xmlschema.ENABLE_HIERARCHY_CONTENTS : indicates that a repository resource conforming to the schema will be automatically stored in the default table.
If the schema is not annotated, the name of the default table is system-generated but derived from the root element name :
SQL> select table_name
2 from user_xml_tables
3 where xmlschema = 'my_schema.xsd'
4 and element_name = 'employee';
TABLE_NAME
employee1121_TAB
(warning : the name is case-sensitive)
To annotate the schema and control the naming, modify the content to :
<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb">
<xs:element name="employee" xdb:defaultTable="EMPLOYEE_XML">
<xs:complexType>
Next step : create a resource, or just directly insert an XML document into the table.
Example of creating a resource :
declare
res boolean;
doc xmltype := xmltype(
'<employee>
<details>
<emp_id>1</emp_id>
<emp_name>SMITH</emp_name>
<emp_age>40</emp_age>
<emp_dept>10</emp_dept>
</details>
</employee>'
begin
res := dbms_xdb.CreateResource(
abspath => '/public/test.xml'
, data => doc
, schemaurl => 'my_schema.xsd'
, elem => 'employee'
end;
The resource has to be schema-based so that the default storage mechanism is triggered.
It could also be achieved if the document possesses an xsi:noNamespaceSchemaLocation attribute :
SQL> declare
2
3 res boolean;
4 doc xmltype := xmltype(
5 '<employee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6 xsi:noNamespaceSchemaLocation="my_schema.xsd">
7 <details>
8 <emp_id>1</emp_id>
9 <emp_name>SMITH</emp_name>
10 <emp_age>40</emp_age>
11 <emp_dept>10</emp_dept>
12 </details>
13 </employee>'
14 );
15
16 begin
17 res := dbms_xdb.CreateResource(
18 abspath => '/public/test.xml'
19 , data => doc
20 );
21 end;
22 /
PL/SQL procedure successfully completed
SQL> set long 5000
SQL> select * from "employee1121_TAB";
SYS_NC_ROWINFO$
<employee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceS
<details>
<emp_id>1</emp_id>
<emp_name>SMITH</emp_name>
<emp_age>40</emp_age>
<emp_dept>10</emp_dept>
</details>
</employee>
Then use XMLTABLE to shred the XML into relational format :
SQL> select x.*
2 from "employee1121_TAB" t
3 , xmltable('/employee/details'
4 passing t.object_value
5 columns emp_id integer path 'emp_id'
6 , emp_name varchar2(30) path 'emp_name'
7 ) x
8 ;
EMP_ID EMP_NAME
1 SMITH -
How to get the column name and table name with value
Hi All
I have one difficult requirement
I have some column values and they have given some alias column names but i need to find the correct column name and table name from the database.
For example value is "SRI" and i dont know the table and exact column name so is there any possibilities to find the column name and table name for the given value
Thanks & Regards
Srikkanth.MSearching all the database for a word...
Courtesy of michaels...
michaels> var val varchar2(5)
michaels> exec :val := 'as'
PL/SQL procedure successfully completed.
michaels> select distinct substr (:val, 1, 11) "Searchword",
substr (table_name, 1, 14) "Table",
substr (t.column_value.getstringval (), 1, 50) "Column/Value"
from cols,
table
(xmlsequence
(dbms_xmlgen.getxmltype ('select ' || column_name
|| ' from ' || table_name
|| ' where upper('
|| column_name
|| ') like upper(''%' || :val
|| '%'')'
).extract ('ROWSET/ROW/*')
) t
-- where table_name in ('EMPLOYEES', 'JOB_HISTORY', 'DEPARTMENTS')
order by "Table"or
11g upwards
SQL> select table_name,
column_name,
:search_string search_string,
result
from (select column_name,
table_name,
'ora:view("' || table_name || '")/ROW/' || column_name || '[ora:contains(text(),"%' || :search_string || '%") > 0]' str
from cols
where table_name in ('EMP', 'DEPT')),
xmltable (str columns result varchar2(10) path '.')
TABLE_NAME COLUMN_NAME SEARCH_STRING RESULT
DEPT DNAME es RESEARCH
EMP ENAME es JAMES
EMP JOB es SALESMAN
EMP JOB es SALESMAN
4 rows selected. -
Getting the user name and computer name
I've been trying to find out how to do this, but can't seem to get it.
I have an AIR application that needs to get the user's login name, and computer name for verification. I can't find anywhere to do this. Is AIR able to get this information? Is there work arounds if there isn't?
It won't ever be a web app, just an AIR app.What I did in Air 2 to accomplish that is the following:
public function getHostName():void {
if(NativeProcess.isSupported) {
var OS:String = Capabilities.os.toLocaleLowerCase();
var file:File;
if (OS.indexOf('win') > -1) {
//Executable in windows
file = new File('C:\\Windows\\System32\\hostname.exe');
} else if (OS.indexOf('mac') > -1 ) {
//Executable in mac
} else if (OS.indexOf('linux')) {
//Executable in linux
var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
nativeProcessStartupInfo.executable = file;
var process:NativeProcess = new NativeProcess();
process.addEventListener(NativeProcessExitEvent.EXIT, onExitError);
process.addEventListener(ProgressEvent.STANDARD_OUTPUT_DATA, onOutput);
process.start(nativeProcessStartupInfo);
process.closeInput();
import utls.StringHelper;
public function onOutput(event:ProgressEvent):void {
var strHelper:StringHelper = new StringHelper();
var output:String = event.target.standardOutput.readUTFBytes(event.target.standardOutput.bytesAvailable);
output = strHelper.trimBack(output, "\n");
output = strHelper.trimBack(output, "\r");
trace('"'+output+'"');
The package that I used is from the manual:
package utls
public class StringHelper
public function StringHelper()
public function replace(str:String, oldSubStr:String, newSubStr:String):String {
return str.split(oldSubStr).join(newSubStr);
public function trim(str:String, char:String):String {
return trimBack(trimFront(str, char), char);
public function trimFront(str:String, char:String):String {
char = stringToCharacter(char);
if (str.charAt(0) == char) {
str = trimFront(str.substring(1), char);
return str;
public function trimBack(str:String, char:String):String {
char = stringToCharacter(char);
if (str.charAt(str.length - 1) == char) {
str = trimBack(str.substring(0, str.length - 1), char);
return str;
public function stringToCharacter(str:String):String {
if (str.length == 1) {
return str;
return str.slice(0, 1);
And sorry for the miss topic I just realized that it is on flex topic, but I post it either way it may be useful for anyone -
How to retrieve the path and the name of the destination file in a link annotation
Hi,
In C++:
How to retrieve the path and the name of the destination file in a link annotation and a Launch action.
Sample of my code:
//Determine if the annotation is a Link annotation
if (PDAnnotGetSubtype(annot) == ASAtomFromString("Link")) {
//Determine if the action is a Launch action
if (PDActionGetSubtype(action) == ASAtomFromString("Launch")) {
// What is the method ?
Regards
David GIn general, get the annotation as a Cos object and examine it, in
accordance with the PDF Reference.
Aandi Inston -
How to change host name and domain name in installed Cisco Meeting Place Express 2.0?
Hi
I have Cisco Meeting Place Express 2.0 installed on server. Meting Place uses Linux (Red Hat) as base operation system. Please tell me how I can change host name and domain name for Meeting Place Express application to integrate it into corporate domain infrastructure.
Thanks in advance!!!
Sincerely yours
Sergey BondarenkoHi
Thanks for your attention for my humble problem.
I have performed Meeting Place Express configuration through the “net” command.
But now unfortunately I can't connect to meeting place through web browser. I just get blank page.
Though I can reach the server with help of ssh. I think my DNS works properly because I can resolve the ip address of cumpxvoice .uclab.com and cumpxweb. uclab.com with help of dig command.
Have you any idea?
A lot of thanks in advance!!
Sincerely yours Sergey Bondarenko
Here I have printed the net configuration output of Cisco meeting Place Express:
[root@cumpxvoice root]# net
This is the MeetingPlace Express network configuration utility.
Up to the point where you save changes, it is safe to hit ^C to get
out at any time, in which case nothing will have changed.
1) List current configuration
2) Configure Ethernet port 1
3) Configure Ethernet port 2
4) Configure service bindings
5) Set host names
6) Set domain name
7) Configure DNS service
8) Configure NTP service
9) Configure routing
10) Done
Select: 1
Primary/audio host name: cumpxvoice
HTTP host name: cumpxvoice
RTMP host name: cumpxweb
Domain name: uclab.com
Service bindings:
Audio: port 1 (eth0)
Web browsing (HTTP): port 1 (eth0)
Web conferencing (RTMP): port 2 (eth1)
Port 1 (device eth0):
IP Address: 10.62.60.116
Network mask: 255.255.255.0
Default gateway: 10.62.60.1
Link setting: autoneg on
Port 2 (device eth1):
IP Address: 10.62.60.117
Network mask: 255.255.255.0
Default gateway: 10.62.60.1
Link setting: autoneg on
Static routes:
Destination Gateway Network mask Port
0.0.0.0 10.62.60.1 0.0.0.0 1
DNS Servers:
10.62.60.115
10.0.1.4 -
How to find Field Name and Table Name
Hi All,
I got some output values from the legacy system with me but need to know whats the actual field name and table name to which i need to transfer these values. How can i do it, since which theres is not field name or despcription given for the data.
Is there any way i can do it.
Points will be rewarded for all useful answers.
Regards
ABHi All,
I got some output values from the legacy system with me but need to know whats the actual field name and table name to which i need to transfer these values. How can i do it, since which theres is not field name or despcription given for the data.
Is there any way i can do it.
Points will be rewarded for all useful answers.
Regards
AB
Hi Abuser,
now u have legacy data. now u want to do upload this data from legacy to r/3 by using one sap transaction. yes ok na..
first of all u want to know the data is relevant to the which transaction...
without knowing the transaction u cant trasfer the data..
then open transaction put cursor on i/p field and click on f1
and find out the field name & table..
this is one method to find the field name and table name. -
How to know database name and schema name
Hi ,
Once after logging in the database,how is it possible to know the current database and schema which we r using?Is there any system table where we can get the database names and schema names?
please help me out.itz urgent.
Regards,
SravanProbably not.
If the database name is the name of the current database, it would be essentially redundant. If the database name is the name of some other database, in order to get the names of all the tables in the specified schema, you could create a database link to the remote system (which assumes you have a login and password to the remote database with appropriate privileges, that the database server's tnsnames.ora file has an entry for the remote database, etc) and query the remote data dictionary tables. Even if you could do that, however, you could not dynamically create triggers on the remote database since DDL over a database link.
In theory, you could also load an appropriate JDBC driver into the database and write a Java stored procedure that would connect to the remote database (again, with an appropriate user name & password, host name, and port number) and issue DDL against that remote database. I have a hard time believing, however, that this would be a particularly beneficial approach. It would be easier just to put the appropriate code into each database that needs triggers generated or to have a separate Java application that generates triggers for a number of different databases.
Justin -
How to find table name and field name thru Tcode
Hi,
how to find out table name and field names thru transaction code..........plz point out step by step.Hi
I am not getting your question... as i understand, if you go to SE84 tcode you can get it.
Go to SE84.Select ABAP Dictionary sub tree. Double click on "database tables'. Give some number in "Maximum number of hits. DONT GIVE ANY OTHER INPUTS. Just press F8. You will get all table names.
For fields also do like this by selecting FIELDS sub tree.
Reward if it is useful.
Thanks
Siva Kumar
Maybe you are looking for
-
It started after upgrading Adobe shockwave, and I have used the Adobe remove tool and reinstalled and I have removed and reinstalled Firefox and it continues,
-
Aiport Express or Airport Extreme?
I'm looking for a new wireless router for my home. Range: In my home (just 1100 sq.ft totally), there are 5 rooms (including living room) all on the same floor, separated by brick walls. The router should be installed in one room that is in one corne
-
After upgrading to FireFox 14 it keeps freezing as soon as it launches
I've never had much problems out of FireFox until the other day when it upgraded to the latest version (14.0.1) When it first opened up it was working.. but when you close the browser and want to open it up again.. it immediately freezes. Rebooting t
-
HT1199 Itunes does not opens on my computer and i get 2324 error
Itunes does not opens on my computer and i get 2324 error
-
How to handle selection event in alv component
Hi all, i am new to webdynpro abap. and i want to know how to handle selection event(such as select all / unselect ) in my simple alv application. Thanks very much