Why to create a package ?

What is the advantages and the impact of using create a package with our classes ?

Suppose your building a large application using model-view-control, then you might have this package structure:
org.myorg.game.view
org.myorg.game.model
org.myorg.game.facade
This way you can seperate the view logic from the model logic. This means that the view package can't reach default access methods in facade. Thus there is a lower chance that the view package destroys something in the facade package..
You can also give different packages different permissions using a SecurityManager.
Hope it helped,
Daniel

Similar Messages

  • How to and why create a package ?

    What is the advantages and the impact of using create a package with our classes ?

    1) If you are working on a big project, there can be hundreds of classes to keep track of, all being worked on by different developers. Within the project, therefore, it is possible that 2 or more classes can have the same name (how many classes called "HelloWorld" exist??! :-)
    Packaging helps the compiler and JVM to distinguish between them
    2) Packaging also helps you keep your code organized Packages can be used somewhat like a "directory structure" to group related classes together.
    3) Sometimes you need to deploy different apps from the same project (eg a client app and a server app), and those apps won't necessarily need the same support classes (nor will they need all the classes from the entire project). Thus, grouping related classes makes it easier to determine which classes are needed for which deployments, and these can then be easily jarred together.

  • Steps to create Info Packages in BI 7.0

    Please Give Steps top create new Info packages in BI7.0

    Hi,
    Steps to create Generic data source:
    If you want to extract the data from MM table in BI Please follow the below steps.
    1) Create a view on that table By going in to se11( Do this for future purpose, no need of joining conditon as of now why because view is containing only one table at this juncture)
    2) Go to RSO2, create generic data source based on view and designate this datasource under mm application component, it helps to replicate easily from the source system in BI side.
    3) While Creating datasource make sure that field selections and selection criteria for fields.
    4)Assign it to a package(specified by the team) for transportation purpose. Make sure the dependencies also will be going through request other wise the request may fail.
    5) Replicate the generic datasource in BI System(by going in to the mm appln comp under r/3 source system)
    6) After replication do create info package, transformations and dtp also.
    7) Trigger the Info package and then DTP.
    now data will be there in your data target in BI system
    Steps to create standard data source
    1> Go to RSA5 ,Select what data source u want , CLICK Transferstructure.
    2> After dooing this u can see the structure in RSA6 , if u want to do any customozation by adding extra fields u can do it her , if not no need.
    3> go to RSA3 and check if the structure is pulling data or not .
    BW SIDE
    4> Select Source system ->Replicate data source
    5> create Transfer rules , update rules and cube and u are done
    6> u can create a infopackage and schedule ur data load into the cube or ods.
    Hope this helps you
    Regards,
    Rakesh

  • Creating Query : Package required

    Hi Experts,
    We are creating and changing queries in PRD (BW 3.5, SP21) . Up to now, system works as designed, all elements were assigned to package $tmp automatically.
    But now users are complaining, that they are prompted to select a package when saving a query.
    I'm not aware that our team has changed any settings.
    Any ideas / suggestions ? Thanks in advance.
    Regards
    Joe

    Hi
    So is it necessary that it should prompt for the package once upgrade is done from 3.x to 7.0 when we change the query in 7.0 of 3.x copy queries???Could I know why it is prompting???where can I change the settings to prompt for it?
    Could I know how to create temporary package, as I dont see any option for $tmp ,whenever i do changes for objects,it opt for new request???
    hi JH, Thanks for bringing up this question as I face the same issue.
    BI Learner.

  • Why won't it package?????

    I'm using the new Tomcat 5.0 and apparently it won't read a class unless it's part of a package.
    I'm trying to compile a very simple Bean.
    package mypackage;
    public class StringBean {
    private String message = "No message specified";
    public String getMessage() {
    return (message);
    public void setMessage(String message) {
    this.message = message;
    With the "package mypackage;" I expect it to put it into mypackage directory but all it does it create the .class file in the same directory I'm already in. I'm using Java 1.4.1.
    Why won't it package???

    you can compile java files anywhere, you have to put the class in the correct place to use them during runtime. typically you have a src directory with all of your java files in the correct directory stucture for you rpackages and then a classes directory with the correct directory stucture for you packages. You use a build tool like ant to do the compile and place the class files in the classes directory.

  • Why not create chips with flash inside?

    Just a simple question, why not create chips that already have flash inside as a standard feature?
    Thanks.

    bhanu005 wrote:
    Just for clarification.... when say on board... is it on board or on single chip...
      If you're talking about the Spartan 3AN, then it looks like a single chip.  i.e. the flash die is in the same package as the FPGA die, so from the outside the package looks the same as the Spartan 3A which does not have flash.  All other Xilinx FPGA's require a flash device on board, or some other means of programming.
      Other means could include using the existing system memory (flash or disks) to program the FPGA via a microprocessor.  Some of the boards my company produces have embedded microprocessors on them that can read the host system (For example a desktop PC) disk files and then directly use that to program the FPGAs without using any additional storage device for the FPGA.

  • After I have Created a Package

    I am a newbie to Oracle. I have created a package in a schema that I am owner of and need to execute the contents of this package from within the same schema.Why do I have to create a public synonym for my package and GRANT EXECUTE to the synonym before the procedures and functions etc inside the package can be executed.

    you don't need synonyms.
    you must have execute rights for this package.
    in sql-plus type:
    exec <packagename>.<procedurename>;

  • Error while creating a package

    When I am creating a package which has 3 procedures(x,y,z) I am getting an error saying "Subprogram or Cursor "y" is declared in a package specification and must be defined in the package body. I have put the code in the package body script but I keep getting this error. Please Help.

    Surely we will if you can paste the code and the error that you get. Remember to paste the code between[b] [pre] and [/pre] tags to retain the format.
    Cheers
    Sarma.

  • Version error while creating info package of data source 0fi_gl_10

    Dear Friends,
    I have replicated the data source 0fi_gl_10 into sap bw but while creating info package i am getting error " The DataSource 0FI_GL_10(E01CLNT200) does not exist in object version A". IS the manual activation always should be done for that ?
    Regards
    Nilesh

    Hi,
    Please check if the veriosn of DataSource is A or not. Sometimes it shows as active but if you open the datasource then it might be in modified version only. Do activate it manually, it will serve your purpose to create a infopackge.
    Regards,
    Anjum.

  • How to check error whilce creating a package

    Hi,
    I am getting an error while creating a package, individually query is running ok but in package it is showing an error. is there any way to check the error. I am using in TOAD Quest Scriptrunner

    What kind of error you got? A syntactical one or a logical one? Your schema should have following rights to debug package:
    GRANT DEBUG CONNECT SESSION,
    DEBUG ANY PROCEDURE TO <Your_Schema><i>
    I am using in TOAD Quest Scriptrunner</i>
    You can refer the user manual or contact Quest for queries regarding Quest Scriptrunner
    *009*
    Edited by: 009 on Nov 3, 2010 12:09 AM

  • How to create a package in ECC 6.0.

    Hi,
    Can you tell me how to create a package in ECC 6.0 system?
    Thanks in advance,
    Regards,
    Arnab.

    Hi,
    Thank you for your replies.
    Can you tell me the difference and uses of the two types of package I can create from SE21.
    i.e. : Package and package interface. any sap link would also be helpful. I need to know where i can use what and what would be helpful for my case.
    Regards,
    Arnab.

  • Creating a package in SAP BI

    Hi experts,
                         I need to create a package for my project .Please tell me how to create a package in SAP BI .
    Regards,
    Khan

    Hello,
    TCODE SE80 -> Give the name for the package and from drop dwn select package -> hit enter -> it will ask u want to create -> click yes.
    Regards,
    Shashank

  • The person who creates a Package is able to create EEWB project

    HI,
    The person who creates a package is only able to create a EEWB project with that package. Using someone else's package is throwing error. Is this the standard behaviour of EEWB. Or is there a break through.
    Regards.

    Thank you Steve.
    I created a package in the CRM 7 system. I am able to assign my projects in EEWB to the package I created. But when someone else tries to assign their project to the package I created it says "You are not authorised to make changes. Authorisation object".
    And then if he makes some changes to the package , I mean he re-states the descripotion,then he is able to use the package, but then I am unable to make changes. This functionality looks weird. Can you suggest a work around??
    Regards,
    Hiranmayi

  • How to create a package without BIDS in Microsoft SQL Server Management Studio

    I have inherited some SSIS packages that I found I can edit by opening the .dtsx file in my local copy of Microsoft SQL Server management studio.  I then get Control Flow tab, Data Flow tab etc.  I can add or change or delete any of the control
    or data flows.  I have found that if I use the same path to the local file where the packages are stored that exists on the server, I can edit the dtsx file on my local machine and copy the dtsx file to the server into the same directory structure and
    sucessfully execute the package on the SQL 2008 server.
    I have VS 2010 installed.  I have read that I have to install VS 2008 to use BIDS from within VS.  However, this has not worked out very well.  Since I can basically create a new package by deleteing all of the control and data flows from
    an existing package, I am in pretty good shape.  However, I would just like to know if there is a way to create a new dtsx file from within Microsoft SQL Server management studio.  Also one thing I have not been able to change is the event handler
    name or package exploration name....it is just an annoyance since it does not cause any problems, just would like to be able to rename it.   

    Hi Fred,
    We cannot develop SSIS package in SQL Server Management Studio. If we use SQL Server Import and Export Wizard, we can save it as a package but the package is rather simple.
    We use Business Intelligence Development Studio (BIDS) or SQL Server Data Tools (SSDT) to develop SSIS packages. To develop SSIS 2008 packages, we must use BIDS installed by SQL Server 2008, and the BIDS 2008 can only be integrated with Visual Studio 2008.
    To develop SSIS 2012 packages, we use the SSDT installed by SQL Server 2012 which uses Visual Studio 2010 shell and can only be integrated with Visual Studio 2010.
    Different versions of SSIS package have different package formats/schemas. If you can create SSIS packages project in you Visual Studio 2010, it means that you have installed SSDT already, and the packages you design are SSIS 2012 packages. If you open and
    eidt SSIS 2008 packages in you Visual Studio 2010, the packages will be upgraded to SSIS 2012 package format. SSIS 2012 packages cannot be downgraded to SSIS 2008 packages or deployed to SSIS 2008 server.
    Regards,
    Mike Yin
    TechNet Community Support

  • Creating a Package for Constant Variables

    Hi
    I expect this should be an easy question for some of you, but I am fairly new to PL/SQL!
    Anyhow, I would like to create an PL/SQL Script as a package, which holds a list of Constant Variables, which will be common across a number of PL/SQL Packages rather than having to repeat the constants again and again over a number of files and then having the worry of trying to maintain them all.
    Can someone please advise me how to create such a package?
    Thanks

    You can create the package this way:
    create or replace package myconst is
    const1 number := 0;
    const2 number := 2;
    end;
    /And you can optionally initialize your constants this way:
    create table myconstTable  (c1 number, c2 number);
    insert into myconstTable values (1,2);
    create or replace package body myconst is
    begin
      Select c1,c2
        into const1,const2
        from myConstTable;
    end;
    /And finally you can use it this way:
    set serverout on
    exec dbms_output.put_line(myconst.const1);
    1Max
    [My Italian Oracle blog|http://oracleitalia.wordpress.com/2009/12/18/table-elimination-oppure-join-elimination-lottimizzatore-si-libera-della-zavorra/]

Maybe you are looking for