Class TestItem

    • Constructor Detail

      • TestItem

        public TestItem()
    • Method Detail

      • createItem

        protected Item createItem​(SessionContext ctx,
                                  ComposedType type,
                                  Item.ItemAttributeMap allAttributes)
                           throws JaloBusinessException
        Description copied from class: Item
        Has to be implemented for each concrete subtype of item. This method is responsible for creating a new item instance ( by calling managers, ejb homes, etc. ) during ComposedType.newInstance(Map).

        In case this method uses any of the attribute values during creation it is required to override Item.getNonInitialAttributes(SessionContext, ItemAttributeMap) too.
        Sn example:

        
         public static final String MY_ATTRIBUTE = "someAttribute"; ... protected Item createItem(SessionContext
         ctx, ComposedType type, Map allAttributes ) throws JaloBusinessException { MyManager man = ... return
         man.createMyItem( (String)allAttributes.get(MY_ATTRIBUTE) );
         // here MY_ATTRIBUTE is used for creation, so it must not be set again } protected Map getNonInitialAttributes(
         SessionContext ctx, Map allAttributes ) { // let superclass remove its own initial attributes Map ret =
         super.getNonInitialAttributes( ctx, allAttributes );
         // remove MY_ATTRIBUTE from all attributes since if has already been set ret.remove(MY_ATTRIBUTE); return ret; }
        
         
        Specified by:
        createItem in class Item
        Parameters:
        ctx - the current session context which this item is created within
        type - the actual item type ( since subtypes may not provide a own jalo class this may be different from the type which this method was implemented for )
        Returns:
        the new item instance
        Throws:
        JaloBusinessException - indicates an error during creation - any changes will be rollbacked
      • getA

        public java.lang.String getA()
      • setA

        public void setA​(java.lang.String a)
      • setA

        public void setA​(SessionContext ctx,
                         java.lang.String a)
      • getB

        public java.lang.String getB()
      • setB

        public void setB​(java.lang.String b)
      • setB

        public void setB​(SessionContext ctx,
                         java.lang.String b)
      • getBoolean

        public java.lang.Boolean getBoolean​(SessionContext ctx)
      • setBoolean

        public void setBoolean​(SessionContext ctx,
                               java.lang.Boolean b)
      • setByte

        public void setByte​(SessionContext ctx,
                            java.lang.Byte b)
      • getCharacter

        public java.lang.Character getCharacter​(SessionContext ctx)
      • setCharacter

        public void setCharacter​(SessionContext ctx,
                                 java.lang.Character c)
      • setDate

        public void setDate​(SessionContext ctx,
                            java.util.Date d)
      • getDouble

        public java.lang.Double getDouble​(SessionContext ctx)
      • setDouble

        public void setDouble​(SessionContext ctx,
                              java.lang.Double d)
      • setFloat

        public void setFloat​(SessionContext ctx,
                             java.lang.Float f)
      • getInteger

        public java.lang.Integer getInteger​(SessionContext ctx)
      • setInteger

        public void setInteger​(SessionContext ctx,
                               java.lang.Integer i)
      • setLong

        public void setLong​(SessionContext ctx,
                            java.lang.Long l)
      • getPrimitiveBoolean

        public boolean getPrimitiveBoolean​(SessionContext ctx)
      • setPrimitiveBoolean

        public void setPrimitiveBoolean​(SessionContext ctx,
                                        boolean b)
      • getPrimitiveByte

        public byte getPrimitiveByte​(SessionContext ctx)
      • setPrimitiveByte

        public void setPrimitiveByte​(SessionContext ctx,
                                     byte b)
      • getPrimitiveChar

        public char getPrimitiveChar​(SessionContext ctx)
      • setPrimitiveChar

        public void setPrimitiveChar​(SessionContext ctx,
                                     char c)
      • getPrimitiveDouble

        public double getPrimitiveDouble​(SessionContext ctx)
      • setPrimitiveDouble

        public void setPrimitiveDouble​(SessionContext ctx,
                                       double d)
      • getPrimitiveFloat

        public float getPrimitiveFloat​(SessionContext ctx)
      • setPrimitiveFloat

        public void setPrimitiveFloat​(SessionContext ctx,
                                      float f)
      • getPrimitiveInteger

        public int getPrimitiveInteger​(SessionContext ctx)
      • setPrimitiveInteger

        public void setPrimitiveInteger​(SessionContext ctx,
                                        int i)
      • getPrimitiveLong

        public long getPrimitiveLong​(SessionContext ctx)
      • setPrimitiveLong

        public void setPrimitiveLong​(SessionContext ctx,
                                     long l)
      • getPrimitiveShort

        public short getPrimitiveShort​(SessionContext ctx)
      • setPrimitiveShort

        public void setPrimitiveShort​(SessionContext ctx,
                                      short s)
      • getSerializable

        public java.io.Serializable getSerializable​(SessionContext ctx)
      • setSerializable

        public void setSerializable​(SessionContext ctx,
                                    java.io.Serializable s)
      • getString

        public java.lang.String getString​(SessionContext ctx)
      • setString

        public void setString​(SessionContext ctx,
                              java.lang.String s)
      • getLongString

        public java.lang.String getLongString​(SessionContext ctx)
      • setLongString

        public void setLongString​(SessionContext ctx,
                                  java.lang.String s)
      • getBoolean

        public java.lang.Boolean getBoolean()
      • setBoolean

        public void setBoolean​(java.lang.Boolean b)
      • getByte

        public java.lang.Byte getByte()
      • setByte

        public void setByte​(java.lang.Byte b)
      • getCharacter

        public java.lang.Character getCharacter()
      • setCharacter

        public void setCharacter​(java.lang.Character c)
      • getDate

        public java.util.Date getDate()
      • setDate

        public void setDate​(java.util.Date d)
      • getDouble

        public java.lang.Double getDouble()
      • setDouble

        public void setDouble​(java.lang.Double d)
      • getFloat

        public java.lang.Float getFloat()
      • setFloat

        public void setFloat​(java.lang.Float f)
      • getInteger

        public java.lang.Integer getInteger()
      • setInteger

        public void setInteger​(java.lang.Integer i)
      • getLong

        public java.lang.Long getLong()
      • setLong

        public void setLong​(java.lang.Long l)
      • getPrimitiveBoolean

        public boolean getPrimitiveBoolean()
      • setPrimitiveBoolean

        public void setPrimitiveBoolean​(boolean b)
      • getPrimitiveByte

        public byte getPrimitiveByte()
      • setPrimitiveByte

        public void setPrimitiveByte​(byte b)
      • getPrimitiveChar

        public char getPrimitiveChar()
      • setPrimitiveChar

        public void setPrimitiveChar​(char c)
      • getPrimitiveDouble

        public double getPrimitiveDouble()
      • setPrimitiveDouble

        public void setPrimitiveDouble​(double d)
      • getPrimitiveFloat

        public float getPrimitiveFloat()
      • setPrimitiveFloat

        public void setPrimitiveFloat​(float f)
      • getPrimitiveInteger

        public int getPrimitiveInteger()
      • setPrimitiveInteger

        public void setPrimitiveInteger​(int i)
      • getPrimitiveLong

        public long getPrimitiveLong()
      • setPrimitiveLong

        public void setPrimitiveLong​(long l)
      • getPrimitiveShort

        public short getPrimitiveShort()
      • setPrimitiveShort

        public void setPrimitiveShort​(short s)
      • getSerializable

        public java.io.Serializable getSerializable()
      • setSerializable

        public void setSerializable​(java.io.Serializable s)
      • getString

        public java.lang.String getString()
      • setString

        public void setString​(java.lang.String s)