How to show object creation in UML
How to show object creation in UML
In a sequence diagram, it's a line (with arrow) pointing to the new object and the <creates> or <new> tag as mentioned above.
| obj 1 |
|
| <creates> ----------
| --------------> | obj 2 |
| ----------or----------
| obj 1 |
|
| <new> ----------
| --------------> | obj 2 |
| ----------
Similar Messages
-
A general question about how can Java object creation with an average amount of data retrieval is considered as a reasonable.
For example if I am clicking on a link in a web application...to paint that page, I think, about 4-5 java object with an average data retrieval of 20 rows wud be considered as appropriate. Any other thoghts or any other parameters to take into consideration?If you are concerned about object creation speed, you probably shouldn't. Even my laptop PC can create and garbage collect some 12 million objects per second (10,000,000 objects takes about 800 milliseconds). Test program below; remember to run with "java -server" to get the faster optimizing compiler. For laughs, write an equivalent C++ program that does new&delete in a similar loop.
public class CreateObject
public static void main(String args[])
throws Exception
for (int m = 0; m < 5; m++)
doit();
static void doit()
long start = System.currentTimeMillis();
for (int n = 0; n < 10 * 1000 * 1000; n++) {
new CreateObject();
new CreateObject();
new CreateObject();
new CreateObject();
new CreateObject();
new CreateObject();
new CreateObject();
new CreateObject();
new CreateObject();
new CreateObject();
long end = System.currentTimeMillis();
System.out.println((end - start) + " ms");
} -
How can I animate a line to show the creation of a circle?
hello there, I need to animate a line to show the creation of a circle. This is very easy in powerpoint as I can decide how the line has to enter the slide. I cannot believe that captivate cannot do that.... any hints?
Off the top of my head you can do this with 3 objects. The circle and two rectangles that will have motion path effect applied to them that will have an effect of wiping away and revealing the circle below. There's probably an easier way but like I said I just pulled this outa my...
This will work nicely and cleanly in HTML5 since it's a simple motion path effect.
The screenshot shows the two rectangles moving in opposite directions. The lower box should move AFTER the first one is done. I'm showing some transparency so you can see the circle below. -
How can I trace creation of objects?
I am wondering how I can trace creation of objects with new. For example:
interface CreationListener {
void objectCreated(Object o);
class CreationNotifier {
static void registerCreationListener(Class cls, CreationListener listener) {
// registers `listener' to be notified after creating any object of class `cls'
class Test {
public static void main(String[] args) {
CreationNotifier.registerCreationListener(Integer.class, new CreationListener() {
public void objectCreated(Object o) {
System.out.println("Created Integer " + ((Integer)o).intValue());
new Integer(2); // Now I would expect to see `Created Integer 2' on my console...
}In other ways I want to get informed about every object of the specified class that gets created
throughout the application.
Does anyone have an idea about it? I was trying to find something appropriate in SecurityManager
but I failed :(
Please help!I think you did not understand exactly what I meant. Your solution is only good for classes written by
me and I wanted to catch all object constructions in any class, e.g. one that I have only in a binary form.
Maybe Hashtable is
not the right data structure but I got to go back to
work :-) Let me know if you come up with a better
implementation.
-- Niladri.I created a WeakHashSet class on top of WeakHashMap which uses one static object as a value and really cares only about the keys. In the registrating class I have a HashMap with keys of type Class and values of WeakHashSet. The register method is simple:
public void register(Object o) {
if (o == null) return;
if (!map.containsKey(o.getClass())) // this is the first object of this class being registered
map.put(o.getClass(), new WeakHashSet());
((WeakHashSet)map.get(o.getClass())).add(o); // WeakHashSet implements Set interface
}This design ensures (because of using WeakHashMap) that I only have live objects in my structure after running GC (in fact, I call System.gc() in methods to find the live objects of a specific class).
As you can see, my only problem is to have the object registration automate for classes that I have not written (and do not have sources).
And using the profiler is not portable (as I guess) - in examples for JProbe they used DLL's and UNIX shared objects. And that requires unusual switches when starting JVM. I would like to have an all-Java language solution as the code fragments which I have described come from a library which I am writing now and I should not make the users of it depend on switches or dynamic libraries...
Anyway, thanks for your good will. :-) -
ASA 5500 - How to show network-object host
I am using the following commands to show objects (network-object object <name>) and groups (group-object <groupname>).
sh run object id <name>
sh run object-group id <groupname>
How do I show network-object host <ip> ?
I have about 115 that are on my ASA.
Thank you!Hi Craig,
Is this something you are looking for :
ASA# sh object-group net
object-group network VPN
network-object 10.1.1.0 255.255.255.0
object-group network internal
network-object 10.100.100.0 255.255.255.0
object-group network Nik
network-object 192.168.10.0 255.255.255.255
network-object 192.168.20.0 255.255.255.255
object-group network nik-remote
network-object 192.168.3.0 255.255.255.255
network-object 192.168.4.0 255.255.255.255
Kamal
Note: Please mark answers if they are helpful. -
How to show more than one record at a form-like style report?
Hi All,
I developed a form-like style report
I want it to show more than one record at once (At the same page)
I tried that by setting the value to "Maximum records per page" property for the repeating frame to 10
but when I close the property palete and open it agian the value is returned to 1 !!!
how to show more than one record at the same page?????
Thank uHi,
there's perhaps another property like "page protect". If than 2 records didn't fit at one page there's a page break. Or is there any object inside the repeating frame with page-break properties? Sorry .. it's like looking into a chrystal ball ...
Regards
Rainer -
How to show screen design in .srf (from Screen Painter) using SDK?
How to show screen design in .srf (from Screen Painter) using SDK?
You need to use the LoadBatchActions method of the Application object to load .SRF files.
John. -
How to show sharepoint documents in salesforce ?
How to show sharepoint documents in salesforce ?
I should also be able to upload documents from salesforce directly to sharepoint document library/list if the users attach a document for a record in salesforce. Any idea how to achieve this?
What are the things need to be done if my sharepoint is available in intranet Or if it is SharePoint Online , how can we link this to salesforce (as Salesforce is global and can be accessed from anywhere). What are the security measures that I need to look
at and how to achieve this?
Ex:- I have a record in salesforce account object. I have to attach a document for that record which should be directly uploaded to sharepoint and shouldn't exist in salesforce, but it should display the listview to the users once its uploaded to sharepoint
and they should see them as if they exist inside salesforce, once they click on the link in the listview of the relatedlist, it should open the document from sharepoint.
Thanks in advance.Hi,
According to your post, my understanding is that you want to show SharePoint documents in salesforce.
You need to integrate SharePoint with Salesforce.
Nick Swan
has written an article on how to integrate Salesforce and SharePoint 2007 through the Business Data Catalog.
But it might be useful as the theory is the same for using SharePoint 2010 and the Business Connectivity Services:
Salesforce and SharePoint
Outside of that, there are some useful third-party products you can have a look at.
Cloud Connector: http://www.layer2.de/en/community/FAQs/cloud-connector/Pages/Office-365-Salesforce-Integration-Migration-Replication.aspx
DocAve Data Replication: http://www.avepoint.com/salesforce-data-replication/?gclid=CNjZ8sGwl6kCFYEc4Qod-xD-uQ
DataZoom Script: http://www.siafoo.net/snippet/261
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
How to show current year and last year sales in a WEBI Report
Hi Guys
How can show current YEar Sales in one column and Last YEar Sales in the other column based on a user prompt for the Current YEar Column.
For Example is user enter 2010 for Year how can i show a Column for Sales-2010 and Sales 2009.
ThanksIf you can modify your Universe add an object named New Object Last Year whose SQL is:( yourTableName.Year + 1)
Then in WebI create two distinct queries in your query Pane. In the first one you could do this:
Query 1:
objects: Year, Sales ... etc.
filters: Year Equal to '1. Prompt Year'
Query 2:
objects: Year, Sales ... etc.
filters: New Object Last Year Equal to '1.Prompt Year'
Then in your report you can drag each object on their respective columns.
If you don't want to use two distinct queries, use one like this:
Query 1:
objects: Year, Sales ... etc.
filters: Year Equal to '1. Prompt Year'
Or
New Object Last Year Equal to '1.Prompt Year'
Edited by: PadawanGirl on Jun 23, 2011 6:28 PM -
Xdb_installation_trigger does not support object creation of type SNAPSHOT
hi everyone, i'm using Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit on solaris sparc 5.10
we like to send an email through SSL, and after searching here and there I found out that oracle DB 11g able to go throught the SSL.
since upgrade our DB to 11g would not be an option, so i tried to export XDB of 11g and import it into XDB 10gR2 schema, it was a mess...
then i just reinstall XDB using catnoqm.sql & catqm.sql
and now one of our programmer cant run some script like above
CREATE MATERIALIZED VIEW FIFSYS_MKT_SCHEME_MV_COY
TABLESPACE MARKETING_TABLES
PCTUSED 40
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
FREELISTS 1
FREELIST GROUPS 1
BUFFER_POOL DEFAULT
+)+
NOCACHE
LOGGING
NOCOMPRESS
NOPARALLEL
BUILD IMMEDIATE
REFRESH FORCE ON DEMAND
WITH PRIMARY KEY
AS
+/* Formatted on 9/23/2010 1:07:42 PM (QP5 v5.114.809.3010) */+
SELECT coy_id,
appl_branch_id,
appl_object_code,
product_type,
ppdcf_paid_date,
SUM (scheme_adm) scheme_adm,
SUM (appl_unit) appl_unit,
SYSDATE mkt_sysdate
FROM (SELECT NVL (a.coy_id, '01') coy_id,
a.branch_id appl_branch_id,
DECODE (a.buss_unit, 'NMC', '2101', 'UMC', '2102', '2352')
appl_object_code,
a.platform product_type,
TRUNC (c.contract_active_date) ppdcf_paid_date,
NVL (s.ms_amt, 0) scheme_adm,
NVL (o.total_item, 0) appl_unit
FROM ordmgmt.om_trn_appl_ms_lvl_object s,
ordmgmt.om_trn_appl_hdr a,
acctmgmt.ar_trn_sum_contracts c,
+( SELECT appl_no, COUNT ( * ) total_item+
FROM ordmgmt.om_trn_appl_object
GROUP BY appl_no) o
WHERE s.appl_no = a.appl_no
AND a.appl_no = o.appl_no
AND s.ms_code IN ('MS03', 'MS14')
AND c.appl_no = a.appl_no
AND c.contract_no = a.contract_no
+/*AND c.office_code = a.branch_id*/+
AND NVL (a.coy_id, '01') = NVL (c.coy_id, '01'))
GROUP BY coy_id,
appl_branch_id,
appl_object_code,
product_type,
ppdcf_paid_date;
COMMENT ON MATERIALIZED VIEW FIFSYS_MKT_SCHEME_MV_COY IS 'snapshot table for snapshot MARKETING.FIFSYS_MKT_SCHEME_MV_COY';
and this error shown:
ORA-00604 error occurred at recursive SQL level 1
ORA-20000 Trigger xdb_installation_trigger does not support object creation of type SNAPSHOT
ORA-06512 at line 32
maybe some of you know how to solve this problem??
and, this in the script of the xdb_installation_trigger
DROP TRIGGER SYS.XDB_INSTALLATION_TRIGGER;
CREATE OR REPLACE TRIGGER SYS.xdb_installation_trigger
BEFORE
CREATE ON DATABASE
DECLARE
sql_text varchar2(200);
val number;
BEGIN
if (dictionary_obj_owner != 'XDB') then
if (dictionary_obj_type = 'FUNCTION' or
dictionary_obj_type = 'INDEX' or
dictionary_obj_type = 'PACKAGE' or
dictionary_obj_type = 'PACKAGE BODY' or
dictionary_obj_type = 'PROCEDURE' or
dictionary_obj_type = 'SYNONYM' or
dictionary_obj_type = 'TABLE' or
dictionary_obj_type = 'TABLESPACE' or
dictionary_obj_type = 'TYPE' or
dictionary_obj_type = 'VIEW' or
dictionary_obj_type = 'USER'
+)then+
if (dictionary_obj_type != 'PACKAGE BODY'
+) then+
sql_text := 'select count(*) from ALL_OBJECTS where owner = :1 and object_name = :2 and object_type = :3';
execute immediate sql_text into val using dictionary_obj_owner, dictionary_obj_name, dictionary_obj_type;
if (val = 0) then
sql_text := 'select count(*) from dropped_xdb_instll_tab where owner = :1 and object_name = :2 and object_type = :3';
execute immediate sql_text into val using dictionary_obj_owner, dictionary_obj_name, dictionary_obj_type;
if (val = 0) then
insert into xdb_installation_tab values
+(dictionary_obj_owner, dictionary_obj_name, dictionary_obj_type);+
end if;
end if;
end if;
else
raise_application_error(-20000, 'Trigger xdb_installation_trigger does not support object creation of type '||dictionary_obj_type);
end if;
end if;
end;
+/+
/********************************************************************************/i'm so careless, after checking a fresh installation of the same version DB, i dont found xdb_installation_trigger.
so just by simply remove that trigger & everything works just fine. :) -
How to prevent JaxB creation of 2 Interfaces for each Element?
hi,
does any body know how to prevent JaxB creation of 2 Interfaces for each Element (The Content Interface and the element interface)?
I want to configure JaxB to use only one Interface and only one implementation Class.
Thank's,I am sorry I can not answer your question, I have got the same problem. Could you please email me to
[email protected] when you know the answer, please.
I have a question for you. When and complex type is validated, I get the object which contains the error. ( or objects ).
However. How do know the position in the actual parent object. basically. Is there a way to know exactly the position of that attribute in that object. I need to store errors strings.
The first problem derives from this one:
It is not possible to execute validate function for a primitive attribute inside an structure.
I would appreciate your help.
Thanks.
Gustavo. -
Cost of object creation vs reflection?
How does the cost of invoking a method using reflection compare to the cost of object creation? Thank you,
rankoi agree. in such cases, you should do the simplest thing that could possibly work. there are legitimate uses for reflection. without reflection, we have no core serialization mechanism. without serialization, we have no core RPC mechanism (RMI). no dynamic proxies without reflection. all those neat visual building tools are hampered without reflection. ORBs and scripting languages like Jython are hindered.
note that the legitimate uses of reflection shown above tend to be for core JDK, or for development tools. that should be a clue to the developer that unless you're building these kinds of systems, you should reconsider whether reflection is necessary.
that said, reflection has a high "cool" factor. i think that's what sucks developers toward it. it sucked me in, that's for sure. 8^)
--p -
How to stop PR creation from PM work order for a particular vendor?
Hello Experts,
We have following scenario for breakdown maintenance activities.
When a machine breaks down, a breakdown order is created in SAP. The external manintenance services are planned in the order. When the order is released, a single PR (with multiple item numbers corresponding to number of services) is created by SAP. The PR has a release strategy. When PR is released, PO is created followed by the SES.
The practice followed AS -IS for breakdown outside business hours:- If the breakdown happens outside business working hours, the person releasing the PRs is not available & hence PR can not be released resulting in no PO & no subsequent SES.
In this case, the maintenance is completed by the external agency & the work order is TECO. The next day, TECO is reveresed, new PR is created, released, converted into PO, & then SES.
TO-BE process:- Client expects that, for certain vendors identified, PR should not get created at all from the breakdown order. (The list of vendors will be maintained seperately). For these vendors, a framework order will be created at the start of fiscal year & SES will be created as & when required agaainst the framework order.
My concern is :- How to stop PR creation from PM work order for a particular vendor? OR delete the created PR?
Highly appreciate your quick response.
Thank you.
Amit
Note:- My ABAP consultant has checked following BADI's, but could not find it useful.
IWO1_ORDER_BADI
ORDER_COSTING_CK
DATA_EXTENSION_CK
VALUATION_CK
ME_REQ_OI_EXT
IWO1_PREQ_BADI
ME_CHECK_SOURCES
ME_REQ_POSTED
IWO1_ORDER_BADIDear Amit
I am giving a different dimension to your question check if it fulfills your requirement -
As we know Vendor selection comes at a later stage only after your PR creation, approval & RFQ etc. & PR generation from maintaine. order is controllled through control key PM03. While triggering PR from order you have to specify Material group, Purchase group and vendor. Try to control it through authorisation as all these are authorisation objects. The persons executing breakdown order shall no t be given this authoriations
shakti -
How-to determine objects in the PS Old Generation space
Hi,
I am having issues with my PS Old Generation filling up and never gc'ing its objects. Obviously, I have some references to objects that shouldn't be. I would like to be able to look into the Old Generation heap space and find out what objects are in there to give me a clue as to what objects are hanging around. Does anyone know of such a tool, link references, or code I can hack to take a peek into the areas of the heap? The application is running under 1.5 JVM on a Solaris box.
If have used profilers such as Optimizeit and looked into JConsole using jmx, but I do not see in these tools a facility that will let me know what objects are in what area of the heap space. Perhaps these tools do what I need but I have missed it. If so, let me know that, too. This application is huge so it is not obvious where to begin to look for the leaks.
Thanks for any help you can give.Thanks for the reply, Daniel.
I did use jmap and the histo option produced some revealing results. I was expecting a breakdown b/n New Gen heap and Old Gen, which jmap didn't reveal, however, after using jmx and JConsole under 1.5 I realized that the New Gen heap is very short lived (2-3 secs), so jmap -histo IS showing the Old Gen space.
FWIW in case others are having issues...
I have since resolved my problem, which was that the default GC collector on the 1.5 64-bit JVM was not ever doing a Full GC, which it is supposed to do at 68% of the Old Gen heap space, and the Old Gen space would just keep filling up until it hit capacity and choked itself out. I have since changed to using the Concurrent Mark Sweep collector for Old Gen cleanup and the ParNew for New Gen and the app is working great. The GC cleans up when it's supposed to and JConsole reveals that the application never did have leaks. The problem was in the JVM all along. Not sure if there is a bug reported on this anywhere, but it was definitely the issue.
Caveat: After changing collectors I ran jmap against the instance and it locked up on me and required a restart, so instead I enabled remote monitoring and used JConsole, which ended up being a blessing.
JConsole/jmx is a great improvement to the platform and was instrumental in figuring out this issue. My only wish list now, is if JConsole could display an instance count on the classes page. This would give one an idea where one could improve the application from an object creation/heap usage standpoint and it would also provide clues as to where an application might be having issues, if there are an unexpected high number of instances of a certain class. This would especially be handy right after a full GC has been completed.
For an idea of sizing for those interested, this app has around 30 - 45 concurrent, 600 - 1100 simultaneous (60 minute window) users. 10,000+ logins/day and runs on a 4-CPU, 8GB Sun Fire V440 Server. 3GB was allocated to the JVM before the fix and it crashed 2x/day. Now I have reduced the heap footprint to 2GB, which does a full GC every 30-40 minutes and doesn't crash.
thanks again,
Kevin -
How to show property bag values of site collection in web part on landing page in sharepoint online - office 365?
You can use JavaScript Client object model to read the property bag values. Example:
function getWebProperty() {
var ctx = new SP.ClientContext.get_current();
var web = ctx.get_site().get_rootWeb();
this.props = web.get_allProperties();
ctx.load(web);
ctx.load(this.props); //need to load the properties explicitly
ctx.executeQueryAsync(Function.createDelegate(this, gotProperty), Function.createDelegate(this, failedGettingProperty));
function gotProperty() {
var myPropBag = this.props;
alert(myPropBag.get_fieldValues()["allowdesigner"]); //returns the value of the key allowdesigner
function failedGettingProperty(args, sender)
//handle errors here
Source:
http://sharepoint.stackexchange.com/questions/37198/grab-a-specific-property-bag-using-ecma-script
Blog | SharePoint Learnings CodePlex Tools |
Export Version History To Excel |
Autocomplete Lookup Field
Maybe you are looking for
-
How to set up SSO between e-portal employee node & ebill customer node?
We have a requirement to set up SSO between e-portal employee node & ebill customer node. I am told that sso is possible only between 2 employee nodes. Please advise.
-
Have to reinstall Flash after every reboot.
Windows 7 - IE9 - Flash version 11.0.1.152 - Plugins and OS up to date - ESET Smart Securty 4 I get prompted to install new version of Flash after a reboot, so it happens at least once a day. I install Flash and it installs just fine and works until
-
I want to set up "find my ipad" on my sister's ipad, so we can find each other's iPads. However, this seems to require differing individual cloud email addresses, so one ipad wouldn't recognise the other one. How do I get round this?
-
Hi, Is there any function or expression in BPEL/XSLT to achieve the conversion of string to xml? Just like the function "fn-bea:serialize() "in xquery. Thanks in advance, Rohini E
-
Since last update all emails in folder in gmail have gone!
Hi all, please help if you can - I use gmail for all my personal emails through my macbook pro, iphone no problem until the last major update when all the information (saved emails in folders) has been deleted. Also if i leave an email in the inbox i