com.google.code.facebookapi
Class AssociationInfo

java.lang.Object
  extended by com.google.code.facebookapi.AssociationInfo
All Implemented Interfaces:
java.io.Serializable

public class AssociationInfo
extends java.lang.Object
implements java.io.Serializable

Describes one of two legs of an association. It gives the association a name and optionally specifies its type and uniqueness constraints.

See Also:
Developers Wiki: Data.defineAssociation, Serialized Form

Constructor Summary
AssociationInfo(java.lang.String alias)
           
AssociationInfo(java.lang.String alias, java.lang.String objectType, boolean unique)
           
 
Method Summary
 java.lang.String getAlias()
          This alias needs to be a valid identifier, which is no longer than 32 characters, starting with a letter (a-z) and consisting of only small letters (a-z), numbers (0-9) and/or underscores.
 java.lang.String getObjectType()
          Optional - object type of object identifier.
 boolean isUnique()
          Optional - Default to false.
 void setAlias(java.lang.String alias)
           
 void setObjectType(java.lang.String objectType)
           
 void setUnique(boolean unique)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssociationInfo

public AssociationInfo(java.lang.String alias)

AssociationInfo

public AssociationInfo(java.lang.String alias,
                       java.lang.String objectType,
                       boolean unique)
Method Detail

getAlias

public java.lang.String getAlias()
This alias needs to be a valid identifier, which is no longer than 32 characters, starting with a letter (a-z) and consisting of only small letters (a-z), numbers (0-9) and/or underscores.

Returns:

setAlias

public void setAlias(java.lang.String alias)

getObjectType

public java.lang.String getObjectType()
Optional - object type of object identifier. Name it after the table that it's "foreign keying" into.

Returns:

setObjectType

public void setObjectType(java.lang.String objectType)

isUnique

public boolean isUnique()
Optional - Default to false. Whether each unique object identifier can only appear once in all associations of this type.

Returns:

setUnique

public void setUnique(boolean unique)


Copyright © 2010. All Rights Reserved.