J2SE API Class Fields

Sorry if this is redundant.
Are int class fields assigned at random are is there a specific model underlying the assignment of certain numbers within each indiviual class.
The event class, for example, assigns the integers 1008-1019 to the variables F1-F12. Aside from grouping the function keys, is there a specific reason to start grouping them at 1008? For example, is this done to prevent overiding or conflicting class field values belonging to sub or super classes? super/sub interfaces? i.e. assigning the same int value to different and unrelated constants?
The project I'm working depends heavily on int class fields and I am just wondering if there are any specific conventions I could follow in assigning these numbers or should I just randomly pick numbers for it really doesn't matter?
Thanks all.

You are free to do what ever you want. Anarchy reigns!

Similar Messages

  • Accessing entity class field values in a visual JSF page

    There is a convenient way to access a session values into a JSF visual page using the following:
    String mySessionValue = (String) getValue("#{sessionScope.name}");Like the same, are there any ways to access entity class field values into a visual JSF page? Are there any concepts similar to "entityClassDataProvider" that can be linked to a table component in a visual JSF page?
    Thank you.

    My question is about (Netbeans visual pack) Java Persistence API and how to display the information from an entity class to a JSF page. But the above mentioned tutorial is about the ordinary visual table presentation.
    Thank you.

  • Hidding java class field and methods

    Hi,
    I'm developing an API and I want to know if there's any way to hide all private class, field and methods when exploring the JAR from eclipse or another IDE. In [this capture|http://i8.photobucket.com/albums/a32/darkskimmer/Sinttulo-1-2.jpg] I can see "extra-information" like return type of private methods, etc. I want to keep this in secret...
    Cheers!
    P.S: I have to improve my english skills, I know... :)

    darkskimmer wrote:
    I'm developing an API and I want to know if there's any way to hide all private class, field and methods when exploring the JAR from eclipse or another IDE. Since the JVM has to be able to see them to access/execute them and and anything it can do you can do then you can't hide them.

  • Comp. Primary key class-field mapping to DB columns problem.(EJB 2.0 CMP)

    Hi!
    I have deal with EJB 2.0 CMP bean.
    I have a composite PK so use the java class to store it. And there is a corresponding field in the Entity Bean with its primary key class type.
    The problem is: when deployment tool creates sql query for the findByPrimaryKey(PKClass ck)
    where ck is an object with 3 fielde : a_id, b_id, c_id.
    it says:
    <sql>SELECT "ck" FROM "MyTable" WHERE "ck" = ? </sql>
    And it means by the "ck" simple a column in DB but NOT the composite key which has to be splited into 3 different fields. So the container can't do the proper mapping.
    Does anyone know solutions?

    I was wrong about primary key class fields, take a look at Ejb2.0 Specification (10.8.2):
    The primary key class must be public, and must have a public constructor with no parameters.
    All fields in the primary key class must be declared as public.
    The names of the fields in the primary key class must be a subset of the names of the container-managed
    fields. (This allows the container to extract the primary key fields from an instance�s container-managed
    fields, and vice versa.)
    Right now I'm using BMP and I don't have this problems. Primary keys, calculated fields and types not supported by the DB can be easily achieved. But I understand your interest on CMP, is clearly evolving!

  • How to get the object class field value in CDHDR table for vendor

    hi
    how to get the object class field value in CDHDR table for vendor

    Try KRED/KRED_N as object class in CDHDR for Vendor.

  • Where are the Java API classes?

    Hello All,
    I understand that Oracle9i uses a Java API different than those older classes found in sdoapi.zip here on the OTN.
    Problem is, I don't know where to find them in my newly-installed 9iR2.
    Can anyone help me with this simple question or point me to appropriate documentation?
    Thanks!
    -- john

    I believe the new Java API classes are slated for 10i.

  • How to insert the new Servlet Api Class files?

    Hi,
    I need to know how do I add the Servlet Api Class to my java directory
    after i download it from the net? Thanks for your help in advance!

    niceguyme,
    If you downloaded the J2EE 1.3.1 API and installed it to (for example) c:\j2ee131, then what you need to add to your class path is:
    c:\j2ee131\lib\j2ee.jar
    I also add c:\j2ee131\lib\ejb10deployment.jar to the classpath, but it is not necessary.
    there are several ways to add these to your classpath. It depends on what Operating System you are using. On windows 98 type OS, you can edit the autoexec.bat and add these directly to your already existing classpath. Windows NT,2000, and XP: you can add them to the system environment variables classpath. Hopefully you know how to do this on your machine. What I like to do on the windows machine is create a batch file that will start it from within a command prompt. I do this because there are times when I need to compile my code using different versions of the Java api. I am enclosing an example of one for J2se1.4.1 and j2ee1.3.1.
    contents of java141.bat
    @ECHO OFF
    ECHO JDK 1.4.1 and J2EE 1.3.1 are current versions
    set HOLD_CP = %CLASSPATH%
    set HOLD_PATH = %PATH%
    set CLASSPATH=.
    set CLASSPATH=%CLASSPATH%;e:\jdk14\jre\lib\rt.jar
    set CLASSPATH=%CLASSPATH%;e:\jdk14\lib\dt.jar
    set CLASSPATH=%CLASSPATH%;e:\jdk14\lib\tools.jar
    set CLASSPATH=%CLASSPATH%;e:\jdk14\lib\htmlconverter.jar
    rem **** J2EE STUFF ****
    set CLASSPATH=%CLASSPATH%;e:\j2ee131\lib\j2ee.jar
    set CLASSPATH=%CLASSPATH%;e:\j2ee131\lib\ejb10deployment.jar
    set CLASSPATH=%CLASSPATH%;%HOLD_CP%
    set PATH=e:\jdk14\bin
    set PATH=%PATH%;"C:\Program Files\TextPad 4"
    set PATH=%PATH%;c:\windows\command
    set PATH=%PATH%;%HOLD_PATH%I hope this helps.
    TJJ

  • How to import API classes in JSP?

    hi,
    What is the syntax for importing Java API classes in JSP (like in .java files)?
    I've tried,
    <% import java.util.*; %>
    <%! import java.util.*; %>
    <%@ import java.util.*; %>
    <%@ page import java.util.*; %>
    ...all don't compile!
    Please help. Thanks very much!
    Gerald.

    <%@ page import="java.util.*" %>
    Look at these resources:
    http://java.sun.com/products/jsp/pdf/card11.pdf
    http://java.sun.com/products/jsp/pdf/syntaxref.pdf

  • Applet accidentally requests Java Core API classes from network

    Hi,
    starting an applet from a customers client machine (IE7, Windows XP, Standard JRE Installation of Java 1.6.0_26), I see in the tomcat access log entries signalizing that core java api classes are accidentally requested from the server:
    "GET /mywebapp/applet/java/lang/StringBuilder.class HTTP/1.1" 404 1156 0
    "GET /mywebapp/applet/javax/swing/JPanel.class HTTP/1.1" 404 1141 0
    "GET /mywebapp/applet/java/net/JarURLConnection.class HTTP/1.1" 404 1162 0
    "GET /mywebapp/applet/java/util/jar/JarEntry.class HTTP/1.1" 404 1153 0
    "GET /mywebapp/applet/java/util/jar/JarFile.class HTTP/1.1" 404 1150 0
    Although tomcat responses with HTTP 404, the applet works fine.
    Questions:
    1. For me, it looks like a security risk when the browser tries to load system classes from the network instead of using the local files from the jre dir, doesn't it?
    2. When starting the applet from my local machine (different network), no tomcat logfile entries are generated. An interesting fact is, that in the customer network, the applet "codebase" parameter in the HTML source gets modifed by a proxy server for whatever reason like the following:
    <applet codebase="http://mydomain.org/mywebapp/applet">
    becomes some kind of:
    <applet codebase="http://mydomain.org/mywebapp/applet/+sgrkjkrlgjklJKLjekrr4jewlkfjkerlkrelkjgregkjerlkgljkeglkjgjelkLKJLKefjei55435ijjkl=+">
    It seems that such codebases confuse the classloader. Any ideas about that?
    Thank you so much for any hints!

    <applet codebase="http://mydomain.org/mywebapp/applet">
    So you're loading individual .class files from the codebase? Don't do that, put them into a JAR and specify the JAR file(s) as the codebase. Much more efficient and it may solve this problem too.

  • Public Holiday Class field in IDOC WORKSCHED_WITH_COST

    Hi Experts,
    Good day..!
    Well we are working on a integration project between external rostering system & CATS.
    As part of the integration we are supposed to send Work Schedules (Planned hours) from external system to Cats.
    On investigation we found IDOC WORKSCHED_WITH_COST which suffice the purpose.
    But this IDOC doesn't have any field for Public holiday class. its having only Day type.
    Where as in Infotype 2003 we could see both the fields.
    Can somebody let me if I am missing something here, do we need to do any enhancements how...?
    We are on
    SAP ECC 6.0
    SAP_HR     604     0037     Human Resources
    Your help is well appriciated,
    Thanks in advance,
    Sai

    Hi All,
    We somehow tried to convience business.
    What we would like to do to eliminate the fuzz of Holiday Class field is , We will process data directly to IT2003 skipping CATS as they dont use Substitutions other than for HR.
    We are thing of doing as below
    Insert: HR_INFOTYPE_OPERATION will use this.
    Delete / Reversal: HR_INFOTYPE_OPERATION with del option this is where I doubt about. do we have any option of reversal ...? or do we need to delete the record.
    Will create a BAPI & IDOC respectively.
    Please suggest if this apporoach is fine as I have no clue with HR dependencies.
    Cheers,
    Sai

  • [svn] 1168: compiler: renaming the API classes

    Revision: 1168
    Author: [email protected]
    Date: 2008-04-09 14:30:32 -0700 (Wed, 09 Apr 2008)
    Log Message:
    compiler: renaming the API classes
    * flex2.compiler.asdoc:API to AsDocAPI
    * flex2.compiler.swc:API to SwcAPI
    * flex2.compiler:API to CompilerAPI
    * flex2.linker:API to LinkerAPI
    * flex2.tools:API to WebTierAPI
    Bugs: n/a
    QA: Yes, we should probably run the suite on this; though we could also wait for the Compiler classes to get renamed
    Doc: No
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/Source.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/SourcePath.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/SymbolTable.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/Compiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/SignatureExtension.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/TypeAnalyzer.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/genext/GenerativeClassInfo.ja va
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/Compiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationCompiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/MxmlLogAdapter.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/Swc.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler_en.properties
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler_ja.properties
    flex/sdk/trunk/modules/compiler/src/java/flex2/linker_en.properties
    flex/sdk/trunk/modules/compiler/src/java/flex2/linker_ja.properties
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/ASDoc.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/ASDocConfiguration.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/CommandLineConfiguration.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/Compc.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/CompcPreLink.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/DigestTool.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/Fcsh.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/Mxmlc.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/Optimizer.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/Application.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/Library.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/Toolkit.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/internal/ApplicationCompilerConf iguration.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/internal/LibraryCompiler.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/internal/OEMUtil.java
    Added Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerAPI.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocAPI.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/SwcAPI.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/linker/LinkerAPI.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/WebTierAPI.java
    Removed Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/API.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/API.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/API.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/linker/API.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/tools/API.java

    What is your classpath set to? If you can't find some classes, check there, rather than the path. You might want to include JAVA_HOME/lib/tools.jar and J2EE_HOME/lib/j2ee.jar for starters.
    For example, to compile myclass.jave: javac -cp .;%J2EE_HOME/lib/j2ee.jar;%JAVA_HOME/lib/tools.jar myclass.java
    Hope this helps,
    Rob

  • Symbol Properties Class: field

    Hi,
    What exactly is the function of the Class field in the Symbol Properties window?

    I believe there are a couple of aspects to that, and for what I offer, anyone who knows better should chime in.
    If you have an object in the library that you want to load dynamically, such as a MovieClip, you prepare it for that by selecting the option to Export for Actionscript, which lights up the ability to define a Class name for the object.  When you compile the file a class definition for that object is automatically generated if there is not already a class by that name in a separate .as file.
    So you can create a movieclip and have it be its own class.  Or you can create some entity and assign it a Class ID that already exists as a separate .as file.
    And in your AS code, to create a new instance of that class, you do it just like any other AS3 class...
    var newInstance:ClassNameAssigned = new ClassNameAssigned();

  • Display account class field in view

    Hi All,
             I want to display account class field in a view in ICWEB client but the field is not there in any of the BOL entities. In backend this field is shown in IC win client under, contract account general data. How can i integrate this field into my view?
    With Advance Thanks,
    Sujith

    Hi Manuel,
                  Thank you for the reply. I am working in CRM ISU. The CRM is in one server and ISU is in another. While i run transaction CIC0 in ISU there is a field "account class" (Possible values for the field are:- Residential customers , Open group deals, large acconts) under contract account general data. When i check for this field in BOL entities in CRM system i cant find it any where. My requirement is to display this field in BuPaMorefields view in ICWEB client. I think now its clear .
    With Advance Thanks,
    Sujith

  • Class field initialization outside class constructor

    Hi,
    what are the benefits of initializing a class field outside the class constructor? I use this for fields, that i do not need to pass parameter to via the constructor. The code seems more clear/easy to read.

    Hi,
    what are the benefits of initializing a class field
    outside the class constructor? I use this for
    fields, that i do not need to pass parameter to via
    the constructor.
    The code seems more clear/easy to read.That's a pretty big benefit.
    For another, consider when you have multiple constructors: you've factored
    common code out of them (good) and made it impossible to forget to
    initialize that field later when, later on, you write another constructor(also good).

  • Class field in equipment as mandatory

    Hi Expert,
    Is there any possibility to set class field in equipment master data as mandatory field?
    I cannot found the setting, currently we are using ECC6
    Pls help,Thanks
    Rgds,

    Hi Leni,
    Through configuration its not possible.
    Check with your abap team for applying below mentioned user exit while create and change of equipment.
    User Exit - IHCL0001 - Create equipment using material template: Classes/chars
    or
    User Exit - IEQM0003 - Additional checks before equipment update
    This will meet your requirement.

Maybe you are looking for

  • Help with my MBP (Late-2011) battery life~

    Hi All, I just bought this MBP like 2 weeks ago & I found that the battery life is a little short. Only lasted 3.5-4 hours. In saying that, I'm not doing anything extreme. Only browsing the web and doing some homework on Words & Excel. If I happened

  • Using Content Server 5.02 for Header/Footer Now

    I'm trying to migrate our 5.01 deployment to 5.02. One of the problems I'm having is the header and footer that I created before don't show. I had assumed that installing Content Server wouldn't impact my old header/footer that I created with the Bra

  • I am having problem with delete photos from photostream

    I'm trying to delete the photos of streaming from icloud.com and does not display the warning of on this occasion could not restore photos streaming due to an error on the server Sorry my English in really bad LoL

  • Problems accessing object variables in a Vector

    Hello all... perhaps someone can help:- I have a Vector - "ToolList" - which contains objects - "Tools". These tools have characteristics like: "ToolName", "Weight", "Dimensions". I'm trying to get the "ToolName" of each object listed in a ComboBox b

  • Adobe Reader X freezes when I try to open recent files

    When I try to open recent files, Adobe Reader X will freeze up and will stay that way until I restart the computer. Even logging off won't work. I recently left it alone for around 5-10 minutes and Windows finally did end up stopping the process, but